@@ -4,121 +4,122 @@ import 'package:example/gen/fonts.gen.dart';
44import 'package:example_resources/gen/assets.gen.dart' ;
55import 'package:flutter/material.dart' ;
66
7- void main () async {
8- WidgetsFlutterBinding .ensureInitialized ();
9- // await Firebase.initializeApp(
10- // options: DefaultFirebaseOptions.currentPlatform,
11- // );
12-
13- // flavors sample
14- // output: {'extern'}
7+ void main () {
158 print (MyAssets .images.chip4.chip4.flavors);
9+ runApp (const MyApp ());
10+ }
11+
12+ class MyApp extends StatelessWidget {
13+ const MyApp ({super .key});
1614
17- runApp (MaterialApp (
18- title: 'Flutter Demo' ,
19- theme: ThemeData (
20- // Auto generated font from FlutterGen.
21- fontFamily: MyFontFamily .raleway,
22- primarySwatch: MyColorName .crimsonRed,
23- ),
24- home: Scaffold (
25- appBar: AppBar (
26- title: const Text ('FlutterGen' ),
15+ @override
16+ Widget build (BuildContext context) {
17+ return MaterialApp (
18+ title: 'Flutter Demo' ,
19+ theme: ThemeData (
20+ // Auto generated font from FlutterGen.
21+ fontFamily: MyFontFamily .raleway,
22+ primarySwatch: MyColorName .crimsonRed,
2723 ),
28- body: Center (
29- child: SingleChildScrollView (
30- child: Column (
31- mainAxisAlignment: MainAxisAlignment .center,
32- children: < Widget > [
33- // Auto generated image from FlutterGen.
34- SizedBox (
35- width: 200 ,
36- height: 200 ,
37- child: MyAssets .rive.vehicles.rive (
38- fit: BoxFit .contain,
24+ home: Scaffold (
25+ appBar: AppBar (
26+ title: const Text ('FlutterGen' ),
27+ ),
28+ body: Center (
29+ child: SingleChildScrollView (
30+ child: Column (
31+ mainAxisAlignment: MainAxisAlignment .center,
32+ children: < Widget > [
33+ // Auto generated image from FlutterGen.
34+ SizedBox (
35+ width: 200 ,
36+ height: 200 ,
37+ child: MyAssets .rive.vehicles.rive (
38+ fit: BoxFit .contain,
39+ ),
3940 ),
40- ),
41- SizedBox (
42- width : 200 ,
43- height : 200 ,
44- child : MyAssets .lottie.hamburgerArrow. lottie (
45- fit : BoxFit .contain ,
41+ SizedBox (
42+ width : 200 ,
43+ height : 200 ,
44+ child : MyAssets .lottie.hamburgerArrow. lottie (
45+ fit : BoxFit .contain,
46+ ) ,
4647 ),
47- ),
48- SizedBox (
49- width : 200 ,
50- height : 200 ,
51- child : MyAssets .lottie.geometricalAnimation. lottie (
52- fit : BoxFit .contain ,
48+ SizedBox (
49+ width : 200 ,
50+ height : 200 ,
51+ child : MyAssets .lottie.geometricalAnimation. lottie (
52+ fit : BoxFit .contain,
53+ ) ,
5354 ),
54- ),
55- SizedBox (
56- width : 200 ,
57- height : 200 ,
58- child : MyAssets .lottie.alarmClockLottieV440. lottie (
59- fit : BoxFit .contain ,
55+ SizedBox (
56+ width : 200 ,
57+ height : 200 ,
58+ child : MyAssets .lottie.alarmClockLottieV440. lottie (
59+ fit : BoxFit .contain,
60+ ) ,
6061 ),
61- ),
62- MyAssets .images.chip1. image (),
63- Container (
64- height : 400 ,
65- decoration : BoxDecoration (
66- image: DecorationImage (
67- image : MyAssets .images.chip1. provider ( ),
62+ MyAssets .images.chip1. image ( ),
63+ Container (
64+ height : 400 ,
65+ decoration : BoxDecoration (
66+ image : DecorationImage (
67+ image: MyAssets .images.chip1. provider (),
68+ ),
6869 ),
70+ child: const Center (child: Text ('Deco' )),
71+ ),
72+ // Use from example_resource package.
73+ MyAssets .images.icons.kmm.svg (key: const Key ('kmm_svg' )),
74+ MyAssets .images.icons.fuchsia.svg (),
75+ MyAssets .images.icons.paint.svg (
76+ width: 120 ,
77+ height: 120 ,
6978 ),
70- child: const Center (child: Text ('Deco' )),
71- ),
72- // Use from example_resource package.
73- MyAssets .images.icons.kmm.svg (key: const Key ('kmm_svg' )),
74- MyAssets .images.icons.fuchsia.svg (),
75- MyAssets .images.icons.paint.svg (
76- width: 120 ,
77- height: 120 ,
78- ),
79- // MyAssets.pictures.chip5.image(
80- // key: const Key("chip5"),
81- // width: 120,
82- // height: 120,
83- // fit: BoxFit.scaleDown,
84- // ),
79+ // MyAssets.pictures.chip5.image(
80+ // key: const Key("chip5"),
81+ // width: 120,
82+ // height: 120,
83+ // fit: BoxFit.scaleDown,
84+ // ),
8585
86- // example_resource package.
87- Text (MyAssets .images.icons.kmm.path),
88- Text (MyAssets .images.icons.kmm.keyName),
89- Text (ResAssets .images.dart.path),
90- Text (ResAssets .images.dart.keyName),
91- ResAssets .images.flutter3.image (),
92- ResAssets .images.dart.svg (),
93- SizedBox (
94- width: 200 ,
95- height: 200 ,
96- child: ResAssets .images.skills.rive (
97- fit: BoxFit .contain,
86+ // example_resource package.
87+ Text (MyAssets .images.icons.kmm.path),
88+ Text (MyAssets .images.icons.kmm.keyName),
89+ Text (ResAssets .images.dart.path),
90+ Text (ResAssets .images.dart.keyName),
91+ ResAssets .images.flutter3.image (),
92+ ResAssets .images.dart.svg (),
93+ SizedBox (
94+ width: 200 ,
95+ height: 200 ,
96+ child: ResAssets .images.skills.rive (
97+ fit: BoxFit .contain,
98+ ),
9899 ),
99- ),
100- SizedBox (
101- width : 200 ,
102- height : 200 ,
103- child : ResAssets .images.runningCarOnRoad. lottie (
104- fit : BoxFit .contain ,
100+ SizedBox (
101+ width : 200 ,
102+ height : 200 ,
103+ child : ResAssets .images.runningCarOnRoad. lottie (
104+ fit : BoxFit .contain,
105+ ) ,
105106 ),
106- ),
107- const Text (
108- 'Hi there, I\' m FlutterGen' ,
109- style: TextStyle (
110- // Auto generated color from FlutterGen.
111- color: MyColorName .black60,
107+ const Text (
108+ 'Hi there, I\' m FlutterGen' ,
109+ style: TextStyle (
110+ // Auto generated color from FlutterGen.
111+ color: MyColorName .black60,
112112
113- // Auto generated font from FlutterGen.
114- fontFamily: MyFontFamily .robotoMono,
115- fontFamilyFallback: [MyFontFamily .raleway],
113+ // Auto generated font from FlutterGen.
114+ fontFamily: MyFontFamily .robotoMono,
115+ fontFamilyFallback: [MyFontFamily .raleway],
116+ ),
116117 ),
117- ) ,
118- ] ,
118+ ] ,
119+ ) ,
119120 ),
120121 ),
121122 ),
122- ),
123- ));
123+ );
124+ }
124125}
0 commit comments