Error provider
This commit is contained in:
@@ -14,12 +14,14 @@ class MyAppStateMobile extends State<MyApp> {
|
||||
final isLoading = provider.isLoading;
|
||||
return ChangeNotifierProvider(
|
||||
create: (_) => CartProvider(),
|
||||
builder: (context, __) => MaterialApp(
|
||||
title: 'GymLink Module',
|
||||
theme: theme,
|
||||
debugShowCheckedModeBanner: false,
|
||||
home: MainPage(isLoading: isLoading),
|
||||
),
|
||||
builder: (context, __) => isLoading
|
||||
? const Center(child: CircularProgressIndicator())
|
||||
: MaterialApp(
|
||||
title: 'GymLink Module',
|
||||
theme: theme,
|
||||
debugShowCheckedModeBanner: false,
|
||||
home: const MainPage(),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user