forked from bytesizedwizard/flutterstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for feature bytesizedwizard#1
Added new splash screen, Added welcome screen
- Loading branch information
1 parent
1969e3b
commit ee3492b
Showing
44 changed files
with
268 additions
and
22 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.5 KB
android/app/src/main/res/drawable-xxxhdpi/app_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Modify this file to customize your launch splash screen --> | ||
<layer-list xmlns:android="https://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@android:color/white" /> | ||
|
||
<item> | ||
<shape android:shape="rectangle"> | ||
<solid android:color="@color/primaryBlue" /> | ||
<padding | ||
android:left="0dip" | ||
android:top="0dip" | ||
android:right="0dip" | ||
android:bottom="0dip" /> | ||
</shape> | ||
</item> | ||
<!-- You can insert your own image assets here --> | ||
<!-- <item> | ||
<item> | ||
<bitmap | ||
android:gravity="center" | ||
android:src="@mipmap/launch_image" /> | ||
</item> --> | ||
android:src="@drawable/app_launcher_foreground" /> | ||
</item> | ||
</layer-list> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="https://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@drawable/ic_launcher_foreground"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#003A60</color> | ||
<color name="primaryBlue">#002E4E</color> | ||
</resources> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15.9 KB
(250%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-204 Bytes
(64%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-424 Bytes
(67%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-275 Bytes
(83%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-503 Bytes
(51%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-392 Bytes
(77%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+261 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-424 Bytes
(67%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+121 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+307 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+307 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+407 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-39 Bytes
(98%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+484 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+467 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_studio/utils/colors.dart'; | ||
|
||
class WelcomeScreen extends StatefulWidget { | ||
@override | ||
_WelcomeScreenState createState() => _WelcomeScreenState(); | ||
} | ||
|
||
class _WelcomeScreenState extends State<WelcomeScreen> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Stack( | ||
alignment: Alignment.topLeft, | ||
children: <Widget>[ | ||
Positioned.fill( | ||
child: Container( | ||
decoration: BoxDecoration( | ||
gradient: LinearGradient( | ||
colors: [ | ||
AppColors.primaryAppColor, | ||
AppColors.secondaryAppColor | ||
], | ||
begin: Alignment.bottomCenter, | ||
end: Alignment.topCenter, | ||
tileMode: TileMode.clamp | ||
), | ||
), | ||
), | ||
), | ||
Positioned.fill( | ||
child: SafeArea( | ||
minimum: EdgeInsets.only( | ||
left: 20.0, | ||
right: 20.0, | ||
top: 50.0, | ||
bottom: 25.0 | ||
), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.stretch, | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
children: <Widget>[ | ||
Flexible( | ||
flex: 1, | ||
child: Text( | ||
"Welcome to", | ||
style: TextStyle( | ||
color: AppColors.primaryFontColor, | ||
fontSize: 20, | ||
fontWeight: FontWeight.w600 | ||
), | ||
), | ||
), | ||
SizedBox(height: 25.0,), | ||
Flexible( | ||
flex: 2, | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
Image.asset( | ||
"assets/images/flutter_studio_logo.png", | ||
alignment: Alignment.topLeft, | ||
width: 165, | ||
), | ||
], | ||
), | ||
), | ||
SizedBox(height: 25.0,), | ||
Flexible( | ||
flex: 14, | ||
child: ListView( | ||
children: <Widget>[ | ||
Text( | ||
"Flutter Studio is an open source interactive Dart code generator developed in Flutter, the hybrid mobile programming framework based on the Dart language, made by Google.", | ||
style: TextStyle( | ||
fontSize: 14, | ||
color: AppColors.primaryFontColor, | ||
fontWeight: FontWeight.w300, | ||
height: 1.25 | ||
), | ||
), | ||
SizedBox(height: 25.0,), | ||
Text( | ||
"Initially developed as an official submission for the first ever Flutter International Hackathon, this project aims to help make flutter as fast and easy to learn as possible for beginners as well as seasoned developers.", | ||
style: TextStyle( | ||
fontSize: 14, | ||
color: AppColors.primaryFontColor, | ||
fontWeight: FontWeight.w300, | ||
height: 1.25 | ||
), | ||
), | ||
SizedBox(height: 25.0,), | ||
Text( | ||
"We hope this project can serve as a starting point to all those who are looking to try out flutter, and in due course of time, can evolve into something much more.", | ||
style: TextStyle( | ||
fontSize: 14, | ||
color: AppColors.primaryFontColor, | ||
fontWeight: FontWeight.w300, | ||
height: 1.25 | ||
), | ||
), | ||
SizedBox(height: 25.0,), | ||
Text( | ||
"Let's build something great together!", | ||
style: TextStyle( | ||
fontSize: 18, | ||
color: AppColors.primaryFontColor, | ||
fontWeight: FontWeight.w600, | ||
height: 1.25 | ||
), | ||
), | ||
], | ||
), | ||
), | ||
SizedBox(height: 25.0,), | ||
Flexible( | ||
flex: 2, | ||
fit: FlexFit.loose, | ||
child: ButtonTheme( | ||
height: 50, | ||
buttonColor: AppColors(0xFF006AD3), | ||
child: RaisedButton( | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(4.0) | ||
), | ||
elevation: 7.0, | ||
onPressed: () {}, | ||
child: Text( | ||
"Get Started", | ||
style: TextStyle( | ||
color: AppColors.primaryFontColor, | ||
fontWeight: FontWeight.w300, | ||
fontSize: 16 | ||
), | ||
), | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class AppColors extends Color { | ||
|
||
final int colorCode; | ||
const AppColors(this.colorCode) : super(colorCode); | ||
|
||
static final AppColors primaryAppColor = const AppColors(0xFF003A60); | ||
static final AppColors secondaryAppColor = const AppColors(0xFF001320); | ||
static final AppColors primaryFontColor = const AppColors(0xFFFFFFFF); | ||
} |
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
Oops, something went wrong.