├── .gitignore ├── .metadata ├── README.md ├── android ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── gym │ │ │ └── app │ │ │ └── gymapp │ │ │ └── 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 │ │ ├── colors.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── fonts │ └── app_icons.ttf └── images │ ├── iiro_profile.png │ ├── workout1.jpg │ ├── workout2.jpg │ └── workout3.jpg ├── gym_dribbble.gif ├── 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 ├── app │ ├── app.dart │ ├── icons.dart │ └── theme.dart ├── main.dart ├── mock │ └── mock.dart ├── model │ └── workout.dart ├── pages │ ├── blank.dart │ ├── home.dart │ ├── workout_details.dart │ └── workout_list.dart └── widgets │ ├── horz_list.dart │ └── routes.dart └── pubspec.yaml /.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: 6a3ff018b199a7febbe2b5adbb564081d8f49e2f 8 | channel: dev 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gym App - FlutterLDN 22nd October 2018 Meetup 2 | 3 | ### Built with `Flutter 0.10.1 • channel dev` 4 | 5 | 6 | For help getting started with Flutter, view our online 7 | [documentation](https://flutter.io/). 8 | -------------------------------------------------------------------------------- /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.gym.app.gymapp" 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/gym/app/gymapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.gym.app.gymapp; 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 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #151515 5 | 6 | -------------------------------------------------------------------------------- /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.1.2' 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.4-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/fonts/app_icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/assets/fonts/app_icons.ttf -------------------------------------------------------------------------------- /assets/images/iiro_profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/assets/images/iiro_profile.png -------------------------------------------------------------------------------- /assets/images/workout1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/assets/images/workout1.jpg -------------------------------------------------------------------------------- /assets/images/workout2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/assets/images/workout2.jpg -------------------------------------------------------------------------------- /assets/images/workout3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/assets/images/workout3.jpg -------------------------------------------------------------------------------- /gym_dribbble.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/gym_dribbble.gif -------------------------------------------------------------------------------- /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 | 97C147031CF9000F007C117D /* Debug */ = { 265 | isa = XCBuildConfiguration; 266 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.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; 294 | ENABLE_STRICT_OBJC_MSGSEND = YES; 295 | ENABLE_TESTABILITY = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_DYNAMIC_NO_PIC = NO; 298 | GCC_NO_COMMON_BLOCKS = YES; 299 | GCC_OPTIMIZATION_LEVEL = 0; 300 | GCC_PREPROCESSOR_DEFINITIONS = ( 301 | "DEBUG=1", 302 | "$(inherited)", 303 | ); 304 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 305 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 306 | GCC_WARN_UNDECLARED_SELECTOR = YES; 307 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 308 | GCC_WARN_UNUSED_FUNCTION = YES; 309 | GCC_WARN_UNUSED_VARIABLE = YES; 310 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 311 | MTL_ENABLE_DEBUG_INFO = YES; 312 | ONLY_ACTIVE_ARCH = YES; 313 | SDKROOT = iphoneos; 314 | TARGETED_DEVICE_FAMILY = "1,2"; 315 | }; 316 | name = Debug; 317 | }; 318 | 97C147041CF9000F007C117D /* Release */ = { 319 | isa = XCBuildConfiguration; 320 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 321 | buildSettings = { 322 | ALWAYS_SEARCH_USER_PATHS = NO; 323 | CLANG_ANALYZER_NONNULL = YES; 324 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 325 | CLANG_CXX_LIBRARY = "libc++"; 326 | CLANG_ENABLE_MODULES = YES; 327 | CLANG_ENABLE_OBJC_ARC = YES; 328 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 329 | CLANG_WARN_BOOL_CONVERSION = YES; 330 | CLANG_WARN_COMMA = YES; 331 | CLANG_WARN_CONSTANT_CONVERSION = YES; 332 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 333 | CLANG_WARN_EMPTY_BODY = YES; 334 | CLANG_WARN_ENUM_CONVERSION = YES; 335 | CLANG_WARN_INFINITE_RECURSION = YES; 336 | CLANG_WARN_INT_CONVERSION = YES; 337 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 338 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 339 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 340 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 341 | CLANG_WARN_STRICT_PROTOTYPES = YES; 342 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 343 | CLANG_WARN_UNREACHABLE_CODE = YES; 344 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 345 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 346 | COPY_PHASE_STRIP = NO; 347 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 348 | ENABLE_NS_ASSERTIONS = NO; 349 | ENABLE_STRICT_OBJC_MSGSEND = YES; 350 | GCC_C_LANGUAGE_STANDARD = gnu99; 351 | GCC_NO_COMMON_BLOCKS = YES; 352 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 353 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 354 | GCC_WARN_UNDECLARED_SELECTOR = YES; 355 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 356 | GCC_WARN_UNUSED_FUNCTION = YES; 357 | GCC_WARN_UNUSED_VARIABLE = YES; 358 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 359 | MTL_ENABLE_DEBUG_INFO = NO; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | VALIDATE_PRODUCT = YES; 363 | }; 364 | name = Release; 365 | }; 366 | 97C147061CF9000F007C117D /* Debug */ = { 367 | isa = XCBuildConfiguration; 368 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 369 | buildSettings = { 370 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 371 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 372 | ENABLE_BITCODE = NO; 373 | FRAMEWORK_SEARCH_PATHS = ( 374 | "$(inherited)", 375 | "$(PROJECT_DIR)/Flutter", 376 | ); 377 | INFOPLIST_FILE = Runner/Info.plist; 378 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 379 | LIBRARY_SEARCH_PATHS = ( 380 | "$(inherited)", 381 | "$(PROJECT_DIR)/Flutter", 382 | ); 383 | PRODUCT_BUNDLE_IDENTIFIER = com.gym.app.gymapp; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | VERSIONING_SYSTEM = "apple-generic"; 386 | }; 387 | name = Debug; 388 | }; 389 | 97C147071CF9000F007C117D /* Release */ = { 390 | isa = XCBuildConfiguration; 391 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 392 | buildSettings = { 393 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 394 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 395 | ENABLE_BITCODE = NO; 396 | FRAMEWORK_SEARCH_PATHS = ( 397 | "$(inherited)", 398 | "$(PROJECT_DIR)/Flutter", 399 | ); 400 | INFOPLIST_FILE = Runner/Info.plist; 401 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 402 | LIBRARY_SEARCH_PATHS = ( 403 | "$(inherited)", 404 | "$(PROJECT_DIR)/Flutter", 405 | ); 406 | PRODUCT_BUNDLE_IDENTIFIER = com.gym.app.gymapp; 407 | PRODUCT_NAME = "$(TARGET_NAME)"; 408 | VERSIONING_SYSTEM = "apple-generic"; 409 | }; 410 | name = Release; 411 | }; 412 | /* End XCBuildConfiguration section */ 413 | 414 | /* Begin XCConfigurationList section */ 415 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 416 | isa = XCConfigurationList; 417 | buildConfigurations = ( 418 | 97C147031CF9000F007C117D /* Debug */, 419 | 97C147041CF9000F007C117D /* Release */, 420 | ); 421 | defaultConfigurationIsVisible = 0; 422 | defaultConfigurationName = Release; 423 | }; 424 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 425 | isa = XCConfigurationList; 426 | buildConfigurations = ( 427 | 97C147061CF9000F007C117D /* Debug */, 428 | 97C147071CF9000F007C117D /* Release */, 429 | ); 430 | defaultConfigurationIsVisible = 0; 431 | defaultConfigurationName = Release; 432 | }; 433 | /* End XCConfigurationList section */ 434 | }; 435 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 436 | } 437 | -------------------------------------------------------------------------------- /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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutterldn_gym_app/f580845590b6c85f35cda866b8cd5f305abec845/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 | gymapp 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/app/app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gymapp/pages/home.dart'; 3 | import 'package:gymapp/app/theme.dart'; 4 | 5 | class GymApp extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return MaterialApp( 9 | debugShowCheckedModeBanner: false, 10 | title: 'Gym App', 11 | theme: ThemeData( 12 | brightness: Brightness.dark, 13 | backgroundColor: AppTheme.backgroundColor, 14 | scaffoldBackgroundColor: AppTheme.backgroundColor, 15 | bottomAppBarColor: AppTheme.primaryColor, 16 | primaryColor: AppTheme.primaryColor, 17 | accentColor: AppTheme.accentColor, 18 | cardColor: AppTheme.primaryColor, 19 | ), 20 | home: HomeScreen(), 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/app/icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class AppIcons { 4 | AppIcons._(); 5 | 6 | static const _kIconFont = 'AppIcons'; 7 | 8 | static const IconData coaches = const IconData(0xea4c, fontFamily: _kIconFont); 9 | static const IconData challenges = const IconData(0xedaa, fontFamily: _kIconFont); 10 | static const IconData workouts = const IconData(0xecee, fontFamily: _kIconFont); 11 | static const IconData profile = const IconData(0xeace, fontFamily: _kIconFont); 12 | static const IconData health = const IconData(0xec31, fontFamily: _kIconFont); 13 | 14 | static const IconData clock = const IconData(0xeda3, fontFamily: _kIconFont); 15 | static const IconData fire = const IconData(0xe95a, fontFamily: _kIconFont); 16 | static const IconData heart = const IconData(0xec2d, fontFamily: _kIconFont); 17 | 18 | static const IconData chevron_left = const IconData(0xee05, fontFamily: _kIconFont); 19 | } 20 | -------------------------------------------------------------------------------- /lib/app/theme.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | 4 | class AppTheme { 5 | AppTheme._(); 6 | 7 | static const backgroundColor = const Color(0xFF151515); 8 | static const primaryColor = const Color(0xFF212121); 9 | static const accentColor = const Color(0xFFFEB085); 10 | 11 | static const iconColor = const Color(0xFF636363); 12 | static const greyColor = const Color(0xFF767676); 13 | } 14 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gymapp/app/app.dart'; 3 | 4 | void main() => runApp(GymApp()); 5 | -------------------------------------------------------------------------------- /lib/mock/mock.dart: -------------------------------------------------------------------------------- 1 | import 'package:gymapp/model/workout.dart'; 2 | 3 | const mockWorkouts = [ 4 | Workout( 5 | 1, 6 | 'Today', 7 | 'Evening with cardio session', 8 | 'assets/images/workout1.jpg', 9 | ), 10 | Workout( 11 | 2, 12 | '2 days ago', 13 | 'Full body training', 14 | 'assets/images/workout2.jpg', 15 | ), 16 | Workout( 17 | 3, 18 | '4 days ago', 19 | 'Morning training with coach Dennis', 20 | 'assets/images/workout3.jpg', 21 | ), 22 | ]; -------------------------------------------------------------------------------- /lib/model/workout.dart: -------------------------------------------------------------------------------- 1 | 2 | class Workout { 3 | final int id; 4 | final String when; 5 | final String title; 6 | final String assetImage; 7 | 8 | const Workout(this.id, this.when, this.title, this.assetImage); 9 | } -------------------------------------------------------------------------------- /lib/pages/blank.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class BlankPage extends StatelessWidget { 4 | 5 | static Route route() { 6 | return MaterialPageRoute( 7 | builder: (context) => BlankPage(), 8 | ); 9 | } 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Container(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/pages/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gymapp/app/icons.dart'; 3 | import 'package:gymapp/app/theme.dart'; 4 | import 'package:gymapp/pages/blank.dart'; 5 | import 'package:gymapp/pages/workout_list.dart'; 6 | 7 | class HomeScreen extends StatefulWidget { 8 | @override 9 | _HomeScreenState createState() => _HomeScreenState(); 10 | } 11 | 12 | class _HomeScreenState extends State { 13 | final GlobalKey _navigatorKey = GlobalKey(); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Scaffold( 18 | body: WillPopScope( 19 | onWillPop: () async => !await _navigatorKey.currentState.maybePop(), 20 | child: Navigator( 21 | key: _navigatorKey, 22 | onGenerateRoute: (RouteSettings settings) { 23 | return MaterialPageRoute( 24 | builder: (context) => BlankPage(), 25 | ); 26 | }, 27 | ), 28 | ), 29 | bottomNavigationBar: _NavBar( 30 | onItemSelected: _onNavItemSelected, 31 | items: [ 32 | _NavItem( 33 | icon: AppIcons.coaches, 34 | label: 'Coaches', 35 | ), 36 | _NavItem( 37 | icon: AppIcons.challenges, 38 | label: 'Challenges', 39 | ), 40 | _NavItem( 41 | icon: AppIcons.workouts, 42 | label: 'Workouts', 43 | ), 44 | _NavItem( 45 | icon: AppIcons.profile, 46 | label: 'Profile', 47 | ), 48 | _NavItem( 49 | icon: AppIcons.health, 50 | label: 'Health', 51 | ), 52 | ], 53 | ), 54 | ); 55 | } 56 | 57 | void _onNavItemSelected(int index) { 58 | Route route; 59 | if (index == 2) { 60 | route = WorkoutListPage.route(); 61 | } else { 62 | route = BlankPage.route(); 63 | } 64 | _navigatorKey.currentState.pushReplacement(route); 65 | } 66 | } 67 | 68 | class _NavBar extends StatefulWidget { 69 | const _NavBar({ 70 | Key key, 71 | @required this.items, 72 | this.onItemSelected, 73 | }) : super(key: key); 74 | 75 | final List<_NavItem> items; 76 | final ValueChanged onItemSelected; 77 | 78 | @override 79 | _NavBarState createState() => _NavBarState(); 80 | } 81 | 82 | class _NavBarState extends State<_NavBar> { 83 | int _selected = 0; 84 | 85 | @override 86 | Widget build(BuildContext context) { 87 | final theme = Theme.of(context); 88 | return BottomAppBar( 89 | child: DefaultTextStyle.merge( 90 | style: const TextStyle(color: AppTheme.iconColor), 91 | child: IconTheme( 92 | data: theme.primaryIconTheme.copyWith(color: AppTheme.iconColor), 93 | child: Padding( 94 | padding: EdgeInsets.symmetric(vertical: 8.0), 95 | child: Row( 96 | crossAxisAlignment: CrossAxisAlignment.center, 97 | children: List.generate( 98 | widget.items.length, 99 | (index) => _buildNavItem(context, index), 100 | )), 101 | ), 102 | ), 103 | ), 104 | ); 105 | } 106 | 107 | Widget _buildNavItem(BuildContext context, int index) { 108 | final item = widget.items[index]; 109 | 110 | Widget child = Column( 111 | mainAxisSize: MainAxisSize.min, 112 | children: [ 113 | Icon(item.icon), 114 | SizedBox(height: 4.0), 115 | Text( 116 | item.label, 117 | textScaleFactor: 0.8, 118 | ), 119 | ], 120 | ); 121 | 122 | if (index == _selected) { 123 | final theme = Theme.of(context); 124 | 125 | child = DefaultTextStyle.merge( 126 | style: TextStyle(color: theme.accentColor), 127 | child: IconTheme.merge( 128 | data: IconThemeData(color: theme.accentColor), 129 | child: child, 130 | ), 131 | ); 132 | } 133 | 134 | return Expanded( 135 | child: InkResponse( 136 | onTap: widget.onItemSelected != null ? () => _onItemSelected(index) : null, 137 | child: child, 138 | ), 139 | ); 140 | } 141 | 142 | void _onItemSelected(int index) { 143 | setState(() => _selected = index); 144 | widget.onItemSelected(index); 145 | } 146 | } 147 | 148 | class _NavItem { 149 | const _NavItem({ 150 | @required this.icon, 151 | @required this.label, 152 | }); 153 | 154 | final IconData icon; 155 | final String label; 156 | } 157 | -------------------------------------------------------------------------------- /lib/pages/workout_details.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gymapp/app/icons.dart'; 3 | import 'package:gymapp/model/workout.dart'; 4 | import 'package:gymapp/widgets/routes.dart'; 5 | import 'package:gymapp/widgets/horz_list.dart'; 6 | 7 | class WorkoutDetailPage extends StatefulWidget { 8 | static Route route(Workout workout) { 9 | return MaterialPageRoute( 10 | //duration: const Duration(seconds: 2), 11 | builder: (context) => WorkoutDetailPage( 12 | workout: workout, 13 | ), 14 | ); 15 | } 16 | 17 | const WorkoutDetailPage({ 18 | Key key, 19 | @required this.workout, 20 | }) : super(key: key); 21 | 22 | final Workout workout; 23 | 24 | @override 25 | _WorkoutDetailPageState createState() => _WorkoutDetailPageState(); 26 | } 27 | 28 | class _WorkoutDetailPageState extends State { 29 | @override 30 | Widget build(BuildContext context) { 31 | final theme = Theme.of(context); 32 | return Stack( 33 | children: [ 34 | _WorkoutHeader( 35 | workout: widget.workout, 36 | ), 37 | LayoutBuilder( 38 | builder: (BuildContext context, BoxConstraints constraints) { 39 | return SingleChildScrollView( 40 | padding: EdgeInsets.only(top: constraints.maxWidth * 0.9), 41 | child: Column( 42 | children: [ 43 | Container( 44 | decoration: BoxDecoration( 45 | color: theme.backgroundColor, 46 | borderRadius: BorderRadius.all(Radius.circular(24.0)), 47 | ), 48 | child: Container( 49 | height: constraints.maxHeight, 50 | child: Column( 51 | children: [ 52 | HorizontalFeaturedItems( 53 | viewportFraction: 1.0 / 2.5, 54 | itemCount: 3, 55 | padding: EdgeInsets.symmetric(horizontal: 24.0, vertical: 8.0), 56 | itemBuilder: (BuildContext context, int index) { 57 | return Card(); 58 | }, 59 | ), 60 | ], 61 | ), 62 | ), 63 | ), 64 | ], 65 | ), 66 | ); 67 | }, 68 | ), 69 | SafeArea( 70 | child: _BackButton(), 71 | ), 72 | ], 73 | ); 74 | } 75 | } 76 | 77 | class _BackButton extends StatelessWidget { 78 | @override 79 | Widget build(BuildContext context) { 80 | return Material( 81 | type: MaterialType.transparency, 82 | child: Padding( 83 | padding: const EdgeInsets.fromLTRB(8.0, 8.0, 32.0, 32.0), 84 | child: InkResponse( 85 | onTap: () => Navigator.of(context).pop(), 86 | child: Row( 87 | mainAxisSize: MainAxisSize.min, 88 | children: [ 89 | Icon( 90 | AppIcons.chevron_left, 91 | color: Colors.white, 92 | size: 20.0, 93 | ), 94 | Text( 95 | 'Back', 96 | style: const TextStyle( 97 | color: Colors.white, 98 | fontSize: 16.0, 99 | ), 100 | ), 101 | ], 102 | ), 103 | ), 104 | ), 105 | ); 106 | } 107 | } 108 | 109 | class _WorkoutHeader extends StatelessWidget { 110 | const _WorkoutHeader({ 111 | Key key, 112 | @required this.workout, 113 | }) : super(key: key); 114 | 115 | final Workout workout; 116 | 117 | @override 118 | Widget build(BuildContext context) { 119 | final theme = Theme.of(context); 120 | return AspectRatio( 121 | aspectRatio: 1.0, 122 | child: Container( 123 | decoration: BoxDecoration( 124 | image: DecorationImage( 125 | image: AssetImage(workout.assetImage), 126 | fit: BoxFit.cover, 127 | colorFilter: ColorFilter.mode(Colors.black.withOpacity(0.4), BlendMode.darken), 128 | ), 129 | ), 130 | child: SafeArea( 131 | child: FractionallySizedBox( 132 | widthFactor: 0.7, 133 | heightFactor: 0.85, 134 | alignment: Alignment.topLeft, 135 | child: Padding( 136 | padding: EdgeInsets.symmetric(vertical: 8.0, horizontal: 24.0), 137 | child: Column( 138 | mainAxisAlignment: MainAxisAlignment.end, 139 | crossAxisAlignment: CrossAxisAlignment.start, 140 | children: [ 141 | Text( 142 | 'Today', 143 | style: TextStyle( 144 | color: theme.accentColor, 145 | fontSize: 12.0, 146 | ), 147 | ), 148 | Text( 149 | 'Evening with cardio session', 150 | style: const TextStyle( 151 | fontWeight: FontWeight.bold, 152 | fontSize: 28.0, 153 | ), 154 | ), 155 | ], 156 | ), 157 | ), 158 | ), 159 | ), 160 | ), 161 | ); 162 | } 163 | } 164 | -------------------------------------------------------------------------------- /lib/pages/workout_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:gymapp/app/theme.dart'; 3 | import 'package:gymapp/mock/mock.dart'; 4 | import 'package:gymapp/model/workout.dart'; 5 | import 'package:gymapp/pages/workout_details.dart'; 6 | 7 | class WorkoutListPage extends StatefulWidget { 8 | static Route route() { 9 | return MaterialPageRoute( 10 | builder: (context) => WorkoutListPage(), 11 | ); 12 | } 13 | 14 | @override 15 | _WorkoutListPageState createState() => _WorkoutListPageState(); 16 | } 17 | 18 | class _WorkoutListPageState extends State with SingleTickerProviderStateMixin { 19 | AnimationController _controller; 20 | Animation _padding; 21 | 22 | @override 23 | void initState() { 24 | super.initState(); 25 | _controller = AnimationController(duration: Duration(seconds: 1), vsync: this); 26 | 27 | _padding = EdgeInsetsGeometryTween( 28 | begin: EdgeInsets.symmetric(vertical: 128.0), 29 | end: EdgeInsets.symmetric(vertical: 0.0), 30 | ).animate( 31 | CurvedAnimation(parent: _controller, curve: Curves.decelerate), 32 | ); 33 | } 34 | 35 | @override 36 | void didChangeDependencies() { 37 | super.didChangeDependencies(); 38 | ModalRoute.of(context).animation.addStatusListener(_onRouteAnimationChanged); 39 | } 40 | 41 | @override 42 | void reassemble() { 43 | super.reassemble(); 44 | _controller?.forward(from: 0.0); 45 | } 46 | 47 | void _onRouteAnimationChanged(AnimationStatus status) { 48 | if (status == AnimationStatus.completed) { 49 | _controller.forward(); 50 | } 51 | } 52 | 53 | @override 54 | void dispose() { 55 | _controller.dispose(); 56 | super.dispose(); 57 | } 58 | 59 | @override 60 | Widget build(BuildContext context) { 61 | final mediaQuery = MediaQuery.of(context); 62 | 63 | var children = [ 64 | _WorkoutsHeader(), 65 | ]; 66 | 67 | children.addAll(mockWorkouts.map( 68 | (workout) => AnimatedBuilder( 69 | animation: _padding, 70 | builder: (BuildContext context, Widget child) { 71 | return Opacity( 72 | opacity: _controller.value, 73 | child: Padding( 74 | padding: _padding.value, 75 | child: child, 76 | ), 77 | ); 78 | }, 79 | child: _WorkoutsCard( 80 | workout: workout, 81 | onTap: () => _onTapWorkout(workout), 82 | ), 83 | ), 84 | )); 85 | 86 | return SingleChildScrollView( 87 | padding: mediaQuery.padding, 88 | child: Column( 89 | children: children, 90 | ), 91 | ); 92 | } 93 | 94 | void _onTapWorkout(Workout workout) { 95 | Navigator.of(context).push( 96 | WorkoutDetailPage.route(workout), 97 | ); 98 | } 99 | } 100 | 101 | class _WorkoutsCard extends StatelessWidget { 102 | final Workout workout; 103 | final VoidCallback onTap; 104 | 105 | const _WorkoutsCard({ 106 | Key key, 107 | @required this.workout, 108 | this.onTap, 109 | }) : super(key: key); 110 | 111 | @override 112 | Widget build(BuildContext context) { 113 | final theme = Theme.of(context); 114 | return Container( 115 | margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0), 116 | child: AspectRatio( 117 | aspectRatio: 2.2, 118 | child: Stack( 119 | fit: StackFit.expand, 120 | children: [ 121 | DecoratedBox( 122 | decoration: BoxDecoration( 123 | borderRadius: BorderRadius.all(Radius.circular(12.0)), 124 | image: DecorationImage( 125 | image: AssetImage(workout.assetImage), 126 | fit: BoxFit.cover, 127 | colorFilter: ColorFilter.mode(Colors.black.withOpacity(0.4), BlendMode.darken), 128 | ), 129 | ), 130 | ), 131 | FractionallySizedBox( 132 | widthFactor: 0.7, 133 | heightFactor: 1.0, 134 | alignment: Alignment.bottomLeft, 135 | child: Padding( 136 | padding: EdgeInsets.symmetric(vertical: 8.0, horizontal: 24.0), 137 | child: Column( 138 | crossAxisAlignment: CrossAxisAlignment.start, 139 | children: [ 140 | Spacer(), 141 | Text( 142 | 'Today', 143 | style: TextStyle( 144 | color: theme.accentColor, 145 | fontSize: 12.0, 146 | ), 147 | ), 148 | Text( 149 | 'Evening with cardio session', 150 | style: const TextStyle( 151 | fontWeight: FontWeight.bold, 152 | fontSize: 28.0, 153 | ), 154 | ), 155 | ], 156 | ), 157 | ), 158 | ), 159 | ClipRRect( 160 | borderRadius: BorderRadius.all(Radius.circular(12.0)), 161 | child: Material( 162 | type: MaterialType.transparency, 163 | child: InkWell( 164 | onTap: this.onTap, 165 | child: SizedBox.expand(), 166 | ), 167 | ), 168 | ), 169 | ], 170 | ), 171 | ), 172 | ); 173 | } 174 | } 175 | 176 | class _WorkoutsHeader extends StatelessWidget { 177 | const _WorkoutsHeader({ 178 | Key key, 179 | }) : super(key: key); 180 | 181 | @override 182 | Widget build(BuildContext context) { 183 | return Padding( 184 | padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0), 185 | child: Row( 186 | children: [ 187 | Expanded( 188 | child: Column( 189 | crossAxisAlignment: CrossAxisAlignment.start, 190 | children: [ 191 | Text( 192 | '+ ADD NEW SESSION', 193 | style: const TextStyle( 194 | color: AppTheme.greyColor, 195 | fontWeight: FontWeight.bold, 196 | fontSize: 13.0, 197 | ), 198 | ), 199 | SizedBox(height: 4.0), 200 | Text( 201 | 'My workouts', 202 | style: const TextStyle( 203 | fontWeight: FontWeight.bold, 204 | fontSize: 32.0, 205 | ), 206 | ), 207 | ], 208 | ), 209 | ), 210 | Align( 211 | alignment: Alignment.centerRight, 212 | child: CircleAvatar( 213 | backgroundImage: AssetImage('assets/images/iiro_profile.png'), 214 | ), 215 | ), 216 | ], 217 | ), 218 | ); 219 | } 220 | } 221 | -------------------------------------------------------------------------------- /lib/widgets/horz_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class HorizontalFeaturedItems extends StatefulWidget { 4 | final int initialPage; 5 | final double aspectRatio; 6 | final double viewportFraction; 7 | final EdgeInsetsGeometry padding; 8 | final SliverChildDelegate childrenDelegate; 9 | 10 | HorizontalFeaturedItems({ 11 | Key key, 12 | this.initialPage: 0, 13 | this.aspectRatio: 1.0, 14 | this.viewportFraction: 1.0, 15 | this.padding = EdgeInsets.zero, 16 | @required IndexedWidgetBuilder itemBuilder, 17 | int itemCount, 18 | bool addAutomaticKeepAlives: true, 19 | bool addRepaintBoundaries: true, 20 | }) : childrenDelegate = new SliverChildBuilderDelegate( 21 | itemBuilder, 22 | childCount: itemCount, 23 | addAutomaticKeepAlives: addAutomaticKeepAlives, 24 | addRepaintBoundaries: addRepaintBoundaries, 25 | ), 26 | super(key: key); 27 | 28 | @override 29 | HorizontalFeaturedItemsState createState() { 30 | return new HorizontalFeaturedItemsState(); 31 | } 32 | } 33 | 34 | class HorizontalFeaturedItemsState extends State { 35 | PageController _controller; 36 | 37 | @override 38 | void initState() { 39 | super.initState(); 40 | _controller = PageController( 41 | initialPage: this.widget.initialPage, 42 | viewportFraction: this.widget.viewportFraction, 43 | ); 44 | } 45 | 46 | @override 47 | Widget build(BuildContext context) { 48 | return new LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { 49 | final double itemWidth = (constraints.maxWidth - widget.padding.horizontal) * this.widget.viewportFraction; 50 | final double itemHeight = (itemWidth * this.widget.aspectRatio); 51 | return Container( 52 | height: itemHeight, 53 | child: ListView.custom( 54 | scrollDirection: Axis.horizontal, 55 | controller: _controller, 56 | physics: const PageScrollPhysics(), 57 | padding: this.widget.padding, 58 | itemExtent: itemWidth, 59 | childrenDelegate: this.widget.childrenDelegate, 60 | ), 61 | ); 62 | }); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/widgets/routes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class NoTransitionRoute extends PageRouteBuilder { 4 | NoTransitionRoute({ 5 | @required WidgetBuilder builder, 6 | Duration duration = const Duration(milliseconds: 450), 7 | }) : assert(duration != null), 8 | super( 9 | opaque: false, 10 | pageBuilder: (BuildContext context, _, __) => builder(context), 11 | transitionDuration: duration, 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: gymapp 2 | description: Gym App 3 | version: 1.0.0+1 4 | 5 | environment: 6 | sdk: ">=2.0.0-dev.68.0 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | 12 | dev_dependencies: 13 | flutter_test: 14 | sdk: flutter 15 | 16 | flutter: 17 | uses-material-design: true 18 | assets: 19 | - assets/images/ 20 | 21 | fonts: 22 | - family: AppIcons 23 | fonts: 24 | - asset: assets/fonts/app_icons.ttf 25 | --------------------------------------------------------------------------------