Skip to content

Commit a4f216f

Browse files
Merge pull request #92 from Sandipkakadiya/review
description & links added
2 parents 620b3ce + 68ccc7f commit a4f216f

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

example/lib/main.dart

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void main() => runApp(MyApp());
88
class MyApp extends StatelessWidget {
99
@override
1010
Widget build(BuildContext context) => MaterialApp(
11-
title: 'getflutter_EXAMPLE',
11+
title: 'GetFlutter',
1212
debugShowCheckedModeBanner: false,
1313
home: MyHomePage(),
1414
);
@@ -20,6 +20,14 @@ class MyHomePage extends StatefulWidget {
2020
}
2121

2222
class _MyHomePageState extends State<MyHomePage> {
23+
final String _playStoreLink =
24+
'https://play.google.com/store/apps/details?id=dev.getflutter.appkit';
25+
// final String _appStoreLink = 'Coming Soon';
26+
final String _githuAppRepoLink =
27+
'https://github.com/ionicfirebaseapp/getflutter-app-kit';
28+
final String _githubLibraryRepoLink =
29+
'https://github.com/ionicfirebaseapp/getflutter';
30+
2331
Future _launchUrl(url) async {
2432
if (await canLaunch(url)) {
2533
return await launch(url);
@@ -34,7 +42,12 @@ class _MyHomePageState extends State<MyHomePage> {
3442
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
3543
crossAxisAlignment: CrossAxisAlignment.center,
3644
children: <Widget>[
37-
SvgPicture.asset('lib/assets/logo.svg'),
45+
InkWell(
46+
onTap: () {
47+
_launchUrl(_githubLibraryRepoLink);
48+
},
49+
child: SvgPicture.asset('lib/assets/logo.svg'),
50+
),
3851
Column(
3952
mainAxisAlignment: MainAxisAlignment.center,
4053
crossAxisAlignment: CrossAxisAlignment.center,
@@ -43,7 +56,7 @@ class _MyHomePageState extends State<MyHomePage> {
4356
padding: EdgeInsets.only(bottom: 25),
4457
child: Center(
4558
child: Text(
46-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ',
59+
'To keep library size small and code clean we manage example on different repository. which includes clear usage of each and every component that we provide in getfltter library. Please have a look there.',
4760
style: TextStyle(
4861
fontSize: 16,
4962
color: GFColors.WHITE,
@@ -66,8 +79,7 @@ class _MyHomePageState extends State<MyHomePage> {
6679
color: GFColors.SUCCESS,
6780
blockButton: true,
6881
onPressed: () {
69-
_launchUrl(
70-
'https://github.com/ionicfirebaseapp/getflutter-app-kit');
82+
_launchUrl(_githuAppRepoLink);
7183
}),
7284
],
7385
),
@@ -77,7 +89,7 @@ class _MyHomePageState extends State<MyHomePage> {
7789
padding: EdgeInsets.only(bottom: 25),
7890
child: Center(
7991
child: Text(
80-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ',
92+
'We also have same app on playstore. It shows various possibilities that you can achieve using GetFlutter library.',
8193
style: TextStyle(
8294
fontSize: 16,
8395
color: GFColors.WHITE,
@@ -98,8 +110,7 @@ class _MyHomePageState extends State<MyHomePage> {
98110
color: GFColors.SUCCESS,
99111
blockButton: true,
100112
onPressed: () {
101-
_launchUrl(
102-
'https://play.google.com/store/apps/details?id=dev.getflutter.appkit');
113+
_launchUrl(_playStoreLink);
103114
}),
104115
],
105116
),

0 commit comments

Comments
 (0)