|
|
|
|
@ -30,12 +30,11 @@ void main() async {
|
|
|
|
|
|
|
|
|
|
//clearing all the shared pref on the inital start to avoid any profile issue
|
|
|
|
|
Future<void> clearPrefsOnFirstLaunch() async {
|
|
|
|
|
SharedPreferences prefs = await SharedPreferences. getInstance();
|
|
|
|
|
SharedPreferences prefs = await SharedPreferences.getInstance();
|
|
|
|
|
bool isFirstLaunch = prefs.getBool('isFirstLaunch') ?? true;
|
|
|
|
|
await prefs.clear(); // Clear all prefs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -60,7 +59,10 @@ class MyApp extends StatelessWidget {
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
child: Consumer<ProjectViewModel>(
|
|
|
|
|
builder: (context, projectProvider, child) => MaterialApp(
|
|
|
|
|
builder: (context, projectProvider, child) => SafeArea(
|
|
|
|
|
top: false,
|
|
|
|
|
bottom: Platform.isAndroid ? true : false,
|
|
|
|
|
child: MaterialApp(
|
|
|
|
|
showSemanticsDebugger: false,
|
|
|
|
|
title: 'Doctors App',
|
|
|
|
|
locale: projectProvider.appLocal,
|
|
|
|
|
@ -93,6 +95,7 @@ class MyApp extends StatelessWidget {
|
|
|
|
|
debugShowCheckedModeBanner: false,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|