Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ getflutter-web-kit
getflutter_app
test/.test_coverage.dart
example
getflutter/lib/components/slidable

# Android related
**/android/**/gradle-wrapper.jar
Expand Down
148 changes: 74 additions & 74 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
title: 'GetFlutter',
debugShowCheckedModeBanner: false,
home: MyHomePage(),
);
title: 'GetFlutter',
debugShowCheckedModeBanner: false,
home: MyHomePage(),
);
}

class MyHomePage extends StatefulWidget {
Expand All @@ -37,84 +37,84 @@ class _MyHomePageState extends State<MyHomePage> {

@override
Widget build(BuildContext context) => Scaffold(
backgroundColor: GFColors.DARK,
body: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
InkWell(
onTap: () {
_launchUrl(_githubLibraryRepoLink);
},
child: SvgPicture.asset('lib/assets/logo.svg'),
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
backgroundColor: GFColors.DARK,
body: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
const Padding(
padding: EdgeInsets.only(bottom: 25),
child: Center(
child: Text(
'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 GetFlutter library. Please have a look there.',
style: TextStyle(
fontSize: 16,
color: GFColors.WHITE,
InkWell(
onTap: () {
_launchUrl(_githubLibraryRepoLink);
},
child: SvgPicture.asset('lib/assets/logo.svg'),
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
const Padding(
padding: EdgeInsets.only(bottom: 25),
child: Center(
child: Text(
'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 GetFlutter library. Please have a look there.',
style: TextStyle(
fontSize: 16,
color: GFColors.WHITE,
),
textAlign: TextAlign.center,
),
),
textAlign: TextAlign.center,
),
),
GFButton(
size: GFSize.large,
text: 'View on Github',
textStyle: const TextStyle(
fontSize: 16,
color: GFColors.WHITE,
),
icon: SvgPicture.asset(
'lib/assets/github.svg',
height: 22,
),
color: GFColors.SUCCESS,
blockButton: true,
onPressed: () {
_launchUrl(_githuAppRepoLink);
}),
],
),
GFButton(
size: GFSize.large,
text: 'View on Github',
textStyle: const TextStyle(
fontSize: 16,
color: GFColors.WHITE,
),
icon: SvgPicture.asset(
'lib/assets/github.svg',
height: 22,
),
color: GFColors.SUCCESS,
blockButton: true,
onPressed: () {
_launchUrl(_githuAppRepoLink);
}),
],
),
Column(
children: <Widget>[
const Padding(
padding: EdgeInsets.only(bottom: 25),
child: Center(
child: Text(
'We also have same app on playstore. It shows various possibilities that you can achieve using GetFlutter library.',
style: TextStyle(
fontSize: 16,
color: GFColors.WHITE,
Column(
children: <Widget>[
const Padding(
padding: EdgeInsets.only(bottom: 25),
child: Center(
child: Text(
'We also have same app on playstore. It shows various possibilities that you can achieve using GetFlutter library.',
style: TextStyle(
fontSize: 16,
color: GFColors.WHITE,
),
textAlign: TextAlign.center,
),
),
textAlign: TextAlign.center,
),
),
GFButton(
size: GFSize.large,
text: 'View on Playstore',
textStyle:
const TextStyle(fontSize: 16, color: GFColors.WHITE),
icon: SvgPicture.asset(
'lib/assets/playstore.svg',
height: 20,
),
color: GFColors.SUCCESS,
blockButton: true,
onPressed: () {
_launchUrl(_playStoreLink);
}),
],
),
GFButton(
size: GFSize.large,
text: 'View on Playstore',
textStyle:
const TextStyle(fontSize: 16, color: GFColors.WHITE),
icon: SvgPicture.asset(
'lib/assets/playstore.svg',
height: 20,
),
color: GFColors.SUCCESS,
blockButton: true,
onPressed: () {
_launchUrl(_playStoreLink);
}),
],
),
],
),
);
);
}
Loading