remove stacked package from dashboard and home

This commit is contained in:
Mehul
2021-12-20 16:36:30 +05:30
parent 6b92073e95
commit d6ba7905a1
172 changed files with 393 additions and 444 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
.metadata Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
android/.gitignore vendored Normal file → Executable file
View File

0
android/app/build.gradle Normal file → Executable file
View File

0
android/app/src/debug/AndroidManifest.xml Normal file → Executable file
View File

0
android/app/src/main/AndroidManifest.xml Normal file → Executable file
View File

View File

View File

0
android/app/src/main/res/mipmap-hdpi/ic_launcher.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View 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
View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View 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
View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View 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
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View 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
View File

0
android/app/src/profile/AndroidManifest.xml Normal file → Executable file
View File

0
android/build.gradle Normal file → Executable file
View File

0
android/gradle.properties Normal file → Executable file
View File

0
android/gradle/wrapper/gradle-wrapper.properties vendored Normal file → Executable file
View File

0
android/settings.gradle Normal file → Executable file
View File

0
assets/calculator-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

0
assets/correct-answer.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

0
assets/fonts/Montserrat-Light.ttf Normal file → Executable file
View File

0
assets/fonts/Montserrat-Medium.ttf Normal file → Executable file
View File

0
assets/fonts/Montserrat-Regular.ttf Normal file → Executable file
View File

0
assets/fonts/Montserrat-SemiBold.ttf Normal file → Executable file
View File

0
assets/images/banner.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

0
assets/images/calculator.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
assets/images/goal.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
assets/images/money.svg Normal file → Executable file
View 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
View File

Before

Width:  |  Height:  |  Size: 406 KiB

After

Width:  |  Height:  |  Size: 406 KiB

0
assets/math-machine-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 340 KiB

After

Width:  |  Height:  |  Size: 340 KiB

0
assets/math-pair-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 311 KiB

After

Width:  |  Height:  |  Size: 311 KiB

0
assets/mental-arith-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
assets/num-pyramid.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 682 KiB

After

Width:  |  Height:  |  Size: 682 KiB

0
assets/picture-puzzle-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 263 KiB

After

Width:  |  Height:  |  Size: 263 KiB

0
assets/quick-calculation-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

0
assets/sqroot-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 92 KiB

0
assets/whats-the-sign-intro.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
ios/.gitignore vendored Normal file → Executable file
View File

0
ios/Flutter/AppFrameworkInfo.plist Normal file → Executable file
View File

0
ios/Flutter/Debug.xcconfig Normal file → Executable file
View File

0
ios/Flutter/Release.xcconfig Normal file → Executable file
View File

0
ios/Podfile Normal file → Executable file
View File

0
ios/Runner.xcodeproj/project.pbxproj Normal file → Executable file
View File

0
ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata generated Normal file → Executable file
View File

View File

0
ios/Runner.xcworkspace/contents.xcworkspacedata generated Normal file → Executable file
View File

View File

0
ios/Runner/AppDelegate.swift Normal file → Executable file
View File

View File

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 849 B

After

Width:  |  Height:  |  Size: 849 B

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View 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
View File

0
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png vendored Normal file → Executable file
View 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
View 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
View 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
View File

0
ios/Runner/Base.lproj/LaunchScreen.storyboard Normal file → Executable file
View File

0
ios/Runner/Base.lproj/Main.storyboard Normal file → Executable file
View File

0
ios/Runner/Info.plist Normal file → Executable file
View File

0
ios/Runner/Runner-Bridging-Header.h Normal file → Executable file
View File

112
lib/main.dart Normal file → Executable file
View 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(

0
lib/src/core/app_constant.dart Normal file → Executable file
View File

0
lib/src/core/coin_constant.dart Normal file → Executable file
View File

0
lib/src/core/router.dart Normal file → Executable file
View File

0
lib/src/core/score_constant.dart Normal file → Executable file
View File

0
lib/src/core/size_config.dart Normal file → Executable file
View File

0
lib/src/core/time_constant.dart Normal file → Executable file
View File

0
lib/src/data/models/alert_request.dart Normal file → Executable file
View File

0
lib/src/data/models/alert_response.dart Normal file → Executable file
View File

0
lib/src/data/models/calculator.dart Normal file → Executable file
View File

0
lib/src/data/models/correct_answer.dart Normal file → Executable file
View File

0
lib/src/data/models/game_category.dart Normal file → Executable file
View File

0
lib/src/data/models/game_info_dialog.dart Normal file → Executable file
View File

0
lib/src/data/models/magic_triangle.dart Normal file → Executable file
View File

0
lib/src/data/models/math_grid.dart Normal file → Executable file
View File

0
lib/src/data/models/math_pairs.dart Normal file → Executable file
View File

0
lib/src/data/models/mental_arithmetic.dart Normal file → Executable file
View File

0
lib/src/data/models/number_pyramid.dart Normal file → Executable file
View File

0
lib/src/data/models/picture_puzzle.dart Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More