├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── 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
│ │ │ │ └── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── task_app
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── build.gradle
├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── 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-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner.xcodeproj
│ ├── project.xcworkspace
│ └── contents.xcworkspacedata
│ ├── xcshareddata
│ └── xcschemes
│ │ └── Runner.xcscheme
│ └── project.pbxproj
├── assets
└── user.jpeg
├── .metadata
├── lib
├── widgets
│ ├── heading.dart
│ ├── filter.dart
│ ├── projects_slider.dart
│ ├── project_card.dart
│ ├── bottom_nav.dart
│ ├── project_card_tile.dart
│ ├── dashed_rect.dart
│ ├── progress_indicator.dart
│ ├── project_detail_card.dart
│ └── carousel_slider.dart
├── main.dart
└── screens
│ ├── projects.dart
│ ├── dashboad.dart
│ └── home.dart
├── pubspec.yaml
├── test
└── widget_test.dart
├── README.md
├── .gitignore
└── pubspec.lock
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/assets/user.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/assets/user.jpeg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/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/HathTech/Flutter-Task-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HathTech/Flutter-Task-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/.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: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/task_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.task_app
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | GeneratedPluginRegistrant.registerWith(this)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/widgets/heading.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Heading extends StatelessWidget {
4 | final Text text;
5 | final button;
6 |
7 | Heading({Key key, @required this.button, @required this.text})
8 | : super(key: key);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Container(
13 | child: ListTile(
14 | leading: text,
15 | trailing: Container(
16 | height: 40,
17 | width: 40,
18 | child: button,
19 | ),
20 | ),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_app/screens/home.dart';
3 |
4 | void main() => runApp(App());
5 |
6 | class App extends StatelessWidget {
7 | // This widget is the root of your application.
8 | @override
9 | Widget build(BuildContext context) {
10 | return MaterialApp(
11 | debugShowCheckedModeBanner: false,
12 | title: 'Flutter Task App',
13 | theme: ThemeData(
14 | primarySwatch: Colors.blue,
15 | splashColor: Colors.transparent,
16 | highlightColor: Colors.transparent),
17 | home: Home(),
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: task_app
2 | description: A new Flutter project.
3 | version: 1.0.0+1
4 |
5 | environment:
6 | sdk: ">=2.1.0 <3.0.0"
7 |
8 | dependencies:
9 | flutter:
10 | sdk: flutter
11 |
12 | cupertino_icons: ^0.1.2
13 | path_drawing:
14 |
15 | dev_dependencies:
16 | flutter_test:
17 | sdk: flutter
18 |
19 | flutter:
20 | # The following line ensures that the Material Icons font is
21 | # included with your application, so that you can use the icons in
22 | # the material Icons class.
23 | uses-material-design: true
24 |
25 | # To add assets to your application, add an assets section, like this:
26 | assets:
27 | - assets/user.jpeg
28 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.2.71'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 |
--------------------------------------------------------------------------------
/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:task_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(App());
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # task_app
2 |
3 | Task UI Concept inspiration from dribbble
4 |
5 | [ https://dribbble.com/shots/7141339--17-TaskApp-Mobile-App-Concept](https://dribbble.com/shots/7141339--17-TaskApp-Mobile-App-Concept)
6 |
7 | 
8 |
9 | ## Coming soon
10 |
11 | - Full feature app with firebase integration.
12 | - Will use bloc pattern
13 |
14 | Good learning source.
15 |
16 | ### :heart: Found this project useful?
17 |
18 | If you found this project useful, then please consider giving it a :star: on Github and sharing it with your friends via social media.
19 |
20 | ### Facing flutter integration with firebase checkout our new app - [FlutterFire](https://1.envato.market/07QmM)
21 |
22 | #### Youtube demo -
23 |
24 |

25 |
26 |
27 | ### Looking for complete eCommerce Solution [Check this now](https://1.envato.market/07QmM)
28 |
29 | 
30 |
31 |
32 | ## Project Created & Maintained By
33 |
34 | ### HathTech Innovations Pvt. Ltd.
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 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | task_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 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/lib/widgets/filter.dart:
--------------------------------------------------------------------------------
1 | import "package:flutter/material.dart";
2 |
3 | class FiltersWidget extends StatefulWidget {
4 | FiltersWidget({Key key, @required this.updateFilter}) : super(key: key);
5 |
6 | final Function updateFilter;
7 |
8 | @override
9 | State createState() {
10 | return FiltersWidgetState();
11 | }
12 | }
13 |
14 | class FiltersWidgetState extends State {
15 | Widget _buildBadge(title) {
16 | return Padding(
17 | padding: const EdgeInsets.only(left: 8.0),
18 | child: GestureDetector(
19 | onTap: () {
20 | selectedFilter = title.toLowerCase();
21 | widget.updateFilter(title.toLowerCase());
22 | },
23 | child: RawChip(
24 | padding: EdgeInsets.all(16),
25 | label: Text(
26 | title,
27 | style: TextStyle(
28 | fontFamily: "Montserrat", fontWeight: FontWeight.bold),
29 | ),
30 | labelStyle: TextStyle(
31 | color: selectedFilter == title.toLowerCase()
32 | ? Colors.white
33 | : Colors.black,
34 | fontSize: 14.0),
35 | backgroundColor: selectedFilter == title.toLowerCase()
36 | ? Colors.redAccent
37 | : Colors.grey[300],
38 | shape: RoundedRectangleBorder(
39 | borderRadius: BorderRadius.all(
40 | Radius.circular(8.0),
41 | ),
42 | ),
43 | ),
44 | ),
45 | );
46 | }
47 |
48 | String selectedFilter = "all";
49 |
50 | final List filters = [
51 | "All",
52 | "Open",
53 | "Closed",
54 | "Expired",
55 | ];
56 |
57 | @override
58 | Widget build(BuildContext context) {
59 | return Container(
60 | height: 60.0,
61 | padding: EdgeInsets.only(left: 8.0, top: 8, bottom: 8),
62 | child: ListView.builder(
63 | scrollDirection: Axis.horizontal,
64 | itemCount: filters.length,
65 | itemBuilder: (BuildContext context, int index) {
66 | return _buildBadge(filters[index]);
67 | },
68 | ),
69 | );
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/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 plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.task_app"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
67 | }
68 |
--------------------------------------------------------------------------------
/lib/widgets/projects_slider.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_app/widgets/project_card.dart';
3 |
4 | import 'carousel_slider.dart';
5 |
6 | class ProjectSlider extends StatefulWidget {
7 | ProjectSlider({@required this.projects}) : super();
8 | final List projects;
9 | @override
10 | _ProjectSliderState createState() => _ProjectSliderState();
11 | }
12 |
13 | class _ProjectSliderState extends State {
14 | int _current = 0;
15 |
16 | buildList(context, store) {
17 | return ProjectCard();
18 | }
19 |
20 | buildIndicator(context, index, project, demoSlider) {
21 | return GestureDetector(
22 | onTap: () {
23 | setState(() {
24 | demoSlider.jumpToPage(index);
25 | });
26 | },
27 | child: Container(
28 | width: 6.0,
29 | height: 6.0,
30 | margin: EdgeInsets.symmetric(vertical: 24.0, horizontal: 3.0),
31 | decoration: BoxDecoration(
32 | shape: BoxShape.rectangle,
33 | borderRadius: BorderRadius.all(Radius.circular(8.0)),
34 | color: _current == index
35 | ? Colors.black
36 | : Colors.grey.withOpacity(0.8)),
37 | ),
38 | );
39 | }
40 |
41 | Widget sliderDemo() {
42 | final demoSlider = CarouselSlider(
43 | aspectRatio: 2.0,
44 | enableInfiniteScroll: true,
45 | viewportFraction: 0.7,
46 | scrollPhysics: BouncingScrollPhysics(),
47 | height: MediaQuery.of(context).size.height * 0.3,
48 | items: widget.projects
49 | .map((project) => buildList(context, project))
50 | .toList(),
51 | autoPlay: true,
52 | enlargeCenterPage: true,
53 | onPageChanged: (index) {
54 | setState(() {
55 | _current = index;
56 | });
57 | },
58 | );
59 | return Column(children: [
60 | demoSlider,
61 | Padding(
62 | padding: const EdgeInsets.only(left: 16.0),
63 | child: Row(
64 | mainAxisAlignment: MainAxisAlignment.start,
65 | children: widget.projects
66 | .map((store) => buildIndicator(
67 | context, widget.projects.indexOf(store), store, demoSlider))
68 | .toList()),
69 | ),
70 | ]);
71 | }
72 |
73 | @override
74 | Widget build(BuildContext context) {
75 | return sliderDemo();
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/widgets/project_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:task_app/widgets/progress_indicator.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | import 'dart:math' as math;
5 |
6 | class ProjectCard extends StatelessWidget {
7 | final List colors = [Colors.redAccent, Colors.blue, Colors.green];
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | var rng = new math.Random.secure();
12 |
13 | return Padding(
14 | padding: EdgeInsets.only(top: 8.0, bottom: 8.0, right: 16),
15 | child: Card(
16 | color: colors[rng.nextInt(3)],
17 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
18 | elevation: 0.0,
19 | child: Container(
20 | padding: EdgeInsets.all(32.0),
21 | height: MediaQuery.of(context).size.height * 0.3,
22 | // width: 260,
23 | child: Column(
24 | mainAxisAlignment: MainAxisAlignment.start,
25 | crossAxisAlignment: CrossAxisAlignment.start,
26 | children: [
27 | Text(
28 | "Branding Studio",
29 | style: TextStyle(
30 | color: Colors.white,
31 | fontSize: 18,
32 | ),
33 | maxLines: 1,
34 | overflow: TextOverflow.ellipsis,
35 | ),
36 | SizedBox(
37 | height: 10,
38 | ),
39 | Expanded(
40 | child: Text(
41 | "Homepage design",
42 | style: TextStyle(
43 | color: Colors.white,
44 | fontWeight: FontWeight.w700,
45 | fontSize: 24,
46 | ),
47 | ),
48 | ),
49 | SizedBox(
50 | height: 10,
51 | ),
52 | Text(
53 | "43%",
54 | style: TextStyle(
55 | color: Colors.white,
56 | fontSize: 14,
57 | fontWeight: FontWeight.w900),
58 | ),
59 | SizedBox(
60 | height: 4,
61 | ),
62 | FAProgressBar(
63 | size: 4,
64 | borderRadius: 2,
65 | currentValue: 43,
66 | progressColor: Colors.blueAccent,
67 | backgroundColor: Color(0xffF0F0F0),
68 | ),
69 | SizedBox(
70 | height: 2,
71 | ),
72 | ],
73 | ),
74 | ),
75 | ),
76 | );
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/lib/screens/projects.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_app/widgets/dashed_rect.dart';
3 | import 'package:task_app/widgets/filter.dart';
4 | import 'package:task_app/widgets/heading.dart';
5 | import 'package:task_app/widgets/project_card_tile.dart';
6 | import 'package:task_app/widgets/project_detail_card.dart';
7 |
8 | class Projects extends StatelessWidget {
9 | @override
10 | Widget build(BuildContext context) {
11 | return LayoutBuilder(
12 | builder: (BuildContext context, BoxConstraints viewportConstraints) {
13 | return SingleChildScrollView(
14 | scrollDirection: Axis.vertical,
15 | child: ConstrainedBox(
16 | constraints:
17 | BoxConstraints(minHeight: viewportConstraints.maxHeight),
18 | child: Column(children: [
19 | SizedBox(
20 | height: 22,
21 | ),
22 | Heading(
23 | text: Text(
24 | "My projects",
25 | style: TextStyle(fontSize: 32, fontWeight: FontWeight.w600),
26 | ),
27 | button: DottedBorder(
28 | borderType: BorderType.RRect,
29 | radius: Radius.circular(8),
30 | color: Colors.grey,
31 | child: Center(
32 | child: Icon(
33 | Icons.filter_list,
34 | size: 28,
35 | color: Colors.orange,
36 | ),
37 | ),
38 | strokeWidth: 1,
39 | dashPattern: [3, 4]),
40 | ),
41 | SizedBox(
42 | height: 12,
43 | ),
44 | FiltersWidget(
45 | updateFilter: () {},
46 | ),
47 | SizedBox(
48 | height: 12,
49 | ),
50 | Heading(
51 | text: Text(
52 | "You have 11 projects",
53 | style: TextStyle(
54 | fontSize: 16,
55 | fontWeight: FontWeight.w500,
56 | color: Colors.grey[500]),
57 | ),
58 | button: SizedBox(),
59 | ),
60 | Container(
61 | child: ListView.builder(
62 | shrinkWrap: true,
63 | physics: NeverScrollableScrollPhysics(),
64 | itemCount: 5,
65 | itemBuilder: (BuildContext context, int index) {
66 | return ProjectDetailCard();
67 | },
68 | ),
69 | )
70 | ]),
71 | ),
72 | );
73 | },
74 | );
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/screens/dashboad.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_app/widgets/dashed_rect.dart';
3 | import 'package:task_app/widgets/heading.dart';
4 | import 'package:task_app/widgets/project_card_tile.dart';
5 | import 'package:task_app/widgets/projects_slider.dart';
6 |
7 | class Dashboard extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return LayoutBuilder(
11 | builder: (BuildContext context, BoxConstraints viewportConstraints) {
12 | return SingleChildScrollView(
13 | scrollDirection: Axis.vertical,
14 | child: ConstrainedBox(
15 | constraints:
16 | BoxConstraints(minHeight: viewportConstraints.maxHeight),
17 | child: Column(children: [
18 | SizedBox(
19 | height: 22,
20 | ),
21 | Heading(
22 | text: Text(
23 | "Today's tasks",
24 | style: TextStyle(fontSize: 32, fontWeight: FontWeight.w600),
25 | ),
26 | button: DottedBorder(
27 | borderType: BorderType.RRect,
28 | radius: Radius.circular(8),
29 | color: Colors.grey,
30 | child: Center(
31 | child: Icon(
32 | Icons.navigate_next,
33 | size: 28,
34 | color: Colors.orange,
35 | ),
36 | ),
37 | strokeWidth: 1,
38 | dashPattern: [3, 4]),
39 | ),
40 | SizedBox(
41 | height: 22,
42 | ),
43 | ProjectSlider(
44 | projects: [1, 2, 3, 4, 5],
45 | ),
46 | SizedBox(
47 | height: 12,
48 | ),
49 | Heading(
50 | text: Text(
51 | "Open projects",
52 | style: TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
53 | ),
54 | button: DottedBorder(
55 | borderType: BorderType.RRect,
56 | radius: Radius.circular(8),
57 | color: Colors.grey,
58 | child: Center(
59 | child: Icon(
60 | Icons.navigate_next,
61 | size: 28,
62 | color: Colors.orange,
63 | ),
64 | ),
65 | strokeWidth: 1,
66 | dashPattern: [3, 4]),
67 | ),
68 | SizedBox(
69 | height: 12.0,
70 | ),
71 | Container(
72 | child: ListView.builder(
73 | shrinkWrap: true,
74 | physics: NeverScrollableScrollPhysics(),
75 | itemCount: 5,
76 | itemBuilder: (BuildContext context, int index) {
77 | return ProjectCardTile();
78 | },
79 | ),
80 | )
81 | ]),
82 | ),
83 | );
84 | },
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/screens/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_app/screens/dashboad.dart';
3 | import 'package:task_app/screens/projects.dart';
4 | import 'package:task_app/widgets/bottom_nav.dart';
5 |
6 | class Home extends StatefulWidget {
7 | const Home({Key key}) : super(key: key);
8 | @override
9 | State createState() {
10 | return HomeState();
11 | }
12 | }
13 |
14 | class HomeState extends State {
15 | int selectedIndex = 0;
16 |
17 | updateIndex(index) {
18 | print(index);
19 | setState(() {
20 | selectedIndex = index;
21 | });
22 | }
23 |
24 | Widget accountTab() {
25 | return Container(
26 | padding: EdgeInsets.only(top: 32, left: 8.0, right: 6.0),
27 | child: SingleChildScrollView(
28 | child: Column(
29 | crossAxisAlignment: CrossAxisAlignment.start,
30 | children: [],
31 | ),
32 | ),
33 | );
34 | }
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return Scaffold(
39 | appBar: AppBar(
40 | elevation: 0.0,
41 | automaticallyImplyLeading: true,
42 | backgroundColor: Color(0xfff0f0f0),
43 | centerTitle: false,
44 | title: Padding(
45 | padding: const EdgeInsets.only(left: 6.0, top: 5.0),
46 | child: Column(
47 | mainAxisAlignment: MainAxisAlignment.start,
48 | crossAxisAlignment: CrossAxisAlignment.start,
49 | children: [
50 | new Text(
51 | selectedIndex == 0 ? 'Dashboard' : 'Projects',
52 | style: new TextStyle(
53 | color: Colors.black87,
54 | fontFamily: 'Montserrat',
55 | fontWeight: FontWeight.bold,
56 | fontSize: 23.0),
57 | ),
58 | new Text(
59 | 'CoreTeam',
60 | style: new TextStyle(color: Colors.grey, fontSize: 16.0),
61 | ),
62 | ],
63 | ),
64 | ),
65 | actions: [
66 | Padding(
67 | padding: const EdgeInsets.only(right: 18.0, top: 8.0),
68 | child: Container(
69 | decoration: BoxDecoration(
70 | borderRadius: new BorderRadius.circular(8.0),
71 | image:
72 | DecorationImage(image: AssetImage("assets/user.jpeg"))),
73 | width: 40.0,
74 | height: 40.0,
75 | ),
76 | ),
77 | ],
78 | ), //AppBar ,
79 | body: DefaultTabController(
80 | initialIndex: 0,
81 | length: 3,
82 | child: Scaffold(
83 | //AppBar ,
84 | body:
85 | TabBarView(physics: NeverScrollableScrollPhysics(), children: [
86 | Dashboard(),
87 | Projects(),
88 | accountTab(),
89 | ]),
90 |
91 | bottomNavigationBar: Padding(
92 | padding: const EdgeInsets.only(bottom: 0.0),
93 | child: CustomBottomNav(updateIndex),
94 | ),
95 | backgroundColor: Color(0xfff0f0f0),
96 | )),
97 | );
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/widgets/bottom_nav.dart:
--------------------------------------------------------------------------------
1 | import "package:flutter/material.dart";
2 |
3 | class CustomBottomNav extends StatefulWidget {
4 | final Function updateIndex;
5 |
6 | CustomBottomNav(this.updateIndex);
7 |
8 | @override
9 | State createState() {
10 | return _CustomBottomNav();
11 | }
12 | }
13 |
14 | class _CustomBottomNav extends State {
15 | int _selectedIndex = 0;
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | double myHeight = 80.0;
20 | return Material(
21 | elevation: 24.0,
22 | color: Color(0xff17181a),
23 | shape: new RoundedRectangleBorder(
24 | borderRadius: new BorderRadius.circular(8.0),
25 | ),
26 | child: Container(
27 | height: myHeight,
28 | width: double.infinity,
29 | margin: EdgeInsets.only(top: 0.0, bottom: 2.0),
30 | child: Row(
31 | children: [
32 | Padding(
33 | padding: const EdgeInsets.only(left: 32.0),
34 | child: Container(
35 | height: myHeight,
36 | width: MediaQuery.of(context).size.width * 0.2,
37 | child: Row(
38 | children: [
39 | Icon(
40 | Icons.wrap_text,
41 | size: 32,
42 | color: Colors.white,
43 | ),
44 | SizedBox(
45 | width: 24,
46 | ),
47 | Container(
48 | width: 2.0,
49 | color: Colors.orange.withOpacity(0.3),
50 | height: 30,
51 | ),
52 | ],
53 | ),
54 | ),
55 | ),
56 | Container(
57 | width: MediaQuery.of(context).size.width * 0.53,
58 | child: TabBar(
59 | tabs: [
60 | Tab(
61 | icon: Icon(
62 | Icons.home,
63 | size: 28.0,
64 | ),
65 | ),
66 | Tab(
67 | icon: Icon(
68 | Icons.list,
69 | size: 28.0,
70 | ),
71 | ),
72 | Tab(
73 | icon: Icon(
74 | Icons.search,
75 | size: 28.0,
76 | ),
77 | ),
78 | ],
79 | onTap: (int index) {
80 | setState(() {
81 | _selectedIndex = index;
82 | });
83 |
84 | widget.updateIndex(index);
85 | },
86 | indicatorColor: Colors.transparent,
87 | indicatorSize: TabBarIndicatorSize.label,
88 | labelColor: Colors.orange.withOpacity(0.8),
89 | unselectedLabelColor: Colors.white,
90 | ),
91 | ),
92 | SizedBox(
93 | width: 6,
94 | ),
95 | Container(
96 | width: 65,
97 | height: 55,
98 | child: RaisedButton(
99 | shape: new RoundedRectangleBorder(
100 | borderRadius: new BorderRadius.circular(8.0),
101 | ),
102 | color: Color(0xff1e43f9),
103 | child: Icon(
104 | Icons.add,
105 | color: Colors.white,
106 | ),
107 | onPressed: () {},
108 | ),
109 | )
110 | ],
111 | )),
112 | );
113 | }
114 | }
115 |
--------------------------------------------------------------------------------
/lib/widgets/project_card_tile.dart:
--------------------------------------------------------------------------------
1 | import 'package:task_app/widgets/progress_indicator.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | import 'dart:math' as math;
5 |
6 | class ProjectCardTile extends StatelessWidget {
7 | final List title = [
8 | "HathTech",
9 | "Automotive Shop",
10 | "HathTech Innovations",
11 | ];
12 |
13 | final List colors = [Colors.blue, Colors.black, Colors.green];
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | var rng = new math.Random.secure();
18 | return Padding(
19 | padding: EdgeInsets.only(left: 8.0, right: 8.0, top: 4.0, bottom: 4.0),
20 | child: Card(
21 | elevation: 1.0,
22 | shape:
23 | RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.0)),
24 | child: Padding(
25 | padding: const EdgeInsets.only(top: 8.0, bottom: 8),
26 | child: ListTile(
27 | leading: Container(
28 | child: Center(
29 | child: Text(
30 | title[rng.nextInt(3)].split(" ")[0][0],
31 | style: TextStyle(
32 | color: Colors.white,
33 | fontWeight: FontWeight.w900,
34 | fontSize: 24),
35 | ),
36 | ),
37 | decoration: BoxDecoration(
38 | borderRadius: new BorderRadius.circular(8.0),
39 | color: colors[rng.nextInt(3)]),
40 | width: 70.0,
41 | height: 80.0,
42 | ),
43 | title: Column(
44 | mainAxisAlignment: MainAxisAlignment.start,
45 | crossAxisAlignment: CrossAxisAlignment.start,
46 | children: [
47 | Text(
48 | title[rng.nextInt(3)],
49 | style: TextStyle(
50 | color: Colors.black54,
51 | fontWeight: FontWeight.w700,
52 | fontSize: 18,
53 | fontFamily: "SF"),
54 | maxLines: 1,
55 | overflow: TextOverflow.ellipsis,
56 | ),
57 | SizedBox(
58 | height: 10,
59 | ),
60 | Row(
61 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
62 | crossAxisAlignment: CrossAxisAlignment.start,
63 | children: [
64 | Text(
65 | "${rng.nextInt(40)} tasks",
66 | style: TextStyle(
67 | color: Colors.blueAccent,
68 | fontSize: 12,
69 | fontWeight: FontWeight.bold),
70 | maxLines: 1,
71 | overflow: TextOverflow.ellipsis,
72 | ),
73 | Text(
74 | "${rng.nextInt(10)} members",
75 | style: TextStyle(
76 | fontSize: 12,
77 | color: Colors.grey,
78 | ),
79 | maxLines: 1,
80 | overflow: TextOverflow.ellipsis,
81 | ),
82 | ],
83 | ),
84 | SizedBox(
85 | height: 10,
86 | ),
87 | FAProgressBar(
88 | size: 4,
89 | currentValue: 75,
90 | progressColor: Colors.green,
91 | backgroundColor: Color(0xffF0F0F0),
92 | ),
93 | SizedBox(
94 | height: 2,
95 | ),
96 | ],
97 | ),
98 | ),
99 | ),
100 | ));
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.3.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.0.5"
18 | charcode:
19 | dependency: transitive
20 | description:
21 | name: charcode
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.1.2"
25 | collection:
26 | dependency: transitive
27 | description:
28 | name: collection
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.14.11"
32 | cupertino_icons:
33 | dependency: "direct main"
34 | description:
35 | name: cupertino_icons
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "0.1.2"
39 | flutter:
40 | dependency: "direct main"
41 | description: flutter
42 | source: sdk
43 | version: "0.0.0"
44 | flutter_test:
45 | dependency: "direct dev"
46 | description: flutter
47 | source: sdk
48 | version: "0.0.0"
49 | matcher:
50 | dependency: transitive
51 | description:
52 | name: matcher
53 | url: "https://pub.dartlang.org"
54 | source: hosted
55 | version: "0.12.5"
56 | meta:
57 | dependency: transitive
58 | description:
59 | name: meta
60 | url: "https://pub.dartlang.org"
61 | source: hosted
62 | version: "1.1.7"
63 | path:
64 | dependency: transitive
65 | description:
66 | name: path
67 | url: "https://pub.dartlang.org"
68 | source: hosted
69 | version: "1.6.4"
70 | path_drawing:
71 | dependency: "direct main"
72 | description:
73 | name: path_drawing
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "0.4.1"
77 | path_parsing:
78 | dependency: transitive
79 | description:
80 | name: path_parsing
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "0.1.4"
84 | pedantic:
85 | dependency: transitive
86 | description:
87 | name: pedantic
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "1.8.0+1"
91 | quiver:
92 | dependency: transitive
93 | description:
94 | name: quiver
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "2.0.5"
98 | sky_engine:
99 | dependency: transitive
100 | description: flutter
101 | source: sdk
102 | version: "0.0.99"
103 | source_span:
104 | dependency: transitive
105 | description:
106 | name: source_span
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "1.5.5"
110 | stack_trace:
111 | dependency: transitive
112 | description:
113 | name: stack_trace
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "1.9.3"
117 | stream_channel:
118 | dependency: transitive
119 | description:
120 | name: stream_channel
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "2.0.0"
124 | string_scanner:
125 | dependency: transitive
126 | description:
127 | name: string_scanner
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.0.5"
131 | term_glyph:
132 | dependency: transitive
133 | description:
134 | name: term_glyph
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "1.1.0"
138 | test_api:
139 | dependency: transitive
140 | description:
141 | name: test_api
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "0.2.5"
145 | typed_data:
146 | dependency: transitive
147 | description:
148 | name: typed_data
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.1.6"
152 | vector_math:
153 | dependency: transitive
154 | description:
155 | name: vector_math
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "2.0.8"
159 | sdks:
160 | dart: ">=2.2.2 <3.0.0"
161 | flutter: ">=0.3.6 <2.0.0"
162 |
--------------------------------------------------------------------------------
/lib/widgets/dashed_rect.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:path_drawing/path_drawing.dart';
3 |
4 | /// Add a dotted border around any [child] widget. The [strokeWidth] property
5 | /// defines the width of the dashed border and [color] determines the stroke
6 | /// paint color. [CircularIntervalList] is populated with the [dashPattern] to
7 | /// render the appropriate pattern. The [radius] property is taken into account
8 | /// only if the [borderType] is [BorderType.RRect]. A [customPath] can be passed in
9 | /// as a parameter if you want to draw a custom shaped border.
10 | class DottedBorder extends StatelessWidget {
11 | final Widget child;
12 | final EdgeInsets padding;
13 | final double strokeWidth;
14 | final Color color;
15 | final List dashPattern;
16 | final BorderType borderType;
17 | final Radius radius;
18 | final Path customPath;
19 |
20 | DottedBorder({
21 | @required this.child,
22 | this.color = Colors.black,
23 | this.strokeWidth = 1,
24 | this.borderType = BorderType.Rect,
25 | this.dashPattern = const [3, 1],
26 | this.padding = const EdgeInsets.all(2),
27 | this.radius = const Radius.circular(0),
28 | this.customPath,
29 | }) {
30 | assert(child != null);
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return Stack(
36 | children: [
37 | Positioned.fill(
38 | child: CustomPaint(
39 | painter: _DashPainter(
40 | strokeWidth: strokeWidth,
41 | radius: radius,
42 | color: color,
43 | borderType: borderType,
44 | dashPattern: dashPattern,
45 | customPath: customPath,
46 | ),
47 | ),
48 | ),
49 | Padding(
50 | padding: padding,
51 | child: child,
52 | ),
53 | ],
54 | );
55 | }
56 | }
57 |
58 | enum BorderType { Circle, RRect, Rect, Oval }
59 |
60 | class _DashPainter extends CustomPainter {
61 | final double strokeWidth;
62 | final List dashPattern;
63 | final Color color;
64 | final BorderType borderType;
65 | final Radius radius;
66 | final Path customPath;
67 |
68 | _DashPainter({
69 | this.strokeWidth = 2,
70 | this.dashPattern = const [3, 1],
71 | this.color = Colors.black,
72 | this.borderType = BorderType.Rect,
73 | this.radius = const Radius.circular(0),
74 | this.customPath,
75 | }) {
76 | assert(dashPattern.isNotEmpty, 'Dash Pattern cannot be empty');
77 | }
78 |
79 | @override
80 | void paint(Canvas canvas, Size size) {
81 | Paint paint = Paint()
82 | ..strokeWidth = strokeWidth
83 | ..color = color
84 | ..style = PaintingStyle.stroke;
85 |
86 | Path _path;
87 | if (customPath != null) {
88 | _path =
89 | dashPath(customPath, dashArray: CircularIntervalList(dashPattern));
90 | } else {
91 | _path = _getPath(size);
92 | }
93 |
94 | canvas.drawPath(_path, paint);
95 | }
96 |
97 | Path _getPath(Size size) {
98 | Path path;
99 | switch (borderType) {
100 | case BorderType.Circle:
101 | path = _getCirclePath(size);
102 | break;
103 | case BorderType.RRect:
104 | path = _getRRectPath(size, radius);
105 | break;
106 | case BorderType.Rect:
107 | path = _getRectPath(size);
108 | break;
109 | case BorderType.Oval:
110 | path = _getOvalPath(size);
111 | break;
112 | }
113 |
114 | return dashPath(path, dashArray: CircularIntervalList(dashPattern));
115 | }
116 |
117 | Path _getCirclePath(Size size) {
118 | double w = size.width;
119 | double h = size.height;
120 | double s = size.shortestSide;
121 |
122 | return Path()
123 | ..addRRect(
124 | RRect.fromRectAndRadius(
125 | Rect.fromLTWH(
126 | w > s ? (w - s) / 2 : 0,
127 | h > s ? (h - s / 2) : 0,
128 | s,
129 | s,
130 | ),
131 | Radius.circular(s / 2),
132 | ),
133 | );
134 | }
135 |
136 | Path _getRRectPath(Size size, Radius radius) {
137 | return Path()
138 | ..addRRect(
139 | RRect.fromRectAndRadius(
140 | Rect.fromLTWH(
141 | 0,
142 | 0,
143 | size.width,
144 | size.height,
145 | ),
146 | radius,
147 | ),
148 | );
149 | }
150 |
151 | Path _getRectPath(Size size) {
152 | return Path()
153 | ..addRect(
154 | Rect.fromLTWH(
155 | 0,
156 | 0,
157 | size.width,
158 | size.height,
159 | ),
160 | );
161 | }
162 |
163 | Path _getOvalPath(Size size) {
164 | return Path()
165 | ..addOval(
166 | Rect.fromLTWH(
167 | 0,
168 | 0,
169 | size.width,
170 | size.height,
171 | ),
172 | );
173 | }
174 |
175 | @override
176 | bool shouldRepaint(_DashPainter oldDelegate) {
177 | return oldDelegate.strokeWidth != this.strokeWidth ||
178 | oldDelegate.color != this.color ||
179 | oldDelegate.dashPattern != this.dashPattern ||
180 | oldDelegate.borderType != this.borderType;
181 | }
182 | }
183 |
--------------------------------------------------------------------------------
/lib/widgets/progress_indicator.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/animation.dart';
2 | import 'package:flutter/widgets.dart';
3 |
4 | class FAProgressBar extends StatefulWidget {
5 | FAProgressBar(
6 | {Key key,
7 | this.currentValue = 0,
8 | this.maxValue = 100,
9 | this.size = 12,
10 | this.animatedDuration = const Duration(milliseconds: 300),
11 | this.direction = Axis.horizontal,
12 | this.verticalDirection = VerticalDirection.down,
13 | this.borderRadius = 12,
14 | this.backgroundColor = const Color(0x00FFFFFF),
15 | this.progressColor = const Color(0xFFFA7268),
16 | this.changeColorValue,
17 | this.changeProgressColor = const Color(0xFF5F4B8B),
18 | this.displayText})
19 | : super(key: key);
20 | final int currentValue;
21 | final int maxValue;
22 | final double size;
23 | final Duration animatedDuration;
24 | final Axis direction;
25 | final VerticalDirection verticalDirection;
26 | final double borderRadius;
27 | final Color backgroundColor;
28 | final Color progressColor;
29 | final int changeColorValue;
30 | final Color changeProgressColor;
31 | final String displayText;
32 |
33 | @override
34 | _FAProgressBarState createState() => _FAProgressBarState();
35 | }
36 |
37 | class _FAProgressBarState extends State
38 | with SingleTickerProviderStateMixin {
39 | Animation _animation;
40 | AnimationController _controller;
41 | double _currentBegin = 0;
42 | double _currentEnd = 0;
43 |
44 | @override
45 | void initState() {
46 | _controller =
47 | AnimationController(duration: widget.animatedDuration, vsync: this);
48 | _animation = Tween(begin: _currentBegin, end: _currentEnd)
49 | .animate(_controller);
50 | triggerAnimation();
51 | super.initState();
52 | }
53 |
54 | @override
55 | void didUpdateWidget(FAProgressBar old) {
56 | triggerAnimation();
57 | super.didUpdateWidget(old);
58 | }
59 |
60 | void triggerAnimation() {
61 | setState(() {
62 | _currentBegin = _animation.value;
63 | _currentEnd = widget.currentValue / widget.maxValue;
64 | _animation = Tween(begin: _currentBegin, end: _currentEnd)
65 | .animate(_controller);
66 | });
67 | _controller.reset();
68 | _controller.forward();
69 | }
70 |
71 | @override
72 | Widget build(BuildContext context) => AnimatedProgressBar(
73 | animation: _animation,
74 | widget: widget,
75 | );
76 |
77 | @override
78 | void dispose() {
79 | _controller.dispose();
80 | super.dispose();
81 | }
82 | }
83 |
84 | class AnimatedProgressBar extends AnimatedWidget {
85 | AnimatedProgressBar({
86 | Key key,
87 | Animation animation,
88 | this.widget,
89 | }) : super(key: key, listenable: animation);
90 | final widget;
91 |
92 | double transformValue(x, begin, end, before) {
93 | double y = (end * x - (begin - before)) * (1 / before);
94 | return y < 0 ? 0 : ((y > 1) ? 1 : y);
95 | }
96 |
97 | Widget build(BuildContext context) {
98 | final Animation animation = listenable;
99 | Color progressColor = widget.progressColor;
100 |
101 | if (widget.changeColorValue != null) {
102 | final _colorTween = ColorTween(
103 | begin: widget.progressColor, end: widget.changeProgressColor);
104 | progressColor = _colorTween.transform(transformValue(
105 | animation.value, widget.changeColorValue, widget.maxValue, 5));
106 | }
107 |
108 | List progressWidgets = [];
109 | Widget progressWidget = new Container(
110 | decoration: BoxDecoration(
111 | color: progressColor,
112 | borderRadius: BorderRadius.circular(widget.borderRadius),
113 | ));
114 | progressWidgets.add(progressWidget);
115 |
116 | if (widget.displayText != null) {
117 | Widget textProgress = new Container(
118 | alignment: widget.direction == Axis.horizontal
119 | ? FractionalOffset(0.95, 0.5)
120 | : (widget.verticalDirection == VerticalDirection.up
121 | ? FractionalOffset(0.5, 0.05)
122 | : FractionalOffset(0.5, 0.95)),
123 | child: Text(
124 | (animation.value * widget.maxValue).toInt().toString() +
125 | widget.displayText,
126 | softWrap: false,
127 | style: TextStyle(color: const Color(0xFFFFFFFF), fontSize: 8)));
128 | progressWidgets.add(textProgress);
129 | }
130 |
131 | return Directionality(
132 | textDirection: TextDirection.ltr,
133 | child: Container(
134 | width: widget.direction == Axis.vertical ? widget.size : null,
135 | height: widget.direction == Axis.horizontal ? widget.size : null,
136 | decoration: BoxDecoration(
137 | color: widget.backgroundColor,
138 | borderRadius: BorderRadius.circular(widget.borderRadius),
139 | border: Border.all(color: widget.progressColor, width: 0.2),
140 | ),
141 | child: Flex(
142 | direction: widget.direction,
143 | verticalDirection: widget.verticalDirection,
144 | children: [
145 | Expanded(
146 | flex: (animation.value * 100).toInt(),
147 | child: Stack(children: progressWidgets)),
148 | Expanded(
149 | flex: 100 - (animation.value * 100).toInt(), child: Container())
150 | ],
151 | ),
152 | ),
153 | );
154 | }
155 | }
156 |
--------------------------------------------------------------------------------
/lib/widgets/project_detail_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:task_app/widgets/progress_indicator.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | import 'dart:math' as math;
5 |
6 | class ProjectDetailCard extends StatelessWidget {
7 | final List title = [
8 | "HathTech",
9 | "Automotive Shop",
10 | "HathTech Innovations",
11 | ];
12 |
13 | final List colors = [Colors.blue, Colors.black, Colors.green];
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | var rng = new math.Random.secure();
18 | return Padding(
19 | padding: EdgeInsets.only(left: 8.0, right: 8.0, top: 4.0, bottom: 4.0),
20 | child: Card(
21 | elevation: 1.0,
22 | shape:
23 | RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.0)),
24 | child: Padding(
25 | padding: const EdgeInsets.only(top: 8.0, bottom: 8),
26 | child: ListTile(
27 | leading: Container(
28 | child: Center(
29 | child: Text(
30 | title[rng.nextInt(3)].split(" ")[0][0],
31 | style: TextStyle(
32 | color: Colors.white,
33 | fontWeight: FontWeight.w900,
34 | fontSize: 24),
35 | ),
36 | ),
37 | decoration: BoxDecoration(
38 | borderRadius: new BorderRadius.circular(8.0),
39 | color: colors[rng.nextInt(3)]),
40 | width: 70.0,
41 | height: 80.0,
42 | ),
43 | title: Column(
44 | mainAxisAlignment: MainAxisAlignment.start,
45 | crossAxisAlignment: CrossAxisAlignment.start,
46 | children: [
47 | Text(
48 | title[rng.nextInt(3)],
49 | style: TextStyle(
50 | color: Colors.black54,
51 | fontWeight: FontWeight.w700,
52 | fontSize: 18,
53 | fontFamily: "SF"),
54 | maxLines: 1,
55 | overflow: TextOverflow.ellipsis,
56 | ),
57 | SizedBox(
58 | height: 10,
59 | ),
60 | Row(
61 | mainAxisAlignment: MainAxisAlignment.start,
62 | crossAxisAlignment: CrossAxisAlignment.start,
63 | children: [
64 | Text(
65 | "${rng.nextInt(40)} tasks",
66 | style: TextStyle(
67 | color: Colors.blueAccent,
68 | fontSize: 12,
69 | fontWeight: FontWeight.bold),
70 | maxLines: 1,
71 | overflow: TextOverflow.ellipsis,
72 | ),
73 | SizedBox(
74 | width: 8,
75 | ),
76 | Container(
77 | width: 2.0,
78 | color: Colors.orange.withOpacity(0.3),
79 | height: 15,
80 | ),
81 | SizedBox(
82 | width: 8,
83 | ),
84 | Text(
85 | "${rng.nextInt(30)} sep 19",
86 | style: TextStyle(
87 | fontSize: 12,
88 | color: Colors.red,
89 | ),
90 | ),
91 | ],
92 | ),
93 | SizedBox(
94 | height: 18,
95 | ),
96 | Text(
97 | "Members",
98 | style: TextStyle(
99 | fontSize: 14,
100 | fontWeight: FontWeight.bold,
101 | color: Colors.grey[500],
102 | ),
103 | ),
104 | Container(
105 | width: MediaQuery.of(context).size.width * 0.7,
106 | child: Row(
107 | children: [
108 | Container(
109 | decoration: BoxDecoration(
110 | borderRadius: new BorderRadius.circular(8.0),
111 | image: DecorationImage(
112 | image: AssetImage("assets/user.jpeg"))),
113 | width: 40.0,
114 | height: 40.0,
115 | ),
116 | Container(
117 | margin: EdgeInsets.all(8),
118 | decoration: BoxDecoration(
119 | borderRadius: new BorderRadius.circular(8.0),
120 | image: DecorationImage(
121 | image: AssetImage("assets/user.jpeg"))),
122 | width: 40.0,
123 | height: 40.0,
124 | ),
125 | Container(
126 | margin: EdgeInsets.all(8),
127 | decoration: BoxDecoration(
128 | borderRadius: new BorderRadius.circular(8.0),
129 | image: DecorationImage(
130 | image: AssetImage("assets/user.jpeg"))),
131 | width: 40.0,
132 | height: 40.0,
133 | ),
134 | ],
135 | ),
136 | ),
137 | SizedBox(
138 | height: 14,
139 | ),
140 | Row(
141 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
142 | children: [
143 | Text(
144 | "Progress",
145 | style: TextStyle(
146 | color: Colors.grey[500],
147 | fontSize: 12,
148 | fontWeight: FontWeight.bold),
149 | ),
150 | Text(
151 | "43%",
152 | style: TextStyle(
153 | color: Colors.green,
154 | fontWeight: FontWeight.bold,
155 | fontSize: 12,
156 | ),
157 | maxLines: 1,
158 | overflow: TextOverflow.ellipsis,
159 | ),
160 | ],
161 | ),
162 | SizedBox(
163 | height: 12,
164 | ),
165 | FAProgressBar(
166 | size: 4,
167 | currentValue: 75,
168 | progressColor: Colors.green,
169 | backgroundColor: Color(0xffF0F0F0),
170 | ),
171 | SizedBox(
172 | height: 2,
173 | ),
174 | ],
175 | ),
176 | ),
177 | ),
178 | ));
179 | }
180 | }
181 |
--------------------------------------------------------------------------------
/lib/widgets/carousel_slider.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:flutter/foundation.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class CarouselSlider extends StatefulWidget {
7 | CarouselSlider(
8 | {@required this.items,
9 | this.height,
10 | this.aspectRatio: 16 / 9,
11 | this.viewportFraction: 0.8,
12 | this.initialPage: 0,
13 | int realPage: 10000,
14 | this.enableInfiniteScroll: true,
15 | this.reverse: false,
16 | this.autoPlay: false,
17 | this.autoPlayInterval: const Duration(seconds: 4),
18 | this.autoPlayAnimationDuration = const Duration(milliseconds: 800),
19 | this.autoPlayCurve: Curves.fastOutSlowIn,
20 | this.pauseAutoPlayOnTouch,
21 | this.enlargeCenterPage = false,
22 | this.onPageChanged,
23 | this.scrollPhysics,
24 | this.scrollDirection: Axis.horizontal})
25 | : this.realPage =
26 | enableInfiniteScroll ? realPage + initialPage : initialPage,
27 | this.pageController = PageController(
28 | viewportFraction: viewportFraction,
29 | initialPage:
30 | enableInfiniteScroll ? realPage + initialPage : initialPage,
31 | );
32 |
33 | /// The widgets to be shown in the carousel.
34 | final List items;
35 |
36 | /// Set carousel height and overrides any existing [aspectRatio].
37 | final double height;
38 |
39 | /// Aspect ratio is used if no height have been declared.
40 | ///
41 | /// Defaults to 16:9 aspect ratio.
42 | final double aspectRatio;
43 |
44 | /// The fraction of the viewport that each page should occupy.
45 | ///
46 | /// Defaults to 0.8, which means each page fills 80% of the carousel.
47 | final num viewportFraction;
48 |
49 | /// The initial page to show when first creating the [CarouselSlider].
50 | ///
51 | /// Defaults to 0.
52 | final num initialPage;
53 |
54 | /// The actual index of the [PageView].
55 | ///
56 | /// This value can be ignored unless you know the carousel will be scrolled
57 | /// backwards more then 10000 pages.
58 | /// Defaults to 10000 to simulate infinite backwards scrolling.
59 | final num realPage;
60 |
61 | ///Determines if carousel should loop infinitely or be limited to item length.
62 | ///
63 | ///Defaults to true, i.e. infinite loop.
64 | final bool enableInfiniteScroll;
65 |
66 | /// Reverse the order of items if set to true.
67 | ///
68 | /// Defaults to false.
69 | final bool reverse;
70 |
71 | /// Enables auto play, sliding one page at a time.
72 | ///
73 | /// Use [autoPlayInterval] to determent the frequency of slides.
74 | /// Defaults to false.
75 | final bool autoPlay;
76 |
77 | /// Sets Duration to determent the frequency of slides when
78 | ///
79 | /// [autoPlay] is set to true.
80 | /// Defaults to 4 seconds.
81 | final Duration autoPlayInterval;
82 |
83 | /// The animation duration between two transitioning pages while in auto playback.
84 | ///
85 | /// Defaults to 800 ms.
86 | final Duration autoPlayAnimationDuration;
87 |
88 | /// Determines the animation curve physics.
89 | ///
90 | /// Defaults to [Curves.fastOutSlowIn].
91 | final Curve autoPlayCurve;
92 |
93 | /// Sets a timer on touch detected that pause the auto play with
94 | /// the given [Duration].
95 | ///
96 | /// Touch Detection is only active if [autoPlay] is true.
97 | final Duration pauseAutoPlayOnTouch;
98 |
99 | /// Determines if current page should be larger then the side images,
100 | /// creating a feeling of depth in the carousel.
101 | ///
102 | /// Defaults to false.
103 | final bool enlargeCenterPage;
104 |
105 | /// The axis along which the page view scrolls.
106 | ///
107 | /// Defaults to [Axis.horizontal].
108 | final Axis scrollDirection;
109 |
110 | /// Called whenever the page in the center of the viewport changes.
111 | final Function(int index) onPageChanged;
112 |
113 | /// How the carousel should respond to user input.
114 | ///
115 | /// For example, determines how the items continues to animate after the
116 | /// user stops dragging the page view.
117 | ///
118 | /// The physics are modified to snap to page boundaries using
119 | /// [PageScrollPhysics] prior to being used.
120 | ///
121 | /// Defaults to matching platform conventions.
122 | final ScrollPhysics scrollPhysics;
123 |
124 | /// [pageController] is created using the properties passed to the constructor
125 | /// and can be used to control the [PageView] it is passed to.
126 | final PageController pageController;
127 |
128 | /// Animates the controlled [CarouselSlider] to the next page.
129 | ///
130 | /// The animation lasts for the given duration and follows the given curve.
131 | /// The returned [Future] resolves when the animation completes.
132 | Future nextPage({Duration duration, Curve curve}) {
133 | return pageController.nextPage(duration: duration, curve: curve);
134 | }
135 |
136 | /// Animates the controlled [CarouselSlider] to the previous page.
137 | ///
138 | /// The animation lasts for the given duration and follows the given curve.
139 | /// The returned [Future] resolves when the animation completes.
140 | Future previousPage({Duration duration, Curve curve}) {
141 | return pageController.previousPage(duration: duration, curve: curve);
142 | }
143 |
144 | /// Changes which page is displayed in the controlled [CarouselSlider].
145 | ///
146 | /// Jumps the page position from its current value to the given value,
147 | /// without animation, and without checking if the new value is in range.
148 | void jumpToPage(int page) {
149 | final index =
150 | _getRealIndex(pageController.page.toInt(), realPage, items.length);
151 | return pageController
152 | .jumpToPage(pageController.page.toInt() + page - index);
153 | }
154 |
155 | /// Animates the controlled [CarouselSlider] from the current page to the given page.
156 | ///
157 | /// The animation lasts for the given duration and follows the given curve.
158 | /// The returned [Future] resolves when the animation completes.
159 | Future animateToPage(int page, {Duration duration, Curve curve}) {
160 | final index =
161 | _getRealIndex(pageController.page.toInt(), realPage, items.length);
162 | return pageController.animateToPage(
163 | pageController.page.toInt() + page - index,
164 | duration: duration,
165 | curve: curve);
166 | }
167 |
168 | @override
169 | _CarouselSliderState createState() => _CarouselSliderState();
170 | }
171 |
172 | class _CarouselSliderState extends State
173 | with TickerProviderStateMixin {
174 | Timer timer;
175 |
176 | @override
177 | void initState() {
178 | super.initState();
179 | timer = getTimer();
180 | }
181 |
182 | Timer getTimer() {
183 | return Timer.periodic(widget.autoPlayInterval, (_) {
184 | if (widget.autoPlay) {
185 | widget.pageController.nextPage(
186 | duration: widget.autoPlayAnimationDuration,
187 | curve: widget.autoPlayCurve);
188 | }
189 | });
190 | }
191 |
192 | void pauseOnTouch() {
193 | timer.cancel();
194 | timer = Timer(widget.pauseAutoPlayOnTouch, () {
195 | timer = getTimer();
196 | });
197 | }
198 |
199 | Widget getWrapper(Widget child) {
200 | if (widget.height != null) {
201 | final Widget wrapper = Container(height: widget.height, child: child);
202 | return widget.autoPlay && widget.pauseAutoPlayOnTouch != null
203 | ? addGestureDetection(wrapper)
204 | : wrapper;
205 | } else {
206 | final Widget wrapper =
207 | AspectRatio(aspectRatio: widget.aspectRatio, child: child);
208 | return widget.autoPlay && widget.pauseAutoPlayOnTouch != null
209 | ? addGestureDetection(wrapper)
210 | : wrapper;
211 | }
212 | }
213 |
214 | Widget addGestureDetection(Widget child) =>
215 | GestureDetector(onPanDown: (_) => pauseOnTouch(), child: child);
216 |
217 | @override
218 | void dispose() {
219 | super.dispose();
220 | timer?.cancel();
221 | }
222 |
223 | @override
224 | Widget build(BuildContext context) {
225 | return getWrapper(PageView.builder(
226 | physics: widget.scrollPhysics,
227 | scrollDirection: widget.scrollDirection,
228 | controller: widget.pageController,
229 | reverse: widget.reverse,
230 | itemCount: widget.enableInfiniteScroll ? null : widget.items.length,
231 | onPageChanged: (int index) {
232 | int currentPage = _getRealIndex(
233 | index + widget.initialPage, widget.realPage, widget.items.length);
234 | if (widget.onPageChanged != null) {
235 | widget.onPageChanged(currentPage);
236 | }
237 | },
238 | itemBuilder: (BuildContext context, int i) {
239 | final int index = _getRealIndex(
240 | i + widget.initialPage, widget.realPage, widget.items.length);
241 |
242 | return AnimatedBuilder(
243 | animation: widget.pageController,
244 | child: widget.items[index],
245 | builder: (BuildContext context, child) {
246 | // on the first render, the pageController.page is null,
247 | // this is a dirty hack
248 | if (widget.pageController.position.minScrollExtent == null ||
249 | widget.pageController.position.maxScrollExtent == null) {
250 | Future.delayed(Duration(microseconds: 1), () {
251 | setState(() {});
252 | });
253 | return Container();
254 | }
255 | double value = widget.pageController.page - i;
256 | value = (1 - (value.abs() * 0.3)).clamp(0.0, 1.0);
257 |
258 | final double height = widget.height ??
259 | MediaQuery.of(context).size.width * (1 / widget.aspectRatio);
260 | final double distortionValue = widget.enlargeCenterPage
261 | ? Curves.easeOut.transform(value)
262 | : 1.0;
263 |
264 | if (widget.scrollDirection == Axis.horizontal) {
265 | return Center(
266 | child:
267 | SizedBox(height: distortionValue * height, child: child));
268 | } else {
269 | return Center(
270 | child: SizedBox(
271 | width:
272 | distortionValue * MediaQuery.of(context).size.width,
273 | child: child));
274 | }
275 | },
276 | );
277 | },
278 | ));
279 | }
280 | }
281 |
282 | /// Converts an index of a set size to the corresponding index of a collection of another size
283 | /// as if they were circular.
284 | ///
285 | /// Takes a [position] from collection Foo, a [base] from where Foo's index originated
286 | /// and the [length] of a second collection Baa, for which the correlating index is sought.
287 | ///
288 | /// For example; We have a Carousel of 10000(simulating infinity) but only 6 images.
289 | /// We need to repeat the images to give the illusion of a never ending stream.
290 | /// By calling _getRealIndex with position and base we get an offset.
291 | /// This offset modulo our length, 6, will return a number between 0 and 5, which represent the image
292 | /// to be placed in the given position.
293 | int _getRealIndex(int position, int base, int length) {
294 | final int offset = position - base;
295 | return _remainder(offset, length);
296 | }
297 |
298 | /// Returns the remainder of the modulo operation [input] % [source], and adjust it for
299 | /// negative values.
300 | int _remainder(int input, int source) {
301 | final int result = input % source;
302 | return result < 0 ? source + result : result;
303 | }
304 |
--------------------------------------------------------------------------------
/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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
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 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXCopyFilesBuildPhase section */
24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
25 | isa = PBXCopyFilesBuildPhase;
26 | buildActionMask = 2147483647;
27 | dstPath = "";
28 | dstSubfolderSpec = 10;
29 | files = (
30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
32 | );
33 | name = "Embed Frameworks";
34 | runOnlyForDeploymentPostprocessing = 0;
35 | };
36 | /* End PBXCopyFilesBuildPhase section */
37 |
38 | /* Begin PBXFileReference section */
39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | /* End PBXFileReference section */
55 |
56 | /* Begin PBXFrameworksBuildPhase section */
57 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
58 | isa = PBXFrameworksBuildPhase;
59 | buildActionMask = 2147483647;
60 | files = (
61 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
62 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | /* End PBXFrameworksBuildPhase section */
67 |
68 | /* Begin PBXGroup section */
69 | 9740EEB11CF90186004384FC /* Flutter */ = {
70 | isa = PBXGroup;
71 | children = (
72 | 3B80C3931E831B6300D905FE /* App.framework */,
73 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
74 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
78 | );
79 | name = Flutter;
80 | sourceTree = "";
81 | };
82 | 97C146E51CF9000F007C117D = {
83 | isa = PBXGroup;
84 | children = (
85 | 9740EEB11CF90186004384FC /* Flutter */,
86 | 97C146F01CF9000F007C117D /* Runner */,
87 | 97C146EF1CF9000F007C117D /* Products */,
88 | );
89 | sourceTree = "";
90 | };
91 | 97C146EF1CF9000F007C117D /* Products */ = {
92 | isa = PBXGroup;
93 | children = (
94 | 97C146EE1CF9000F007C117D /* Runner.app */,
95 | );
96 | name = Products;
97 | sourceTree = "";
98 | };
99 | 97C146F01CF9000F007C117D /* Runner */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
103 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
104 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
105 | 97C147021CF9000F007C117D /* Info.plist */,
106 | 97C146F11CF9000F007C117D /* Supporting Files */,
107 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
108 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
109 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
110 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
111 | );
112 | path = Runner;
113 | sourceTree = "";
114 | };
115 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
116 | isa = PBXGroup;
117 | children = (
118 | );
119 | name = "Supporting Files";
120 | sourceTree = "";
121 | };
122 | /* End PBXGroup section */
123 |
124 | /* Begin PBXNativeTarget section */
125 | 97C146ED1CF9000F007C117D /* Runner */ = {
126 | isa = PBXNativeTarget;
127 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
128 | buildPhases = (
129 | 9740EEB61CF901F6004384FC /* Run Script */,
130 | 97C146EA1CF9000F007C117D /* Sources */,
131 | 97C146EB1CF9000F007C117D /* Frameworks */,
132 | 97C146EC1CF9000F007C117D /* Resources */,
133 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
134 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
135 | );
136 | buildRules = (
137 | );
138 | dependencies = (
139 | );
140 | name = Runner;
141 | productName = Runner;
142 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
143 | productType = "com.apple.product-type.application";
144 | };
145 | /* End PBXNativeTarget section */
146 |
147 | /* Begin PBXProject section */
148 | 97C146E61CF9000F007C117D /* Project object */ = {
149 | isa = PBXProject;
150 | attributes = {
151 | LastUpgradeCheck = 1020;
152 | ORGANIZATIONNAME = "The Chromium Authors";
153 | TargetAttributes = {
154 | 97C146ED1CF9000F007C117D = {
155 | CreatedOnToolsVersion = 7.3.1;
156 | LastSwiftMigration = 0910;
157 | };
158 | };
159 | };
160 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
161 | compatibilityVersion = "Xcode 3.2";
162 | developmentRegion = en;
163 | hasScannedForEncodings = 0;
164 | knownRegions = (
165 | en,
166 | Base,
167 | );
168 | mainGroup = 97C146E51CF9000F007C117D;
169 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
170 | projectDirPath = "";
171 | projectRoot = "";
172 | targets = (
173 | 97C146ED1CF9000F007C117D /* Runner */,
174 | );
175 | };
176 | /* End PBXProject section */
177 |
178 | /* Begin PBXResourcesBuildPhase section */
179 | 97C146EC1CF9000F007C117D /* Resources */ = {
180 | isa = PBXResourcesBuildPhase;
181 | buildActionMask = 2147483647;
182 | files = (
183 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
184 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
185 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
186 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
187 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
188 | );
189 | runOnlyForDeploymentPostprocessing = 0;
190 | };
191 | /* End PBXResourcesBuildPhase section */
192 |
193 | /* Begin PBXShellScriptBuildPhase section */
194 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
195 | isa = PBXShellScriptBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | );
199 | inputPaths = (
200 | );
201 | name = "Thin Binary";
202 | outputPaths = (
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | shellPath = /bin/sh;
206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
207 | };
208 | 9740EEB61CF901F6004384FC /* Run Script */ = {
209 | isa = PBXShellScriptBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | );
213 | inputPaths = (
214 | );
215 | name = "Run Script";
216 | outputPaths = (
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
221 | };
222 | /* End PBXShellScriptBuildPhase section */
223 |
224 | /* Begin PBXSourcesBuildPhase section */
225 | 97C146EA1CF9000F007C117D /* Sources */ = {
226 | isa = PBXSourcesBuildPhase;
227 | buildActionMask = 2147483647;
228 | files = (
229 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
230 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | };
234 | /* End PBXSourcesBuildPhase section */
235 |
236 | /* Begin PBXVariantGroup section */
237 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
238 | isa = PBXVariantGroup;
239 | children = (
240 | 97C146FB1CF9000F007C117D /* Base */,
241 | );
242 | name = Main.storyboard;
243 | sourceTree = "";
244 | };
245 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
246 | isa = PBXVariantGroup;
247 | children = (
248 | 97C147001CF9000F007C117D /* Base */,
249 | );
250 | name = LaunchScreen.storyboard;
251 | sourceTree = "";
252 | };
253 | /* End PBXVariantGroup section */
254 |
255 | /* Begin XCBuildConfiguration section */
256 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
257 | isa = XCBuildConfiguration;
258 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
259 | buildSettings = {
260 | ALWAYS_SEARCH_USER_PATHS = NO;
261 | CLANG_ANALYZER_NONNULL = YES;
262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
263 | CLANG_CXX_LIBRARY = "libc++";
264 | CLANG_ENABLE_MODULES = YES;
265 | CLANG_ENABLE_OBJC_ARC = YES;
266 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
267 | CLANG_WARN_BOOL_CONVERSION = YES;
268 | CLANG_WARN_COMMA = YES;
269 | CLANG_WARN_CONSTANT_CONVERSION = YES;
270 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
271 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
272 | CLANG_WARN_EMPTY_BODY = YES;
273 | CLANG_WARN_ENUM_CONVERSION = YES;
274 | CLANG_WARN_INFINITE_RECURSION = YES;
275 | CLANG_WARN_INT_CONVERSION = YES;
276 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
277 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
278 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
279 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
280 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
281 | CLANG_WARN_STRICT_PROTOTYPES = YES;
282 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
283 | CLANG_WARN_UNREACHABLE_CODE = YES;
284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
286 | COPY_PHASE_STRIP = NO;
287 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
288 | ENABLE_NS_ASSERTIONS = NO;
289 | ENABLE_STRICT_OBJC_MSGSEND = YES;
290 | GCC_C_LANGUAGE_STANDARD = gnu99;
291 | GCC_NO_COMMON_BLOCKS = YES;
292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
294 | GCC_WARN_UNDECLARED_SELECTOR = YES;
295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
296 | GCC_WARN_UNUSED_FUNCTION = YES;
297 | GCC_WARN_UNUSED_VARIABLE = YES;
298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
299 | MTL_ENABLE_DEBUG_INFO = NO;
300 | SDKROOT = iphoneos;
301 | TARGETED_DEVICE_FAMILY = "1,2";
302 | VALIDATE_PRODUCT = YES;
303 | };
304 | name = Profile;
305 | };
306 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
307 | isa = XCBuildConfiguration;
308 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | CLANG_ENABLE_MODULES = YES;
312 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
313 | ENABLE_BITCODE = NO;
314 | FRAMEWORK_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "$(PROJECT_DIR)/Flutter",
317 | );
318 | INFOPLIST_FILE = Runner/Info.plist;
319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
320 | LIBRARY_SEARCH_PATHS = (
321 | "$(inherited)",
322 | "$(PROJECT_DIR)/Flutter",
323 | );
324 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskApp;
325 | PRODUCT_NAME = "$(TARGET_NAME)";
326 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
327 | SWIFT_VERSION = 4.0;
328 | VERSIONING_SYSTEM = "apple-generic";
329 | };
330 | name = Profile;
331 | };
332 | 97C147031CF9000F007C117D /* Debug */ = {
333 | isa = XCBuildConfiguration;
334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
335 | buildSettings = {
336 | ALWAYS_SEARCH_USER_PATHS = NO;
337 | CLANG_ANALYZER_NONNULL = YES;
338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
339 | CLANG_CXX_LIBRARY = "libc++";
340 | CLANG_ENABLE_MODULES = YES;
341 | CLANG_ENABLE_OBJC_ARC = YES;
342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_COMMA = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
348 | CLANG_WARN_EMPTY_BODY = YES;
349 | CLANG_WARN_ENUM_CONVERSION = YES;
350 | CLANG_WARN_INFINITE_RECURSION = YES;
351 | CLANG_WARN_INT_CONVERSION = YES;
352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
357 | CLANG_WARN_STRICT_PROTOTYPES = YES;
358 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
359 | CLANG_WARN_UNREACHABLE_CODE = YES;
360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
362 | COPY_PHASE_STRIP = NO;
363 | DEBUG_INFORMATION_FORMAT = dwarf;
364 | ENABLE_STRICT_OBJC_MSGSEND = YES;
365 | ENABLE_TESTABILITY = YES;
366 | GCC_C_LANGUAGE_STANDARD = gnu99;
367 | GCC_DYNAMIC_NO_PIC = NO;
368 | GCC_NO_COMMON_BLOCKS = YES;
369 | GCC_OPTIMIZATION_LEVEL = 0;
370 | GCC_PREPROCESSOR_DEFINITIONS = (
371 | "DEBUG=1",
372 | "$(inherited)",
373 | );
374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
376 | GCC_WARN_UNDECLARED_SELECTOR = YES;
377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378 | GCC_WARN_UNUSED_FUNCTION = YES;
379 | GCC_WARN_UNUSED_VARIABLE = YES;
380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
381 | MTL_ENABLE_DEBUG_INFO = YES;
382 | ONLY_ACTIVE_ARCH = YES;
383 | SDKROOT = iphoneos;
384 | TARGETED_DEVICE_FAMILY = "1,2";
385 | };
386 | name = Debug;
387 | };
388 | 97C147041CF9000F007C117D /* Release */ = {
389 | isa = XCBuildConfiguration;
390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
391 | buildSettings = {
392 | ALWAYS_SEARCH_USER_PATHS = NO;
393 | CLANG_ANALYZER_NONNULL = YES;
394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
395 | CLANG_CXX_LIBRARY = "libc++";
396 | CLANG_ENABLE_MODULES = YES;
397 | CLANG_ENABLE_OBJC_ARC = YES;
398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
399 | CLANG_WARN_BOOL_CONVERSION = YES;
400 | CLANG_WARN_COMMA = YES;
401 | CLANG_WARN_CONSTANT_CONVERSION = YES;
402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
404 | CLANG_WARN_EMPTY_BODY = YES;
405 | CLANG_WARN_ENUM_CONVERSION = YES;
406 | CLANG_WARN_INFINITE_RECURSION = YES;
407 | CLANG_WARN_INT_CONVERSION = YES;
408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = 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 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | VALIDATE_PRODUCT = YES;
436 | };
437 | name = Release;
438 | };
439 | 97C147061CF9000F007C117D /* Debug */ = {
440 | isa = XCBuildConfiguration;
441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
442 | buildSettings = {
443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444 | CLANG_ENABLE_MODULES = YES;
445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
446 | ENABLE_BITCODE = NO;
447 | FRAMEWORK_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | INFOPLIST_FILE = Runner/Info.plist;
452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
453 | LIBRARY_SEARCH_PATHS = (
454 | "$(inherited)",
455 | "$(PROJECT_DIR)/Flutter",
456 | );
457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskApp;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461 | SWIFT_VERSION = 4.0;
462 | VERSIONING_SYSTEM = "apple-generic";
463 | };
464 | name = Debug;
465 | };
466 | 97C147071CF9000F007C117D /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
469 | buildSettings = {
470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
471 | CLANG_ENABLE_MODULES = YES;
472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
473 | ENABLE_BITCODE = NO;
474 | FRAMEWORK_SEARCH_PATHS = (
475 | "$(inherited)",
476 | "$(PROJECT_DIR)/Flutter",
477 | );
478 | INFOPLIST_FILE = Runner/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
480 | LIBRARY_SEARCH_PATHS = (
481 | "$(inherited)",
482 | "$(PROJECT_DIR)/Flutter",
483 | );
484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskApp;
485 | PRODUCT_NAME = "$(TARGET_NAME)";
486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
487 | SWIFT_VERSION = 4.0;
488 | VERSIONING_SYSTEM = "apple-generic";
489 | };
490 | name = Release;
491 | };
492 | /* End XCBuildConfiguration section */
493 |
494 | /* Begin XCConfigurationList section */
495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
496 | isa = XCConfigurationList;
497 | buildConfigurations = (
498 | 97C147031CF9000F007C117D /* Debug */,
499 | 97C147041CF9000F007C117D /* Release */,
500 | 249021D3217E4FDB00AE95B9 /* Profile */,
501 | );
502 | defaultConfigurationIsVisible = 0;
503 | defaultConfigurationName = Release;
504 | };
505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
506 | isa = XCConfigurationList;
507 | buildConfigurations = (
508 | 97C147061CF9000F007C117D /* Debug */,
509 | 97C147071CF9000F007C117D /* Release */,
510 | 249021D4217E4FDB00AE95B9 /* Profile */,
511 | );
512 | defaultConfigurationIsVisible = 0;
513 | defaultConfigurationName = Release;
514 | };
515 | /* End XCConfigurationList section */
516 |
517 | };
518 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
519 | }
520 |
--------------------------------------------------------------------------------