Skip to content

Commit 5629e44

Browse files
authored
Merge pull request #17 from wasabeef/integrations
Support flutter_svg as an Integratins.
2 parents a852cd6 + f32849a commit 5629e44

24 files changed

+578
-170
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22

33
### What is the value of this and can you measure success?
44

5-
### Screenshots (Optional)
6-
7-
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

example/lib/gen/assets.gen.dart

Lines changed: 82 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/main.dart

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,36 @@ void main() {
1717
title: const Text('FlutterGen'),
1818
),
1919
body: Center(
20-
child: Column(
21-
mainAxisAlignment: MainAxisAlignment.center,
22-
children: <Widget>[
23-
// Auto generated image from FlutterGen.
24-
Image(image: Assets.images.chip1),
25-
Assets.pictures.chip5.image(
26-
width: 120,
27-
height: 120,
28-
fit: BoxFit.scaleDown,
29-
),
30-
const Text(
31-
'Hi there, I\'m FlutterGen',
32-
style: TextStyle(
33-
// Auto generated color from FlutterGen.
34-
color: ColorName.black60,
35-
// Auto generated font from FlutterGen.
36-
fontFamily: FontFamily.robotoMono,
37-
fontFamilyFallback: [FontFamily.raleway],
20+
child: SingleChildScrollView(
21+
child: Column(
22+
mainAxisAlignment: MainAxisAlignment.center,
23+
children: <Widget>[
24+
// Auto generated image from FlutterGen.
25+
Image(image: Assets.images.chip1),
26+
Assets.images.icons.kmm.svg(),
27+
Assets.images.icons.fuchsia.svg(),
28+
Assets.images.icons.paint.svg(
29+
width: 120,
30+
height: 120
3831
),
39-
),
40-
],
32+
Assets.pictures.chip5.image(
33+
width: 120,
34+
height: 120,
35+
fit: BoxFit.scaleDown,
36+
),
37+
const Text(
38+
'Hi there, I\'m FlutterGen',
39+
style: TextStyle(
40+
// Auto generated color from FlutterGen.
41+
color: ColorName.black60,
42+
43+
// Auto generated font from FlutterGen.
44+
fontFamily: FontFamily.robotoMono,
45+
fontFamilyFallback: [FontFamily.raleway],
46+
),
47+
),
48+
],
49+
),
4150
),
4251
),
4352
),

0 commit comments

Comments
 (0)