Skip to content

Commit

Permalink
add gate material
Browse files Browse the repository at this point in the history
  • Loading branch information
lkrjangid1 committed Jul 22, 2021
1 parent 56ff2a8 commit 08f1075
Show file tree
Hide file tree
Showing 31 changed files with 3,408 additions and 841 deletions.
2 changes: 0 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ android {
applicationId "com.mbm.elereaning.mbmecj"
minSdkVersion 19
targetSdkVersion 30
versionCode 2
versionName "2.0.0"
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
android:label="MBM E-LEARNING"
android:logo="@mipmap/ic_launcher_icon"
android:icon="@mipmap/ic_launcher_icon">
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 Todo: remove test id -->
<!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 || Real id = ca-app-pub-3464895367007523~5520401638-->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713"/>
android:value="ca-app-pub-3464895367007523~5520401638"/>
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
Expand Down
20 changes: 20 additions & 0 deletions lib/Analytics.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_analytics/observer.dart';

FirebaseAnalytics analytics = FirebaseAnalytics();
FirebaseAnalyticsObserver observer =
FirebaseAnalyticsObserver(analytics: analytics);

class AnalyticsClass {
Future<void> setCurrentScreen(String screenName, String screenClass) async {
await analytics.setCurrentScreen(
screenName: screenName,
screenClassOverride: screenClass,
);
}

Future<void> setUserId(String userId, String userName, String value) async {
await analytics.setUserId(userId);
await analytics.setUserProperty(name: userName, value: value);
}
}
7 changes: 6 additions & 1 deletion lib/SplashScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:mbmelearning/Analytics.dart';

import 'mobile/authrepo/UpdateProfile.dart';
import 'mobile/authrepo/mobilemainScreen.dart';
import 'mobile/authrepo/updateprofileNewUser.dart';
import 'mobile/mobiledashbord.dart';
import 'mobile/mobiledashboard.dart';

AnalyticsClass _analyticsClass = AnalyticsClass();

class LandingPage extends StatefulWidget {
@override
Expand Down Expand Up @@ -69,6 +73,7 @@ class _LandingPageState extends State<LandingPage> {
void initState() {
super.initState();
checkUser();
_analyticsClass.setCurrentScreen('Splash Screen', 'Spalsh');
}

@override
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/bottomBar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class _BottomBarState extends State<BottomBar> {
});
}, child: "MBM E-LEARNING".text.color(kFirstColour).xl2.bold.make().centered(),),
"Made by SELS".text.makeCentered(),
"Version : ^2.0.0".text.makeCentered(),
"Version : ^4.0.0".text.makeCentered(),
IconButton(
icon: Icon(AntDesign.linkedin_square,color: kFirstColour,),
tooltip: 'SELS Linkedin',
Expand Down
11 changes: 11 additions & 0 deletions lib/Widgets/progressBar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ class ProgressBarCus extends StatelessWidget {
child: Column(
children: [
CircularProgressIndicator(),
SizedBox(
height: 10,
),
Text('Loading...'),
SizedBox(
height: 10,
),
Text(
'If it takes more time then it \nmeans there is no data or your \ninternet connection is very low.',
textAlign: TextAlign.center,
style: TextStyle(fontSize: 9, color: Colors.red),
),
],
)),
);
Expand Down
7 changes: 4 additions & 3 deletions lib/branchesandsems.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const List<String> branches = [
'BCT',
'IT',
'PE',
'AE',
];
const List<String> sems = [
'3sem',
Expand All @@ -34,17 +35,17 @@ const List<String> firstyr = [
'mechanicalsem',
];

const List<String> mttypes =[
const List<String> mttypes = [
'notes',
'paper',
'book',
'file',
'video',
];

const List<String> years =[
const List<String> years = [
'1',
'2',
'3',
'4',
];
];
10 changes: 7 additions & 3 deletions lib/constants.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import 'package:flutter/material.dart';

//Todo: test ids
const String kBannerAdsId = 'ca-app-pub-3940256099942544/6300978111';
const String kInterstitialAdsId = 'ca-app-pub-3940256099942544/1033173712';
//real ids
const String kBannerAdsId = 'ca-app-pub-3464895367007523/9268074959';
const String kInterstitialAdsId = 'ca-app-pub-3464895367007523/7743240292';

//Todo: remove test ids
// const String kBannerAdsId = 'ca-app-pub-3940256099942544/6300978111';
// const String kInterstitialAdsId = 'ca-app-pub-3940256099942544/1033173712';

const Color kFirstColour = Color(0xff0880AE);
const Color kSecondColour = Color(0xffEBF4F8);
Expand Down
Loading

0 comments on commit 08f1075

Please sign in to comment.