File tree Expand file tree Collapse file tree 4 files changed +31
-9
lines changed Expand file tree Collapse file tree 4 files changed +31
-9
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:dbu_gym/controllers/providers/carousel_provider.dart' ;
1
2
import 'package:dbu_gym/firebase_options.dart' ;
2
3
import 'package:dbu_gym/utils/theme.dart' ;
3
4
import 'package:dbu_gym/views/pages/welcome_page.dart' ;
4
5
import 'package:flutter/material.dart' ;
5
6
import 'package:firebase_core/firebase_core.dart' ;
7
+ import 'package:provider/provider.dart' ;
6
8
7
9
void main (List <String > args) async {
8
10
WidgetsFlutterBinding .ensureInitialized ();
9
11
await Firebase .initializeApp (
10
12
options: DefaultFirebaseOptions .currentPlatform,
11
13
);
12
14
runApp (
13
- MaterialApp (
14
- debugShowCheckedModeBanner: false ,
15
- themeMode: ThemeMode .system,
16
- theme: AppTheme .lightTheme,
17
- darkTheme: AppTheme .darkTheme,
18
- home: WelcomePage (),
15
+ MultiProvider (
16
+ providers: [
17
+ ChangeNotifierProvider (create: (context) => CarouselProvider ()),
18
+ ],
19
+ child: MaterialApp (
20
+ debugShowCheckedModeBanner: false ,
21
+ themeMode: ThemeMode .system,
22
+ theme: AppTheme .lightTheme,
23
+ darkTheme: AppTheme .darkTheme,
24
+ home: WelcomePage (),
25
+ ),
19
26
),
20
27
);
21
28
}
Original file line number Diff line number Diff line change @@ -208,6 +208,14 @@ packages:
208
208
url: "https://pub.dev"
209
209
source: hosted
210
210
version: "1.10.0"
211
+ nested:
212
+ dependency: transitive
213
+ description:
214
+ name: nested
215
+ sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
216
+ url: "https://pub.dev"
217
+ source: hosted
218
+ version: "1.0.0"
211
219
path:
212
220
dependency: transitive
213
221
description:
@@ -280,6 +288,14 @@ packages:
280
288
url: "https://pub.dev"
281
289
source: hosted
282
290
version: "2.1.8"
291
+ provider:
292
+ dependency: "direct main"
293
+ description:
294
+ name: provider
295
+ sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
296
+ url: "https://pub.dev"
297
+ source: hosted
298
+ version: "6.1.1"
283
299
sky_engine:
284
300
dependency: transitive
285
301
description: flutter
Original file line number Diff line number Diff line change 5
5
// gestures. You can also use WidgetTester to find child widgets in the widget
6
6
// tree, read text, and verify that the values of widget properties are correct.
7
7
8
+ import 'package:dbu_gym/views/pages/welcome_page.dart' ;
8
9
import 'package:flutter/material.dart' ;
9
10
import 'package:flutter_test/flutter_test.dart' ;
10
11
11
- import 'package:dbu_gym/main.dart' ;
12
-
13
12
void main () {
14
13
testWidgets ('Counter increments smoke test' , (WidgetTester tester) async {
15
14
// Build our app and trigger a frame.
16
- await tester.pumpWidget (const MyApp ());
15
+ await tester.pumpWidget (const WelcomePage ());
17
16
18
17
// Verify that our counter starts at 0.
19
18
expect (find.text ('0' ), findsOneWidget);
You can’t perform that action at this time.
0 commit comments