├── .gitignore ├── .metadata ├── README.md ├── android ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── nb │ │ │ └── flutteruiapp │ │ │ └── MainActivity.java │ │ └── res │ │ ├── drawable │ │ └── launch_background.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── images │ ├── blank.jpg │ ├── dashboard.jpg │ ├── login.jpg │ ├── map.png │ ├── nb.jpeg │ ├── payment.jpg │ ├── pk.jpg │ ├── profile.jpg │ ├── setting.jpeg │ ├── shopping.jpeg │ ├── timeline.jpeg │ └── verification.jpg ├── doc ├── LearnAll.asta ├── drawer.png ├── home_page.png ├── profile_1.png └── show_dialog.png ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── main.m ├── lib ├── const │ ├── color_const.dart │ ├── images_const.dart │ ├── size_const.dart │ └── string_const.dart ├── data │ └── Menu.dart ├── main.dart ├── page │ ├── EmptyPage.dart │ ├── dashboard │ │ ├── DashOnePage.dart │ │ └── DashTwoPage.dart │ ├── home_page.dart │ ├── login │ │ ├── LoginOnePage.dart │ │ └── LoginTwoPage.dart │ ├── noitem │ │ └── NoResultPage.dart │ ├── pages.dart │ ├── pay │ │ ├── PayOnePage.dart │ │ └── PayTwoPage.dart │ ├── profile │ │ ├── ProfileOnePage.dart │ │ └── ProfileTwoPage.dart │ ├── setting │ │ └── SettingOnePage.dart │ ├── shopping │ │ ├── ShopOnePage.dart │ │ ├── ShopThreePage.dart │ │ └── ShopTwoPage.dart │ └── timeline │ │ ├── TimeOnePage.dart │ │ └── TimeTwoPage.dart ├── stream │ └── menu_stream.dart └── view │ ├── AboutMeTitle.dart │ ├── base_page.dart │ └── common_drawer.dart ├── licence.txt ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: d74b1c205103ed2132fc5ae536a94217ec965fb3 8 | channel: master 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Facebook Page | Facebook Group | QQ Group | Developer | 2 | --- | --- | --- | --- 3 | [Flutter Open ](https://www.facebook.com/flutteropen) | [Flutter Open](https://www.facebook.com/groups/948618338674126/) | 963828159 |[NieBin](https://github.com/nb312) 4 | # flutter-scrollviews 5 | ### :heart: Star :heart: the repo to support the project or :smile:[Follow Me](https://github.com/nb312).Thanks! 6 | 7 | ### You will learn: 8 | 1 | 2 | 3 | 4 9 | --- | --- | --- | --- 10 | StreamBuilder | SliverAppBar| SliverGrid | GlobalKey 11 | CircleAvatar | SingleChildScrollView | showModalBottomSheet | AboutListTile 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.nb.flutteruiapp" 37 | minSdkVersion 16 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/nb/flutteruiapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.nb.flutteruiapp; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/images/blank.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/blank.jpg -------------------------------------------------------------------------------- /assets/images/dashboard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/dashboard.jpg -------------------------------------------------------------------------------- /assets/images/login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/login.jpg -------------------------------------------------------------------------------- /assets/images/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/map.png -------------------------------------------------------------------------------- /assets/images/nb.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/nb.jpeg -------------------------------------------------------------------------------- /assets/images/payment.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/payment.jpg -------------------------------------------------------------------------------- /assets/images/pk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/pk.jpg -------------------------------------------------------------------------------- /assets/images/profile.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/profile.jpg -------------------------------------------------------------------------------- /assets/images/setting.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/setting.jpeg -------------------------------------------------------------------------------- /assets/images/shopping.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/shopping.jpeg -------------------------------------------------------------------------------- /assets/images/timeline.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/timeline.jpeg -------------------------------------------------------------------------------- /assets/images/verification.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/assets/images/verification.jpg -------------------------------------------------------------------------------- /doc/LearnAll.asta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/doc/LearnAll.asta -------------------------------------------------------------------------------- /doc/drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/doc/drawer.png -------------------------------------------------------------------------------- /doc/home_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/doc/home_page.png -------------------------------------------------------------------------------- /doc/profile_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/doc/profile_1.png -------------------------------------------------------------------------------- /doc/show_dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/doc/show_dialog.png -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 47 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | 9740EEB11CF90186004384FC /* Flutter */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 77 | 3B80C3931E831B6300D905FE /* App.framework */, 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 81 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 82 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 83 | ); 84 | name = Flutter; 85 | sourceTree = ""; 86 | }; 87 | 97C146E51CF9000F007C117D = { 88 | isa = PBXGroup; 89 | children = ( 90 | 9740EEB11CF90186004384FC /* Flutter */, 91 | 97C146F01CF9000F007C117D /* Runner */, 92 | 97C146EF1CF9000F007C117D /* Products */, 93 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 109 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 110 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 111 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 112 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 113 | 97C147021CF9000F007C117D /* Info.plist */, 114 | 97C146F11CF9000F007C117D /* Supporting Files */, 115 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 116 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 117 | ); 118 | path = Runner; 119 | sourceTree = ""; 120 | }; 121 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 97C146F21CF9000F007C117D /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 97C146ED1CF9000F007C117D /* Runner */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 135 | buildPhases = ( 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | ); 147 | name = Runner; 148 | productName = Runner; 149 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 150 | productType = "com.apple.product-type.application"; 151 | }; 152 | /* End PBXNativeTarget section */ 153 | 154 | /* Begin PBXProject section */ 155 | 97C146E61CF9000F007C117D /* Project object */ = { 156 | isa = PBXProject; 157 | attributes = { 158 | LastUpgradeCheck = 0910; 159 | ORGANIZATIONNAME = "The Chromium Authors"; 160 | TargetAttributes = { 161 | 97C146ED1CF9000F007C117D = { 162 | CreatedOnToolsVersion = 7.3.1; 163 | }; 164 | }; 165 | }; 166 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 167 | compatibilityVersion = "Xcode 3.2"; 168 | developmentRegion = English; 169 | hasScannedForEncodings = 0; 170 | knownRegions = ( 171 | en, 172 | Base, 173 | ); 174 | mainGroup = 97C146E51CF9000F007C117D; 175 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 176 | projectDirPath = ""; 177 | projectRoot = ""; 178 | targets = ( 179 | 97C146ED1CF9000F007C117D /* Runner */, 180 | ); 181 | }; 182 | /* End PBXProject section */ 183 | 184 | /* Begin PBXResourcesBuildPhase section */ 185 | 97C146EC1CF9000F007C117D /* Resources */ = { 186 | isa = PBXResourcesBuildPhase; 187 | buildActionMask = 2147483647; 188 | files = ( 189 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 190 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 191 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 192 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 193 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 214 | }; 215 | 9740EEB61CF901F6004384FC /* Run Script */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputPaths = ( 221 | ); 222 | name = "Run Script"; 223 | outputPaths = ( 224 | ); 225 | runOnlyForDeploymentPostprocessing = 0; 226 | shellPath = /bin/sh; 227 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 228 | }; 229 | /* End PBXShellScriptBuildPhase section */ 230 | 231 | /* Begin PBXSourcesBuildPhase section */ 232 | 97C146EA1CF9000F007C117D /* Sources */ = { 233 | isa = PBXSourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 237 | 97C146F31CF9000F007C117D /* main.m in Sources */, 238 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin PBXVariantGroup section */ 245 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 246 | isa = PBXVariantGroup; 247 | children = ( 248 | 97C146FB1CF9000F007C117D /* Base */, 249 | ); 250 | name = Main.storyboard; 251 | sourceTree = ""; 252 | }; 253 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 254 | isa = PBXVariantGroup; 255 | children = ( 256 | 97C147001CF9000F007C117D /* Base */, 257 | ); 258 | name = LaunchScreen.storyboard; 259 | sourceTree = ""; 260 | }; 261 | /* End PBXVariantGroup section */ 262 | 263 | /* Begin XCBuildConfiguration section */ 264 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 265 | isa = XCBuildConfiguration; 266 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 267 | buildSettings = { 268 | ALWAYS_SEARCH_USER_PATHS = NO; 269 | CLANG_ANALYZER_NONNULL = YES; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 275 | CLANG_WARN_BOOL_CONVERSION = YES; 276 | CLANG_WARN_COMMA = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INFINITE_RECURSION = YES; 282 | CLANG_WARN_INT_CONVERSION = YES; 283 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 284 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 285 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 286 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 287 | CLANG_WARN_STRICT_PROTOTYPES = YES; 288 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 294 | ENABLE_NS_ASSERTIONS = NO; 295 | ENABLE_STRICT_OBJC_MSGSEND = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 300 | GCC_WARN_UNDECLARED_SELECTOR = YES; 301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 302 | GCC_WARN_UNUSED_FUNCTION = YES; 303 | GCC_WARN_UNUSED_VARIABLE = YES; 304 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 305 | MTL_ENABLE_DEBUG_INFO = NO; 306 | SDKROOT = iphoneos; 307 | TARGETED_DEVICE_FAMILY = "1,2"; 308 | VALIDATE_PRODUCT = YES; 309 | }; 310 | name = Profile; 311 | }; 312 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 313 | isa = XCBuildConfiguration; 314 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 315 | buildSettings = { 316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 317 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 318 | DEVELOPMENT_TEAM = S8QB4VV633; 319 | ENABLE_BITCODE = NO; 320 | FRAMEWORK_SEARCH_PATHS = ( 321 | "$(inherited)", 322 | "$(PROJECT_DIR)/Flutter", 323 | ); 324 | INFOPLIST_FILE = Runner/Info.plist; 325 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 326 | LIBRARY_SEARCH_PATHS = ( 327 | "$(inherited)", 328 | "$(PROJECT_DIR)/Flutter", 329 | ); 330 | PRODUCT_BUNDLE_IDENTIFIER = com.nb.flutterUiApp; 331 | PRODUCT_NAME = "$(TARGET_NAME)"; 332 | VERSIONING_SYSTEM = "apple-generic"; 333 | }; 334 | name = Profile; 335 | }; 336 | 97C147031CF9000F007C117D /* Debug */ = { 337 | isa = XCBuildConfiguration; 338 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_NONNULL = YES; 342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 343 | CLANG_CXX_LIBRARY = "libc++"; 344 | CLANG_ENABLE_MODULES = YES; 345 | CLANG_ENABLE_OBJC_ARC = YES; 346 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 347 | CLANG_WARN_BOOL_CONVERSION = YES; 348 | CLANG_WARN_COMMA = YES; 349 | CLANG_WARN_CONSTANT_CONVERSION = YES; 350 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 351 | CLANG_WARN_EMPTY_BODY = YES; 352 | CLANG_WARN_ENUM_CONVERSION = YES; 353 | CLANG_WARN_INFINITE_RECURSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 359 | CLANG_WARN_STRICT_PROTOTYPES = YES; 360 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | DEBUG_INFORMATION_FORMAT = dwarf; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | ENABLE_TESTABILITY = YES; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_NO_COMMON_BLOCKS = YES; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | MTL_ENABLE_DEBUG_INFO = YES; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | }; 388 | name = Debug; 389 | }; 390 | 97C147041CF9000F007C117D /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 405 | CLANG_WARN_EMPTY_BODY = YES; 406 | CLANG_WARN_ENUM_CONVERSION = YES; 407 | CLANG_WARN_INFINITE_RECURSION = YES; 408 | CLANG_WARN_INT_CONVERSION = YES; 409 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | TARGETED_DEVICE_FAMILY = "1,2"; 434 | VALIDATE_PRODUCT = YES; 435 | }; 436 | name = Release; 437 | }; 438 | 97C147061CF9000F007C117D /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 441 | buildSettings = { 442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 443 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 444 | ENABLE_BITCODE = NO; 445 | FRAMEWORK_SEARCH_PATHS = ( 446 | "$(inherited)", 447 | "$(PROJECT_DIR)/Flutter", 448 | ); 449 | INFOPLIST_FILE = Runner/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | LIBRARY_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | PRODUCT_BUNDLE_IDENTIFIER = com.nb.flutterUiApp; 456 | PRODUCT_NAME = "$(TARGET_NAME)"; 457 | VERSIONING_SYSTEM = "apple-generic"; 458 | }; 459 | name = Debug; 460 | }; 461 | 97C147071CF9000F007C117D /* Release */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 464 | buildSettings = { 465 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 466 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 467 | ENABLE_BITCODE = NO; 468 | FRAMEWORK_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "$(PROJECT_DIR)/Flutter", 471 | ); 472 | INFOPLIST_FILE = Runner/Info.plist; 473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 474 | LIBRARY_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | PRODUCT_BUNDLE_IDENTIFIER = com.nb.flutterUiApp; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | VERSIONING_SYSTEM = "apple-generic"; 481 | }; 482 | name = Release; 483 | }; 484 | /* End XCBuildConfiguration section */ 485 | 486 | /* Begin XCConfigurationList section */ 487 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 488 | isa = XCConfigurationList; 489 | buildConfigurations = ( 490 | 97C147031CF9000F007C117D /* Debug */, 491 | 97C147041CF9000F007C117D /* Release */, 492 | 249021D3217E4FDB00AE95B9 /* Profile */, 493 | ); 494 | defaultConfigurationIsVisible = 0; 495 | defaultConfigurationName = Release; 496 | }; 497 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 498 | isa = XCConfigurationList; 499 | buildConfigurations = ( 500 | 97C147061CF9000F007C117D /* Debug */, 501 | 97C147071CF9000F007C117D /* Release */, 502 | 249021D4217E4FDB00AE95B9 /* Profile */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | defaultConfigurationName = Release; 506 | }; 507 | /* End XCConfigurationList section */ 508 | }; 509 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 510 | } 511 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nb312/flutter-scrollviews/f78e0cb1df425b356317cd3907880b12a4a66126/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_ui_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/const/color_const.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-14 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | const MAIN_COLOR = Color(0xFF303030); 9 | const DARK_COLOR = Color(0xFFBDBDBD); 10 | const BOTTOM_COLORS = [MAIN_COLOR, DARK_COLOR]; 11 | -------------------------------------------------------------------------------- /lib/const/images_const.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | 7 | class ImagePath { 8 | //images 9 | static const String imageDir = "assets/images"; 10 | static const String pkImage = "$imageDir/pk.jpg"; 11 | static const String profileImage = "$imageDir/profile.jpg"; 12 | static const String blankImage = "$imageDir/blank.jpg"; 13 | static const String dashboardImage = "$imageDir/dashboard.jpg"; 14 | static const String loginImage = "$imageDir/login.jpg"; 15 | static const String paymentImage = "$imageDir/payment.jpg"; 16 | static const String settingsImage = "$imageDir/setting.jpeg"; 17 | static const String shoppingImage = "$imageDir/shopping.jpeg"; 18 | static const String timelineImage = "$imageDir/timeline.jpeg"; 19 | static const String verifyImage = "$imageDir/verification.jpg"; 20 | static const String nbImage = "$imageDir/nb.jpeg"; 21 | } 22 | -------------------------------------------------------------------------------- /lib/const/size_const.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-14 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | const TEXT_LARGE_SIZE = 22.0; 7 | const TEXT_NORMAL_SIZE = 14.0; 8 | const TEXT_SMALL_SIZE = 10.0; 9 | -------------------------------------------------------------------------------- /lib/const/string_const.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-14 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | /// 7 | import "package:flutter/material.dart"; 8 | 9 | ///TODO need international. 10 | class StringConst { 11 | //strings 12 | static const String APP_NAME = "Flutter UI APP"; 13 | static const String CREATE_BY = "Created By NieBin"; 14 | static const String DEVELOPER = "NieBin"; 15 | static const String PROFESSION = "Flutter Developer"; 16 | static const String DEV_EMAIL = "niebin312@gmail.com"; 17 | } 18 | 19 | class PageConst { 20 | //routes 21 | static const String homeRoute = "/home"; 22 | static const String profileOneRoute = "/View Profile"; 23 | static const String profileTwoRoute = "/Profile 2"; 24 | static const String notFoundRoute = "/No Search Result"; 25 | static const String timelineOneRoute = "/Feed"; 26 | static const String timelineTwoRoute = "/Tweets"; 27 | static const String settingsOneRoute = "/Device Settings"; 28 | static const String shoppingOneRoute = "/Shopping List"; 29 | static const String shoppingTwoRoute = "/Shopping Details"; 30 | static const String shoppingThreeRoute = "/Product Details"; 31 | static const String paymentOneRoute = "/Credit Card"; 32 | static const String paymentTwoRoute = "/Payment Success"; 33 | static const String loginOneRoute = "/Login With OTP"; 34 | static const String loginTwoRoute = "/Login 2"; 35 | static const String dashboardOneRoute = "/Dashboard 1"; 36 | static const String dashboardTwoRoute = "/Dashboard 2"; 37 | } 38 | -------------------------------------------------------------------------------- /lib/data/Menu.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import 'package:flutter/material.dart'; 7 | 8 | class Menu { 9 | String title; 10 | IconData icon; 11 | String image; 12 | List items; 13 | BuildContext context; 14 | Color menuColor; 15 | 16 | Menu( 17 | {this.title, 18 | this.icon, 19 | this.image, 20 | this.items, 21 | this.context, 22 | this.menuColor}); 23 | } 24 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_ui_app/page/home_page.dart'; 3 | import 'const/string_const.dart'; 4 | import 'package:flutter_ui_app/page/pages.dart'; 5 | import 'const/color_const.dart'; 6 | 7 | void main() => runApp(MyApp()); 8 | 9 | class MyApp extends StatelessWidget { 10 | // This widget is the root of your application. 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | 15 | title: StringConst.APP_NAME, 16 | debugShowCheckedModeBanner: false, 17 | theme: ThemeData(primaryColor: MAIN_COLOR, accentColor: MAIN_COLOR), 18 | home: HomePage(), 19 | routes: { 20 | PageConst.profileOneRoute: (context) => ProfileOnePage(), 21 | PageConst.profileTwoRoute: (context) => ProfileTwoPage(), 22 | PageConst.shoppingOneRoute: (context) => ShopOnePage(), 23 | PageConst.shoppingTwoRoute: (context) => ShopTwoPage(), 24 | PageConst.shoppingThreeRoute: (context) => ShopThreePage(), 25 | PageConst.loginOneRoute: (context) => LoginOnePage(), 26 | PageConst.loginTwoRoute: (context) => LoginTwoPage(), 27 | PageConst.timelineOneRoute: (context) => TimeOnePage(), 28 | PageConst.timelineTwoRoute: (context) => TimeTwoPage(), 29 | PageConst.dashboardOneRoute: (context) => DashOnePage(), 30 | PageConst.dashboardTwoRoute: (context) => DashTwoPage(), 31 | PageConst.settingsOneRoute: (context) => SettingOnePage(), 32 | PageConst.notFoundRoute: (context) => NoResultPage(), 33 | PageConst.paymentOneRoute: (context) => PayOnePage(), 34 | PageConst.paymentTwoRoute: (context) => PayTwoPage(), 35 | }, 36 | onUnknownRoute: (setting) => 37 | MaterialPageRoute(builder: (context) => EmptyPage()), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/page/EmptyPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class EmptyPage extends StatefulWidget { 9 | @override 10 | _EmptyState createState() => _EmptyState(); 11 | } 12 | 13 | class _EmptyState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/dashboard/DashOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class DashOnePage extends StatefulWidget { 9 | @override 10 | _DashOneState createState() => _DashOneState(); 11 | } 12 | 13 | class _DashOneState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/dashboard/DashTwoPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class DashTwoPage extends StatefulWidget { 9 | @override 10 | _DashTwoState createState() => _DashTwoState(); 11 | } 12 | 13 | class _DashTwoState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/home_page.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-14 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | import 'package:flutter_ui_app/stream/menu_stream.dart'; 8 | import 'package:flutter_ui_app/data/Menu.dart'; 9 | import 'package:flutter_ui_app/const/string_const.dart'; 10 | import 'package:flutter_ui_app/view/AboutMeTitle.dart'; 11 | import 'package:flutter_ui_app/const/size_const.dart'; 12 | import 'package:flutter_ui_app/const/images_const.dart'; 13 | 14 | class HomePage extends StatelessWidget { 15 | final _scaffoldState = GlobalKey(); 16 | 17 | Widget _topBar() => SliverAppBar( 18 | elevation: 1.0, 19 | pinned: true, 20 | expandedHeight: 150.0, 21 | flexibleSpace: FlexibleSpaceBar( 22 | title: Row( 23 | children: [ 24 | FlutterLogo( 25 | colors: Colors.cyan, 26 | ), 27 | SizedBox( 28 | width: 6.0, 29 | ), 30 | Text( 31 | StringConst.APP_NAME, 32 | style: TextStyle(color: Colors.white), 33 | ) 34 | ], 35 | ), 36 | background: Container( 37 | decoration: BoxDecoration( 38 | gradient: LinearGradient(colors: [ 39 | Colors.grey[900], 40 | Colors.cyan, 41 | ]), 42 | ), 43 | ), 44 | collapseMode: CollapseMode.pin, 45 | ), 46 | ); 47 | 48 | Widget _menuItem(context, item) { 49 | return InkWell( 50 | child: Container( 51 | padding: EdgeInsets.symmetric(horizontal: 20.0), 52 | decoration: BoxDecoration(boxShadow: [ 53 | BoxShadow( 54 | color: Colors.grey[800], 55 | offset: Offset(0.0, 2.0), 56 | ) 57 | ]), 58 | constraints: BoxConstraints.expand(height: 60.0), 59 | child: Column( 60 | crossAxisAlignment: CrossAxisAlignment.start, 61 | mainAxisAlignment: MainAxisAlignment.center, 62 | children: [ 63 | Text( 64 | item, 65 | style: 66 | TextStyle(color: Colors.white, fontSize: TEXT_NORMAL_SIZE), 67 | ), 68 | ] 69 | // Divider( 70 | // height: 1.0, 71 | // color: Colors.white, 72 | // ) 73 | // ], 74 | ), 75 | ), 76 | onTap: () { 77 | Navigator.pop(context); 78 | Navigator.pushNamed(context, "/$item"); 79 | }, 80 | ); 81 | } 82 | 83 | Widget _menuList(Menu menu) { 84 | return ListView.builder( 85 | itemBuilder: (context, index) { 86 | return _menuItem(context, menu.items[index]); 87 | }, 88 | itemCount: menu.items.length, 89 | ); 90 | } 91 | 92 | Widget _header() { 93 | return Ink( 94 | child: Container( 95 | padding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 4.0), 96 | decoration: BoxDecoration( 97 | gradient: LinearGradient(colors: [ 98 | Colors.cyanAccent, 99 | Colors.grey[900], 100 | ]), 101 | ), 102 | constraints: BoxConstraints.expand(height: 80.0), 103 | child: Center( 104 | child: Row( 105 | children: [ 106 | CircleAvatar( 107 | radius: 30.0, 108 | backgroundImage: AssetImage(ImagePath.nbImage), 109 | ), 110 | SizedBox( 111 | width: 20.0, 112 | ), 113 | Text( 114 | StringConst.CREATE_BY, 115 | style: TextStyle( 116 | color: Colors.white, 117 | fontSize: TEXT_NORMAL_SIZE, 118 | fontWeight: FontWeight.w700), 119 | ), 120 | ], 121 | ), 122 | ), 123 | ), 124 | ); 125 | } 126 | 127 | void _clickMenu(context, Menu menu) { 128 | showModalBottomSheet( 129 | context: context, 130 | builder: (context) => Material( 131 | color: Colors.white, 132 | clipBehavior: Clip.antiAliasWithSaveLayer, 133 | shape: RoundedRectangleBorder( 134 | borderRadius: BorderRadius.only( 135 | topLeft: Radius.circular(20.0), 136 | topRight: Radius.circular(20.0))), 137 | child: Column( 138 | mainAxisAlignment: MainAxisAlignment.spaceAround, 139 | children: [ 140 | _header(), 141 | Expanded( 142 | child: _menuList(menu), 143 | ), 144 | AboutMeTitle(), 145 | ], 146 | ), 147 | ), 148 | ); 149 | } 150 | 151 | Widget _gridItem(context, Menu menu) => InkWell( 152 | onTap: () { 153 | _clickMenu(context, menu); 154 | }, 155 | child: Stack( 156 | fit: StackFit.expand, 157 | children: [ 158 | Image.asset( 159 | menu.image, 160 | fit: BoxFit.cover, 161 | ), 162 | Container( 163 | constraints: BoxConstraints.expand(), 164 | decoration: BoxDecoration( 165 | gradient: RadialGradient(colors: [ 166 | Colors.lightBlueAccent.withOpacity(0.9), 167 | Colors.grey[850].withOpacity(0.9) 168 | ], radius: 0.3), 169 | ), 170 | ), 171 | Container( 172 | constraints: BoxConstraints.expand(), 173 | child: Center( 174 | child: Column( 175 | mainAxisAlignment: MainAxisAlignment.center, 176 | crossAxisAlignment: CrossAxisAlignment.center, 177 | children: [ 178 | Icon( 179 | menu.icon, 180 | color: Colors.white, 181 | ), 182 | SizedBox( 183 | height: 4.0, 184 | ), 185 | Text( 186 | menu.title, 187 | style: TextStyle(color: Colors.white), 188 | ) 189 | ], 190 | ), 191 | ), 192 | ) 193 | ], 194 | ), 195 | ); 196 | 197 | Widget _gridView(BuildContext context, List list) => SliverGrid( 198 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 199 | mainAxisSpacing: 4.0, 200 | crossAxisSpacing: 4.0, 201 | childAspectRatio: 1.0, 202 | crossAxisCount: 2), 203 | delegate: SliverChildBuilderDelegate((context, index) { 204 | var menu = list[index]; 205 | return _gridItem(context, menu); 206 | }, childCount: list.length), 207 | ); 208 | 209 | Widget _streamBuild(context) { 210 | var controller = MenuController(); 211 | return StreamBuilder( 212 | builder: (context, shot) { 213 | return shot.hasData 214 | ? CustomScrollView( 215 | slivers: [_topBar(), _gridView(context, shot.data)], 216 | ) 217 | : Center( 218 | child: CircularProgressIndicator(), 219 | ); 220 | }, 221 | stream: controller.menuItems, 222 | ); 223 | } 224 | 225 | Widget _showAndroid(context) { 226 | return Theme( 227 | data: Theme.of(context).copyWith(canvasColor: Colors.transparent), 228 | child: Scaffold( 229 | key: _scaffoldState, 230 | body: _streamBuild(context), 231 | ), 232 | ); 233 | } 234 | 235 | @override 236 | Widget build(BuildContext context) { 237 | return _showAndroid(context); 238 | } 239 | } 240 | -------------------------------------------------------------------------------- /lib/page/login/LoginOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class LoginOnePage extends StatefulWidget { 9 | @override 10 | _LoginOneState createState() => _LoginOneState(); 11 | } 12 | 13 | class _LoginOneState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/login/LoginTwoPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class LoginTwoPage extends StatefulWidget { 9 | @override 10 | _LoginTwoState createState() => _LoginTwoState(); 11 | } 12 | 13 | class _LoginTwoState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/noitem/NoResultPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class NoResultPage extends StatefulWidget { 9 | @override 10 | _NoResultState createState() => _NoResultState(); 11 | } 12 | 13 | class _NoResultState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/pages.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | export "dashboard/DashOnePage.dart"; 7 | export "dashboard/DashTwoPage.dart"; 8 | export 'login/LoginOnePage.dart'; 9 | export 'login/LoginTwoPage.dart'; 10 | export 'noitem/NoResultPage.dart'; 11 | export 'pay/PayOnePage.dart'; 12 | export 'pay/PayTwoPage.dart'; 13 | export 'profile/ProfileOnePage.dart'; 14 | export 'profile/ProfileTwoPage.dart'; 15 | export 'setting/SettingOnePage.dart'; 16 | export 'shopping/ShopOnePage.dart'; 17 | export 'shopping/ShopTwoPage.dart'; 18 | export 'shopping/ShopThreePage.dart'; 19 | export 'timeline/TimeOnePage.dart'; 20 | export 'timeline/TimeTwoPage.dart'; 21 | export 'home_page.dart'; 22 | export 'EmptyPage.dart'; 23 | -------------------------------------------------------------------------------- /lib/page/pay/PayOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class PayOnePage extends StatefulWidget { 9 | @override 10 | _PayOneState createState() => _PayOneState(); 11 | } 12 | 13 | class _PayOneState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/pay/PayTwoPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class PayTwoPage extends StatefulWidget { 9 | @override 10 | _PayTwoState createState() => _PayTwoState(); 11 | } 12 | 13 | class _PayTwoState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/profile/ProfileOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | import 'package:flutter_ui_app/view/base_page.dart'; 8 | import 'package:flutter_ui_app/const/string_const.dart'; 9 | import 'package:flutter_ui_app/const/images_const.dart'; 10 | import 'package:flutter_ui_app/const/size_const.dart'; 11 | import 'package:flutter_ui_app/const/color_const.dart'; 12 | 13 | class ProfileOnePage extends StatefulWidget { 14 | @override 15 | _ProfileOneState createState() => _ProfileOneState(); 16 | } 17 | 18 | const _NAME_ = "NieBin"; 19 | const _PROFESSION_ = "Flutter Developer"; 20 | const _SOCIAL_DATA = [ 21 | ["Posts", "999+"], 22 | ["Followers", "1999999+"], 23 | ["Comments", "888+"], 24 | ["Following", "666+"], 25 | ]; 26 | const _DESC = 27 | "Google Developer Expert for Flutter in the future. Passionate #Flutter, #Android Developer. #Entrepreneur, #Kotlin"; 28 | const _ACCOUNT_ADDRESS = [ 29 | ["Github", "github.com/nb312"], 30 | ["Location", "ShangHai/China"], 31 | ["Phone", "+8612345678901"], 32 | ["Email", "niebin312@gmail.com"], 33 | ["Facebook", "fb.com/Nie Bin"], 34 | ["Website", "github.com/nb312"], 35 | ]; 36 | 37 | class _ProfileOneState extends State { 38 | double deviceH; 39 | 40 | Widget _titleWhite(text, {size = TEXT_NORMAL_SIZE, isB = false}) => Text( 41 | text, 42 | style: TextStyle( 43 | color: Colors.grey[900], 44 | fontSize: size, 45 | fontWeight: isB ? FontWeight.w700 : null), 46 | ); 47 | 48 | Widget _header() => Container( 49 | padding: EdgeInsets.symmetric(vertical: 10.0), 50 | constraints: BoxConstraints.expand(height: deviceH * 0.25), 51 | child: Column( 52 | mainAxisAlignment: MainAxisAlignment.spaceAround, 53 | crossAxisAlignment: CrossAxisAlignment.center, 54 | children: [ 55 | _titleWhite(_NAME_, isB: true), 56 | _titleWhite(_PROFESSION_, size: TEXT_SMALL_SIZE), 57 | Row( 58 | mainAxisAlignment: MainAxisAlignment.center, 59 | children: [ 60 | IconButton( 61 | onPressed: () {}, 62 | icon: Icon( 63 | Icons.message, 64 | color: MAIN_COLOR, 65 | ), 66 | ), 67 | SizedBox(width: 4.0), 68 | CircleAvatar( 69 | radius: 40.0, 70 | backgroundImage: AssetImage(ImagePath.nbImage), 71 | ), 72 | SizedBox(width: 4.0), 73 | IconButton( 74 | onPressed: () {}, 75 | icon: Icon( 76 | Icons.phone, 77 | color: MAIN_COLOR, 78 | ), 79 | ) 80 | ], 81 | ) 82 | ], 83 | ), 84 | ); 85 | 86 | Widget _columnItem(first, second) { 87 | return Column( 88 | crossAxisAlignment: CrossAxisAlignment.center, 89 | mainAxisAlignment: MainAxisAlignment.center, 90 | children: [ 91 | _titleWhite( 92 | first, 93 | isB: true, 94 | ), 95 | _titleWhite(second), 96 | ], 97 | ); 98 | } 99 | 100 | Widget _accountItem(index) { 101 | return Expanded( 102 | flex: 1, 103 | child: Row( 104 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 105 | crossAxisAlignment: CrossAxisAlignment.center, 106 | children: [ 107 | _columnItem(_ACCOUNT_ADDRESS[index][0], _ACCOUNT_ADDRESS[index][1]), 108 | _columnItem( 109 | _ACCOUNT_ADDRESS[index + 1][0], _ACCOUNT_ADDRESS[index + 1][1]), 110 | ], 111 | ), 112 | ); 113 | } 114 | 115 | Widget _accountText() { 116 | return Container( 117 | constraints: BoxConstraints.expand(height: deviceH * 0.3), 118 | alignment: AlignmentDirectional.center, 119 | child: Column( 120 | mainAxisSize: MainAxisSize.max, 121 | mainAxisAlignment: MainAxisAlignment.center, 122 | crossAxisAlignment: CrossAxisAlignment.center, 123 | children: [ 124 | _accountItem(0), 125 | _accountItem(2), 126 | _accountItem(4), 127 | ], 128 | )); 129 | } 130 | 131 | Widget _describeText() => Container( 132 | alignment: AlignmentDirectional.center, 133 | padding: EdgeInsets.symmetric(horizontal: 20.0), 134 | constraints: BoxConstraints.expand(height: deviceH * 0.12), 135 | child: _titleWhite(_DESC), 136 | ); 137 | 138 | Widget _socialDatum() { 139 | var list = List(); 140 | for (var single in _SOCIAL_DATA) { 141 | list.add(_columnItem(single[1], single[0])); 142 | } 143 | return Container( 144 | padding: EdgeInsets.symmetric(vertical: 10.0), 145 | constraints: BoxConstraints.expand(height: deviceH * 0.15), 146 | child: Row( 147 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 148 | children: list, 149 | ), 150 | ); 151 | } 152 | 153 | Widget _diver() { 154 | return Divider( 155 | color: MAIN_COLOR, 156 | ); 157 | } 158 | 159 | @override 160 | Widget build(BuildContext context) { 161 | deviceH = MediaQuery.of(context).size.height; 162 | return BasePage( 163 | title: PageConst.profileOneRoute.substring(1), 164 | bottomIcon: Icons.group_add, 165 | body: Container( 166 | decoration: BoxDecoration( 167 | gradient: LinearGradient( 168 | colors: [Colors.cyan, MAIN_COLOR.withOpacity(0.8)], 169 | begin: Alignment.bottomCenter, 170 | end: Alignment.topCenter), 171 | ), 172 | child: SingleChildScrollView( 173 | child: Column( 174 | children: [ 175 | _header(), 176 | _diver(), 177 | _socialDatum(), 178 | _diver(), 179 | _describeText(), 180 | _diver(), 181 | _accountText() 182 | ], 183 | ), 184 | ), 185 | ), 186 | ); 187 | } 188 | } 189 | -------------------------------------------------------------------------------- /lib/page/profile/ProfileTwoPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | import "package:flutter_ui_app/view/common_drawer.dart"; 8 | import "package:flutter_ui_app/view/common_drawer.dart"; 9 | import "package:flutter_ui_app/view/base_page.dart"; 10 | import 'package:flutter_ui_app/const/string_const.dart'; 11 | import 'package:flutter_ui_app/const/color_const.dart'; 12 | import 'package:flutter_ui_app/const/images_const.dart'; 13 | import 'package:flutter_ui_app/const/size_const.dart'; 14 | 15 | const _SOCIAL_DATA = [ 16 | { 17 | "title": "Posts", 18 | "value": "999+", 19 | }, 20 | { 21 | "title": "Followers", 22 | "value": "666+", 23 | }, 24 | { 25 | "title": "Comments", 26 | "value": "444+", 27 | }, 28 | { 29 | "title": "Following", 30 | "value": "22+", 31 | } 32 | ]; 33 | 34 | class ProfileTwoPage extends StatefulWidget { 35 | @override 36 | _ProfileTwoState createState() => _ProfileTwoState(); 37 | } 38 | 39 | class _ProfileTwoState extends State { 40 | Widget _header() => CircleAvatar( 41 | backgroundImage: AssetImage(ImagePath.nbImage), 42 | radius: 56.0, 43 | ); 44 | 45 | Widget _whiteText(content, 46 | {size = TEXT_NORMAL_SIZE, isBold = false, color = Colors.white}) { 47 | return Text( 48 | content, 49 | style: TextStyle( 50 | color: color, 51 | fontSize: size, 52 | fontWeight: isBold ? FontWeight.w700 : null), 53 | ); 54 | } 55 | 56 | Widget _upper() => Expanded( 57 | flex: 2, 58 | child: Container( 59 | constraints: BoxConstraints.expand(), 60 | padding: EdgeInsets.all(10.0), 61 | color: MAIN_COLOR, 62 | child: Column( 63 | mainAxisAlignment: MainAxisAlignment.spaceAround, 64 | children: [ 65 | _header(), 66 | _whiteText(StringConst.DEVELOPER, isBold: true), 67 | _whiteText(StringConst.PROFESSION, size: TEXT_SMALL_SIZE) 68 | ], 69 | ), 70 | ), 71 | ); 72 | 73 | Widget _socialItem(item) { 74 | return Column( 75 | mainAxisAlignment: MainAxisAlignment.center, 76 | children: [ 77 | _whiteText(item["value"], color: MAIN_COLOR, isBold: true), 78 | _whiteText(item["title"], color: MAIN_COLOR), 79 | ], 80 | ); 81 | } 82 | 83 | Widget _socialRow() { 84 | var list = List(); 85 | for (var item in _SOCIAL_DATA) { 86 | list.add(_socialItem(item)); 87 | } 88 | return Expanded( 89 | flex: 1, 90 | child: Container( 91 | constraints: BoxConstraints.expand(), 92 | child: Row( 93 | mainAxisAlignment: MainAxisAlignment.spaceAround, 94 | children: list, 95 | ), 96 | ), 97 | ); 98 | } 99 | 100 | Widget _photo() { 101 | return Expanded( 102 | flex: 1, 103 | child: Container( 104 | padding: EdgeInsets.symmetric(horizontal: 10.0), 105 | child: Column( 106 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 107 | crossAxisAlignment: CrossAxisAlignment.start, 108 | children: [ 109 | _whiteText("Photos", isBold: true, color: MAIN_COLOR), 110 | Card( 111 | child: Container( 112 | constraints: BoxConstraints.expand(height: 60.0), 113 | foregroundDecoration: BoxDecoration( 114 | gradient: LinearGradient(colors: [ 115 | Colors.cyan.withOpacity(0.3), 116 | MAIN_COLOR.withOpacity(0.5) 117 | ], begin: Alignment.bottomCenter, end: Alignment.topCenter)), 118 | child: ListView.builder( 119 | itemBuilder: (context, index) { 120 | return Container( 121 | padding: 122 | EdgeInsets.symmetric(horizontal: 1.0, vertical: 5.0), 123 | child: Image.asset( 124 | ImagePath.paymentImage, 125 | fit: BoxFit.cover, 126 | ), 127 | ); 128 | }, 129 | scrollDirection: Axis.horizontal, 130 | itemCount: 10, 131 | ), 132 | ), 133 | elevation: 4.0, 134 | shape: Border.all(color: Colors.grey[700], width: 2.0), 135 | ) 136 | ], 137 | ), 138 | ), 139 | ); 140 | } 141 | 142 | Widget _postPeople() { 143 | return Container( 144 | constraints: BoxConstraints.expand(height: 50.0), 145 | child: Row( 146 | mainAxisAlignment: MainAxisAlignment.start, 147 | crossAxisAlignment: CrossAxisAlignment.center, 148 | children: [ 149 | CircleAvatar( 150 | backgroundImage: AssetImage(ImagePath.nbImage), 151 | ), 152 | Padding( 153 | padding: EdgeInsets.symmetric(horizontal: 10.0), 154 | child: Column( 155 | crossAxisAlignment: CrossAxisAlignment.start, 156 | mainAxisAlignment: MainAxisAlignment.center, 157 | children: [ 158 | _whiteText("Nie Bin posted a photo", color: MAIN_COLOR), 159 | SizedBox(height: 4.0), 160 | _whiteText("a minute ago", color: MAIN_COLOR), 161 | ], 162 | ), 163 | ), 164 | ], 165 | ), 166 | ); 167 | } 168 | 169 | Widget _post() { 170 | return Expanded( 171 | flex: 3, 172 | child: Padding( 173 | padding: EdgeInsets.symmetric(horizontal: 10.0, vertical: 4.0), 174 | child: Column( 175 | crossAxisAlignment: CrossAxisAlignment.start, 176 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 177 | children: [ 178 | _whiteText("Post", isBold: true, color: MAIN_COLOR), 179 | SizedBox(height: 10.0), 180 | _postPeople(), 181 | SizedBox(height: 10.0), 182 | Expanded( 183 | child: Container( 184 | constraints: BoxConstraints.expand(), 185 | foregroundDecoration: BoxDecoration( 186 | gradient: LinearGradient(colors: [ 187 | Colors.cyan.withOpacity(0.3), 188 | MAIN_COLOR.withOpacity(0.5) 189 | ], begin: Alignment.bottomCenter, end: Alignment.topCenter)), 190 | child: Image.asset( 191 | ImagePath.blankImage, 192 | fit: BoxFit.cover, 193 | ), 194 | ), 195 | ) 196 | ], 197 | ), 198 | ), 199 | ); 200 | } 201 | 202 | Widget _body() { 203 | return Container( 204 | constraints: BoxConstraints.expand(), 205 | decoration: BoxDecoration( 206 | gradient: LinearGradient(colors: [ 207 | Colors.cyan, 208 | MAIN_COLOR 209 | ], begin: Alignment.bottomCenter, end: Alignment.topCenter)), 210 | child: Column( 211 | children: [ 212 | _upper(), 213 | _socialRow(), 214 | _photo(), 215 | _post(), 216 | ], 217 | ), 218 | ); 219 | } 220 | 221 | @override 222 | Widget build(BuildContext context) { 223 | return BasePage( 224 | title: PageConst.profileOneRoute.substring(1), 225 | hasDrawer: false, 226 | body: _body(), 227 | ); 228 | } 229 | } 230 | -------------------------------------------------------------------------------- /lib/page/setting/SettingOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class SettingOnePage extends StatefulWidget { 9 | @override 10 | _SettingOneState createState() => _SettingOneState(); 11 | } 12 | 13 | class _SettingOneState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/shopping/ShopOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class ShopOnePage extends StatefulWidget { 9 | @override 10 | _ShopOneState createState() => _ShopOneState(); 11 | } 12 | 13 | class _ShopOneState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/shopping/ShopThreePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class ShopTwoPage extends StatefulWidget { 9 | @override 10 | _ShopTwoState createState() => _ShopTwoState(); 11 | } 12 | 13 | class _ShopTwoState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/shopping/ShopTwoPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class ShopThreePage extends StatefulWidget { 9 | @override 10 | _ShopThreeState createState() => _ShopThreeState(); 11 | } 12 | 13 | class _ShopThreeState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/timeline/TimeOnePage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class TimeOnePage extends StatefulWidget { 9 | @override 10 | _TimeOneState createState() => _TimeOneState(); 11 | } 12 | 13 | class _TimeOneState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/page/timeline/TimeTwoPage.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | 8 | class TimeTwoPage extends StatefulWidget { 9 | @override 10 | _TimeTwoState createState() => _TimeTwoState(); 11 | } 12 | 13 | class _TimeTwoState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Text("empty"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/stream/menu_stream.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-15 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter_ui_app/data/Menu.dart"; 7 | import 'dart:async'; 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_ui_app/const/images_const.dart'; 10 | 11 | ///ToDo need international. 12 | const _MENU_STRINGS = [ 13 | { 14 | 'title': "Profile", 15 | 'items': ["View Profile", "Profile 2", "Profile 3", "Profile 4"] 16 | }, 17 | { 18 | 'title': "Shopping", 19 | 'items': [ 20 | "Shopping List", 21 | "Shopping Details", 22 | "Product Details", 23 | "Shopping 4" 24 | ] 25 | }, 26 | { 27 | 'title': "Login", 28 | 'items': ["Login With OTP", "Login 2", "Sign Up", "Login 4"], 29 | }, 30 | { 31 | 'title': "Timeline", 32 | 'items': ["Feed", "Tweets", "Timeline 3", "Timeline 4"], 33 | }, 34 | { 35 | 'title': "Dashboard", 36 | 'items': ["Dashboard 1", "Dashboard 2", "Dashboard 3", "Dashboard 4"], 37 | }, 38 | { 39 | 'title': "Settings", 40 | 'items': ["Device Settings", "Settings 2", "Settings 3", "Settings 4"], 41 | }, 42 | { 43 | 'title': "No Item", 44 | 'items': ["No Search Result", "No Internet", "No Item 3", "No Item 4"], 45 | }, 46 | { 47 | 'title': "Payment", 48 | 'items': ["Credit Card", "Payment Success", "Payment 3", "Payment 4"], 49 | }, 50 | ]; 51 | const _MENU_COLORS = [ 52 | 0xff050505, 53 | 0xffc8c4bd, 54 | 0xffc7d8f4, 55 | 0xff7f5741, 56 | 0xff261d33, 57 | 0xff2a8ccf, 58 | 0xffe19b6b, 59 | 0xffe19b6b, 60 | 0xffddcec2 61 | ]; 62 | const _MENU_ICONS = [ 63 | Icons.person, 64 | Icons.shopping_cart, 65 | Icons.send, 66 | Icons.timeline, 67 | Icons.dashboard, 68 | Icons.settings, 69 | Icons.not_interested, 70 | Icons.payment, 71 | ]; 72 | const _IMAGE_PATHS = [ 73 | ImagePath.shoppingImage, 74 | ImagePath.profileImage, 75 | ImagePath.loginImage, 76 | ImagePath.timelineImage, 77 | ImagePath.dashboardImage, 78 | ImagePath.settingsImage, 79 | ImagePath.blankImage, 80 | ImagePath.paymentImage, 81 | ]; 82 | 83 | class MenuController { 84 | final controller = StreamController>(); 85 | 86 | Stream> get menuItems => controller.stream; 87 | 88 | MenuController({List menus}) { 89 | controller.add(menus ?? _defaultMenus()); 90 | } 91 | 92 | static String _title(index) { 93 | return _MENU_STRINGS[index % _MENU_STRINGS.length]['title']; 94 | } 95 | 96 | static List _items(index) { 97 | return _MENU_STRINGS[index % _MENU_STRINGS.length]['items']; 98 | } 99 | 100 | List _defaultMenus() { 101 | var list = List(); 102 | for (int i = 0; i < _MENU_STRINGS.length; i++) { 103 | list.add(Menu( 104 | title: _title(i), 105 | icon: _MENU_ICONS[i], 106 | menuColor: Color(_MENU_COLORS[i]), 107 | image: _IMAGE_PATHS[i], 108 | items: _items(i))); 109 | } 110 | return list; 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /lib/view/AboutMeTitle.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-17 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | import 'package:flutter_ui_app/const/string_const.dart'; 8 | 9 | class AboutMeTitle extends AboutListTile { 10 | AboutMeTitle() 11 | : super( 12 | icon: FlutterLogo( 13 | colors: Colors.cyan, 14 | textColor: Colors.grey[900], 15 | ), 16 | applicationName: StringConst.APP_NAME, 17 | applicationVersion: "1.0.1", 18 | applicationLegalese: "Apache License 2.0", 19 | aboutBoxChildren: [ 20 | Padding( 21 | padding: EdgeInsets.symmetric(horizontal: 24.0, vertical: 4.0), 22 | child: Text( 23 | StringConst.CREATE_BY, 24 | style: TextStyle(color: Colors.blue), 25 | ), 26 | ) 27 | ]); 28 | } 29 | -------------------------------------------------------------------------------- /lib/view/base_page.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-17 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | import 'package:flutter_ui_app/view/common_drawer.dart'; 8 | 9 | class BasePage extends StatelessWidget { 10 | final String title; 11 | final Widget body; 12 | final IconData bottomIcon; 13 | final bool hasDrawer; 14 | 15 | BasePage({this.title, this.body, this.bottomIcon, this.hasDrawer = true}); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Scaffold( 20 | appBar: AppBar( 21 | title: Text(title), 22 | actions: [ 23 | Padding( 24 | padding: EdgeInsets.only(right: 10.0), 25 | child: IconButton( 26 | onPressed: () {}, 27 | icon: Icon(Icons.more_vert), 28 | ), 29 | ) 30 | ], 31 | elevation: 0.0, 32 | ), 33 | body: body, 34 | floatingActionButton: bottomIcon == null 35 | ? null 36 | : FloatingActionButton( 37 | onPressed: () {}, 38 | child: Icon(bottomIcon), 39 | ), 40 | drawer: this.hasDrawer 41 | ? CommonDrawer( 42 | context: context, 43 | title: title, 44 | ) 45 | : null, 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/view/common_drawer.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Created by NieBin on 18-12-17 3 | /// Github: https://github.com/nb312 4 | /// Email: niebin312@gmail.com 5 | /// 6 | import "package:flutter/material.dart"; 7 | import 'package:flutter_ui_app/const/string_const.dart'; 8 | import 'package:flutter_ui_app/const/images_const.dart'; 9 | import 'package:flutter_ui_app/const/size_const.dart'; 10 | import 'AboutMeTitle.dart'; 11 | 12 | const ITEMS = [ 13 | { 14 | "title": PageConst.profileOneRoute, 15 | "color": Colors.blue, 16 | "icon": Icons.person 17 | }, 18 | { 19 | "title": PageConst.shoppingOneRoute, 20 | "color": Colors.green, 21 | "icon": Icons.shopping_cart 22 | }, 23 | { 24 | "title": PageConst.dashboardOneRoute, 25 | "color": Colors.red, 26 | "icon": Icons.dashboard 27 | }, 28 | { 29 | "title": PageConst.timelineOneRoute, 30 | "color": Colors.cyan, 31 | "icon": Icons.timeline 32 | }, 33 | { 34 | "title": PageConst.settingsOneRoute, 35 | "color": Colors.brown, 36 | "icon": Icons.settings 37 | }, 38 | ]; 39 | 40 | @immutable 41 | class CommonDrawer extends StatelessWidget { 42 | CommonDrawer({this.context, this.title}); 43 | 44 | final String title; 45 | final BuildContext context; 46 | 47 | Widget _item(context, item) => ListTile( 48 | title: Text( 49 | item["title"].substring(1), 50 | style: TextStyle( 51 | color: Colors.grey[900], 52 | fontWeight: FontWeight.w700, 53 | fontSize: TEXT_NORMAL_SIZE), 54 | ), 55 | leading: Icon( 56 | item["icon"], 57 | color: item["color"], 58 | ), 59 | onTap: () { 60 | var isEqual = item["title"].substring(1) == title; 61 | if (isEqual || this.context == null) return; 62 | var pageName = item["title"]; 63 | Navigator.pop(context); 64 | Navigator.pop(this.context); 65 | Navigator.pushNamed(context, pageName); 66 | }, 67 | ); 68 | 69 | Widget _header() => UserAccountsDrawerHeader( 70 | currentAccountPicture: CircleAvatar( 71 | backgroundImage: AssetImage(ImagePath.nbImage), 72 | ), 73 | accountName: Text(StringConst.DEVELOPER), 74 | accountEmail: Text(StringConst.DEV_EMAIL), 75 | ); 76 | 77 | @override 78 | Widget build(BuildContext context) { 79 | var list = List(); 80 | list.add(_header()); 81 | for (var item in ITEMS) { 82 | list.add(_item(context, item)); 83 | } 84 | list.add(AboutMeTitle()); 85 | return Drawer( 86 | child: ListView( 87 | padding: EdgeInsets.zero, 88 | children: list, 89 | ), 90 | ); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /licence.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_ui_app 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # Read more about versioning at semver.org. 10 | version: 1.0.0+1 11 | 12 | environment: 13 | sdk: ">=2.0.0-dev.68.0 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | # The following adds the Cupertino Icons font to your application. 20 | # Use with the CupertinoIcons class for iOS style icons. 21 | cupertino_icons: ^0.1.2 22 | 23 | dev_dependencies: 24 | flutter_test: 25 | sdk: flutter 26 | 27 | 28 | # For information on the generic Dart part of this file, see the 29 | # following page: https://www.dartlang.org/tools/pub/pubspec 30 | 31 | # The following section is specific to Flutter. 32 | flutter: 33 | 34 | # The following line ensures that the Material Icons font is 35 | # included with your application, so that you can use the icons in 36 | # the material Icons class. 37 | uses-material-design: true 38 | assets: 39 | - assets/images/ 40 | # To add assets to your application, add an assets section, like this: 41 | # assets: 42 | # - images/a_dot_burr.jpeg 43 | # - images/a_dot_ham.jpeg 44 | 45 | # An image asset can refer to one or more resolution-specific "variants", see 46 | # https://flutter.io/assets-and-images/#resolution-aware. 47 | 48 | # For details regarding adding assets from package dependencies, see 49 | # https://flutter.io/assets-and-images/#from-packages 50 | 51 | # To add custom fonts to your application, add a fonts section here, 52 | # in this "flutter" section. Each entry in this list should have a 53 | # "family" key with the font family name, and a "fonts" key with a 54 | # list giving the asset and other descriptors for the font. For 55 | # example: 56 | # fonts: 57 | # - family: Schyler 58 | # fonts: 59 | # - asset: fonts/Schyler-Regular.ttf 60 | # - asset: fonts/Schyler-Italic.ttf 61 | # style: italic 62 | # - family: Trajan Pro 63 | # fonts: 64 | # - asset: fonts/TrajanPro.ttf 65 | # - asset: fonts/TrajanPro_Bold.ttf 66 | # weight: 700 67 | # 68 | # For details regarding fonts from package dependencies, 69 | # see https://flutter.io/custom-fonts/#from-packages 70 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_ui_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------