remove stacked package from dashboard and home
0
.gitignore
vendored
Normal file → Executable file
0
android/.gitignore
vendored
Normal file → Executable file
0
android/app/build.gradle
Normal file → Executable file
0
android/app/src/debug/AndroidManifest.xml
Normal file → Executable file
0
android/app/src/main/AndroidManifest.xml
Normal file → Executable file
0
android/app/src/main/kotlin/com/nividata/mathmatrix/MainActivity.kt
Normal file → Executable file
0
android/app/src/main/res/drawable/launch_background.xml
Normal file → Executable file
0
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file → Executable file
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
0
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Normal file → Executable file
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
0
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file → Executable file
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
0
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Normal file → Executable file
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
0
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file → Executable file
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
0
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Normal file → Executable file
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
0
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file → Executable file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file → Executable file
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file → Executable file
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
0
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file → Executable file
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
0
android/app/src/main/res/values/styles.xml
Normal file → Executable file
0
android/app/src/profile/AndroidManifest.xml
Normal file → Executable file
0
android/build.gradle
Normal file → Executable file
0
android/gradle.properties
Normal file → Executable file
0
android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file → Executable file
0
android/settings.gradle
Normal file → Executable file
0
assets/calculator-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
0
assets/correct-answer.gif
Normal file → Executable file
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
assets/fonts/Montserrat-Light.ttf
Normal file → Executable file
0
assets/fonts/Montserrat-Medium.ttf
Normal file → Executable file
0
assets/fonts/Montserrat-Regular.ttf
Normal file → Executable file
0
assets/fonts/Montserrat-SemiBold.ttf
Normal file → Executable file
0
assets/images/banner.png
Normal file → Executable file
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
0
assets/images/calculator.svg
Normal file → Executable file
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
0
assets/images/goal.svg
Normal file → Executable file
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
0
assets/images/money.svg
Normal file → Executable file
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
0
assets/magic-triangle-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 406 KiB After Width: | Height: | Size: 406 KiB |
0
assets/math-machine-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 340 KiB After Width: | Height: | Size: 340 KiB |
0
assets/math-pair-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 311 KiB After Width: | Height: | Size: 311 KiB |
0
assets/mental-arith-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
0
assets/num-pyramid.gif
Normal file → Executable file
Before Width: | Height: | Size: 682 KiB After Width: | Height: | Size: 682 KiB |
0
assets/picture-puzzle-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 263 KiB After Width: | Height: | Size: 263 KiB |
0
assets/quick-calculation-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
0
assets/sqroot-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
0
assets/whats-the-sign-intro.gif
Normal file → Executable file
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
0
ios/.gitignore
vendored
Normal file → Executable file
0
ios/Flutter/AppFrameworkInfo.plist
Normal file → Executable file
0
ios/Flutter/Debug.xcconfig
Normal file → Executable file
0
ios/Flutter/Release.xcconfig
Normal file → Executable file
0
ios/Podfile
Normal file → Executable file
0
ios/Runner.xcodeproj/project.pbxproj
Normal file → Executable file
0
ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file → Executable file
0
ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
Normal file → Executable file
0
ios/Runner.xcworkspace/contents.xcworkspacedata
generated
Normal file → Executable file
0
ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Normal file → Executable file
0
ios/Runner/AppDelegate.swift
Normal file → Executable file
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
Normal file → Executable file
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
Normal file → Executable file
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Normal file → Executable file
Before Width: | Height: | Size: 849 B After Width: | Height: | Size: 849 B |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Normal file → Executable file
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
Normal file → Executable file
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Normal file → Executable file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
Normal file → Executable file
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
Normal file → Executable file
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Normal file → Executable file
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
Normal file → Executable file
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
Normal file → Executable file
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
Normal file → Executable file
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Normal file → Executable file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
Normal file → Executable file
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
Normal file → Executable file
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
0
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
Normal file → Executable file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
vendored
Normal file → Executable file
0
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
vendored
Normal file → Executable file
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
0
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
vendored
Normal file → Executable file
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
0
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
vendored
Normal file → Executable file
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
0
ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
vendored
Normal file → Executable file
0
ios/Runner/Base.lproj/LaunchScreen.storyboard
Normal file → Executable file
0
ios/Runner/Base.lproj/Main.storyboard
Normal file → Executable file
0
ios/Runner/Info.plist
Normal file → Executable file
0
ios/Runner/Runner-Bridging-Header.h
Normal file → Executable file
112
lib/main.dart
Normal file → Executable file
@ -8,15 +8,26 @@ import 'package:mathgame/src/core/router.dart';
|
||||
import 'package:mathgame/src/ui/dashboard/dashboard_view.dart';
|
||||
import 'package:mathgame/src/ui/common/dialog_manager.dart';
|
||||
import 'package:mathgame/src/core/app_constant.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
void main() {
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
setupServiceLocator();
|
||||
runApp(MyApp());
|
||||
final sharedPreferences = await SharedPreferences.getInstance();
|
||||
runApp(MultiProvider(providers: [
|
||||
Provider<SharedPreferences>(create: (context) => sharedPreferences),
|
||||
ChangeNotifierProxyProvider<SharedPreferences, DashboardViewModel>(
|
||||
create: (context) => DashboardViewModel(preferences: sharedPreferences),
|
||||
update: (context, value, previous) =>
|
||||
DashboardViewModel(preferences: value),
|
||||
)
|
||||
], child: MyApp()));
|
||||
}
|
||||
|
||||
setupServiceLocator() {
|
||||
GetIt.I.registerLazySingleton(() => NavigationService());
|
||||
GetIt.I.registerSingleton<DashboardViewModel>(DashboardViewModel());
|
||||
// GetIt.I.registerSingleton<DashboardViewModel>(DashboardViewModel());
|
||||
GetIt.I.registerLazySingleton(() => DialogService());
|
||||
}
|
||||
|
||||
@ -35,56 +46,57 @@ class MyApp extends StatelessWidget {
|
||||
title: 'Math Matrix',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
backgroundColor: Color(0xFFaa0000),
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: Colors.deepPurple,
|
||||
primaryColorDark: Colors.deepPurple[700],
|
||||
primaryColorLight: Colors.deepPurple[300],
|
||||
/*primaryColorDark: Color(0x673ab7),
|
||||
backgroundColor: Color(0xFFaa0000),
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: Colors.deepPurple,
|
||||
primaryColorDark: Colors.deepPurple[700],
|
||||
primaryColorLight: Colors.deepPurple[300],
|
||||
/*primaryColorDark: Color(0x673ab7),
|
||||
primaryColorLight: Color(0x8561c5),*/
|
||||
primarySwatch: Colors.yellow,
|
||||
accentColor: Colors.deepOrange[300],
|
||||
scaffoldBackgroundColor: Color(0xFF121212),
|
||||
dialogBackgroundColor: Colors.blueGrey[900],
|
||||
splashColor: Colors.grey,
|
||||
highlightColor: Colors.white60,
|
||||
dividerColor: Colors.grey[900],
|
||||
applyElevationOverlayColor: true,
|
||||
/*cardTheme: CardTheme(
|
||||
primarySwatch: Colors.yellow,
|
||||
accentColor: Colors.deepOrange[300],
|
||||
scaffoldBackgroundColor: Color(0xFF121212),
|
||||
dialogBackgroundColor: Colors.blueGrey[900],
|
||||
splashColor: Colors.grey,
|
||||
highlightColor: Colors.white60,
|
||||
dividerColor: Colors.grey[900],
|
||||
applyElevationOverlayColor: true,
|
||||
/*cardTheme: CardTheme(
|
||||
|
||||
),*/
|
||||
textTheme: TextTheme(
|
||||
display4:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w300),
|
||||
display3: TextStyle(
|
||||
fontFamily: fontFamily,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Colors.white),
|
||||
display2: TextStyle(
|
||||
fontFamily: fontFamily,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.white),
|
||||
display1: TextStyle(
|
||||
fontFamily: fontFamily,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.white),
|
||||
headline:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
title:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
subhead:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
body2:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
body1:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
caption:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
subtitle:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
button:
|
||||
TextStyle(fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
)),
|
||||
// textTheme: TextTheme(
|
||||
// headline4: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w300),
|
||||
// headline3: TextStyle(
|
||||
// fontFamily: fontFamily,
|
||||
// fontWeight: FontWeight.w500,
|
||||
// color: Colors.white),
|
||||
// headline2: TextStyle(
|
||||
// fontFamily: fontFamily,
|
||||
// fontWeight: FontWeight.w400,
|
||||
// color: Colors.white),
|
||||
// headline1: TextStyle(
|
||||
// fontFamily: fontFamily,
|
||||
// fontWeight: FontWeight.w400,
|
||||
// color: Colors.white),
|
||||
// headline: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
// title: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
// subhead: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
// body2: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
// body1: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
// caption: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w400),
|
||||
// subtitle: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
// button: TextStyle(
|
||||
// fontFamily: fontFamily, fontWeight: FontWeight.w500),
|
||||
// ),
|
||||
),
|
||||
builder: (context, widget) => Navigator(
|
||||
onGenerateRoute: (settings) => MaterialPageRoute(
|
||||
builder: (context) => DialogManager(
|
||||
|