Last active
January 1, 2019 08:23
-
-
Save Eng-MFQ/c475b5ba918d650d857435732f73829c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
/// this is your APP Main screen configuration | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData( | |
// to change your app color change this | |
/// first color is for IOS the second color is for Android | |
/*******************--[focus here 🧐]--*******************/ | |
primarySwatch: defaultTargetPlatform == TargetPlatform.iOS | |
? Colors.blue | |
: Colors.grey, | |
), | |
home: MyHomePage(), | |
); | |
} | |
} | |
/// this is a template to start building a UI | |
/// to start adding any UI you want change what comes after the [ body: ] tag below | |
class MyHomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
/*******************--[focus here 🧐]--*******************/ | |
title: Text( | |
'your App title', | |
), | |
elevation: | |
Theme.of(context).platform == TargetPlatform.iOS ? 0.0 : 6.0, | |
), | |
body: ListView( | |
children: <Widget>[ | |
myProject(context), | |
], | |
)); | |
} | |
/// /*******************--[focus here 🧐]--*******************/ | |
myProject(BuildContext context) { | |
return Column( | |
children: <Widget>[ | |
Text('Replace with your Widgets'), | |
Text('Replace with your Widgets'), | |
Text('Replace with your Widgets'), | |
], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment