├── 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 └── logo.png ├── screenshots ├── login.png ├── home-page.png ├── onboarding.png ├── register.png ├── reset-password.png ├── github-social-image.jpeg └── bottom-expandable-appbar.gif ├── 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 │ │ │ │ │ └── popupbits │ │ │ │ │ └── khalticlone │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── lib ├── res │ ├── typography.dart │ ├── colors.dart │ └── constants.dart ├── model │ ├── introitem.dart │ └── home_menu_item.dart ├── ui │ ├── widgets │ │ ├── slide_right_route.dart │ │ └── bottom_expandable_app_bar │ │ │ ├── controller.dart │ │ │ └── bottom_expandable_app_bar.dart │ └── pages │ │ ├── payment.dart │ │ ├── auth │ │ ├── recover.dart │ │ ├── register.dart │ │ └── login.dart │ │ ├── menu_page.dart │ │ ├── intro.dart │ │ └── home.dart └── main.dart ├── .metadata ├── pubspec.yaml ├── test └── widget_test.dart ├── README.md ├── .gitignore └── pubspec.lock /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/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/assets/logo.png -------------------------------------------------------------------------------- /screenshots/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/login.png -------------------------------------------------------------------------------- /screenshots/home-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/home-page.png -------------------------------------------------------------------------------- /screenshots/onboarding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/onboarding.png -------------------------------------------------------------------------------- /screenshots/register.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/register.png -------------------------------------------------------------------------------- /screenshots/reset-password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/reset-password.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /screenshots/github-social-image.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/github-social-image.jpeg -------------------------------------------------------------------------------- /screenshots/bottom-expandable-appbar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/screenshots/bottom-expandable-appbar.gif -------------------------------------------------------------------------------- /lib/res/typography.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const TextStyle smallText = const TextStyle( 4 | fontSize: 12.0 5 | ); -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /lib/model/introitem.dart: -------------------------------------------------------------------------------- 1 | class IntroItem{ 2 | final String title; 3 | final String subtitle; 4 | final String image; 5 | 6 | IntroItem({this.title, this.subtitle, this.image}); 7 | 8 | } -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lohanidamodar/khalticlone/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/lohanidamodar/khalticlone/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 | -------------------------------------------------------------------------------- /lib/model/home_menu_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class HomeMenuItem { 4 | final IconData icon; 5 | final String title; 6 | final String subtitle; 7 | 8 | HomeMenuItem(this.title, this.icon, {this.subtitle}); 9 | 10 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/res/colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | const Color primary = Color(0xff5C2B90); 3 | const Color accent = Color(0xffF8A417); 4 | const Color mainBg = Color(0xff452650); 5 | final List introBackground = [ 6 | Color(0xff452650), 7 | Color(0xff009688), 8 | Color(0xff3F51B5) 9 | ]; -------------------------------------------------------------------------------- /.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: b712a172f9694745f50505c93340883493b505e5 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/popupbits/khalticlone/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.popupbits.khalticlone 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: [UIApplicationLaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: khalticlone 2 | description: A new Flutter project. 3 | version: 1.0.0+1 4 | 5 | environment: 6 | sdk: ">=2.2.2 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | cupertino_icons: ^0.1.2 12 | flutter_swiper: ^1.1.6 13 | flutter_khalti: ^0.2.0 14 | font_awesome_flutter: ^8.4.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | 20 | flutter: 21 | uses-material-design: true 22 | 23 | assets: 24 | - assets/ -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/ui/widgets/slide_right_route.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SlideRightRoute extends PageRouteBuilder { 4 | final Widget widget; 5 | SlideRightRoute({this.widget}) 6 | : super( 7 | pageBuilder: (BuildContext context, Animation animation, 8 | Animation secondaryAnimation) { 9 | return widget; 10 | }, 11 | transitionsBuilder: (BuildContext context, 12 | Animation animation, 13 | Animation secondaryAnimation, 14 | Widget child) { 15 | return new SlideTransition( 16 | position: new Tween( 17 | begin: const Offset(1.0, 0.0), 18 | end: Offset.zero, 19 | ).animate(animation), 20 | child: child, 21 | ); 22 | }, 23 | ); 24 | } -------------------------------------------------------------------------------- /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:khalticlone/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Khalti Clone (WIP) 2 | A flutter app cloning Khalti Apps UI interactions. 3 | 4 | ## Expandable Bottom App Bar 5 | Implementing the expandable bottom app bar was a challenge, and luckily I found [this](https://github.com/rIIh/expandable-bottom-bar) repository. I just had to make few modifications to make it look and work near about as implemented in original Khalti app. 6 | 7 | ## Home page 8 | Home page had multiple grids, floating app bar and different items, so I had to use `CustomScrollView` with `Slivers` to get the required output. 9 | 10 | ## Implemented Screens 11 | 12 | 13 | ## Getting Started 14 | 15 | This project is a starting point for a Flutter application. 16 | 17 | A few resources to get you started if this is your first Flutter project: 18 | 19 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 20 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 21 | 22 | For help getting started with Flutter, view our 23 | [online documentation](https://flutter.dev/docs), which offers tutorials, 24 | samples, guidance on mobile development, and a full API reference. 25 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:khalticlone/res/colors.dart'; 3 | import 'package:khalticlone/ui/pages/auth/login.dart'; 4 | import 'package:khalticlone/ui/pages/auth/recover.dart'; 5 | import 'package:khalticlone/ui/pages/auth/register.dart'; 6 | import 'package:khalticlone/ui/pages/home.dart'; 7 | import 'package:khalticlone/ui/pages/intro.dart'; 8 | import 'package:khalticlone/ui/pages/payment.dart'; 9 | import 'package:khalticlone/ui/widgets/slide_right_route.dart'; 10 | 11 | void main() => runApp(MyApp()); 12 | 13 | class MyApp extends StatelessWidget { 14 | // This widget is the root of your application. 15 | @override 16 | Widget build(BuildContext context) { 17 | return MaterialApp( 18 | title: 'Khalti', 19 | debugShowCheckedModeBanner: false, 20 | color: primary, 21 | theme: ThemeData(primaryColor: primary, accentColor: accent), 22 | routes: { 23 | "/": (_) => IntroPage(), 24 | "home": (_) => HomePage(), 25 | "payment": (_) => Payment(), 26 | }, 27 | onGenerateRoute: (RouteSettings settings) { 28 | switch(settings.name) { 29 | case "login": 30 | return SlideRightRoute(widget: LoginPage()); 31 | break; 32 | case "recover": 33 | return SlideRightRoute(widget: RecoverPasswordPage()); 34 | break; 35 | case "register": 36 | return SlideRightRoute(widget: RegisterPage()); 37 | break; 38 | default: 39 | return null; 40 | } 41 | }, 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /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 | khalticlone 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/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | 16 | 23 | 27 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /lib/res/constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:khalticlone/model/home_menu_item.dart'; 4 | import 'package:khalticlone/model/introitem.dart'; 5 | const String logo = "assets/logo.png"; 6 | 7 | final List introItems = [ 8 | IntroItem(image: "assets/logo.png",title: "Load Fund", subtitle: "Load funds in your khalti from your Bank account"), 9 | IntroItem(image: "assets/logo.png",title: "Pay on the go", subtitle: "Recharge, make gene service payment bills and much more"), 10 | IntroItem(image: "assets/logo.png",title: "Fund transfer", subtitle: "Request send money to your friends."), 11 | ]; 12 | 13 | final List homeMenuItems = [ 14 | HomeMenuItem("Topup",FontAwesomeIcons.mobileAlt, subtitle: "CASHBACK 2%"), 15 | HomeMenuItem("RC Card",FontAwesomeIcons.addressCard, subtitle: "CASHBACK 2-3%"), 16 | HomeMenuItem("Landline",FontAwesomeIcons.intercom, subtitle: "CASHBACK 2%"), 17 | HomeMenuItem("Electricity",FontAwesomeIcons.idBadge), 18 | HomeMenuItem("Khanepani",FontAwesomeIcons.water), 19 | HomeMenuItem("TV",FontAwesomeIcons.tv, subtitle: "CASHBACK 2%"), 20 | HomeMenuItem("Internet",FontAwesomeIcons.globe, subtitle: "CASHBACK 0.5-5%"), 21 | HomeMenuItem("E-Learning",FontAwesomeIcons.readme, subtitle: "CASHBACK 2%"), 22 | HomeMenuItem("Antivirus",FontAwesomeIcons.shieldAlt, subtitle: "CASHBACK 30%"), 23 | HomeMenuItem("Insurance",FontAwesomeIcons.userShield), 24 | HomeMenuItem("Ride",FontAwesomeIcons.motorcycle, subtitle: "CASHBACK 5%"), 25 | HomeMenuItem("Share",FontAwesomeIcons.shareSquare), 26 | HomeMenuItem("Newspaper",FontAwesomeIcons.newspaper), 27 | HomeMenuItem("Credit Card",FontAwesomeIcons.creditCard), 28 | ]; 29 | final List homeBookingsItems = [ 30 | HomeMenuItem("Flight",FontAwesomeIcons.plane), 31 | HomeMenuItem("Movie",FontAwesomeIcons.ticketAlt, subtitle: "CASHBACK 2%"), 32 | HomeMenuItem("Hotel",FontAwesomeIcons.hotel), 33 | HomeMenuItem("Event",FontAwesomeIcons.calendarCheck) 34 | ]; -------------------------------------------------------------------------------- /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.popupbits.khalticlone" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.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 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /lib/ui/pages/payment.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_khalti/flutter_khalti.dart'; 3 | 4 | class Payment extends StatefulWidget { 5 | @override 6 | _PaymentState createState() => _PaymentState(); 7 | } 8 | 9 | class _PaymentState extends State { 10 | double amount; 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: Text('Payment'), 16 | ), 17 | body: Container( 18 | child: Column( 19 | children: [ 20 | SizedBox(height: 20), 21 | Container( 22 | margin: EdgeInsets.all(20), 23 | child: TextField( 24 | onChanged: (val) { 25 | setState(() { 26 | amount = double.parse(val); 27 | }); 28 | }, 29 | decoration: InputDecoration(hintText: 'Amount'), 30 | keyboardType: TextInputType.number, 31 | ), 32 | ), 33 | SizedBox(height: 20), 34 | RaisedButton( 35 | onPressed: () { 36 | FlutterKhalti( 37 | urlSchemeIOS: "KhaltiPayFlutterExampleScheme", 38 | publicKey: "test_public_key_eacadfb91994475d8bebfa577b0bca68", 39 | productId: "1233", 40 | productName: "Test 2", 41 | amount: amount, 42 | customData: { 43 | "test": "custom", 44 | }, 45 | ).initPayment( 46 | onSuccess: (data) { 47 | print("success"); 48 | print(data); 49 | }, 50 | onError: (error) { 51 | print("error"); 52 | print(error); 53 | }, 54 | ); 55 | }, 56 | child: Text('Pay', 57 | style: TextStyle( 58 | color: Colors.white, 59 | )), 60 | color: Theme.of(context).primaryColor, 61 | ), 62 | Text( 63 | 'Note: Make sure your device have khalti app', 64 | style: TextStyle(color: Colors.grey), 65 | ) 66 | ], 67 | ), 68 | ), 69 | ); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/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/ui/pages/auth/recover.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:khalticlone/res/colors.dart'; 3 | import 'package:khalticlone/res/constants.dart'; 4 | import 'package:khalticlone/res/typography.dart'; 5 | 6 | class RecoverPasswordPage extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context){ 9 | return Scaffold( 10 | backgroundColor: mainBg, 11 | body: Container( 12 | alignment: Alignment.center, 13 | margin: const EdgeInsets.only(top: 10, left: 16.0,right: 16.0, bottom: 10.0), 14 | child: Stack( 15 | children: [ 16 | Container( 17 | margin: const EdgeInsets.only(top: 70), 18 | padding: const EdgeInsets.only(top: 80.0,left: 16.0,right: 16.0), 19 | decoration: BoxDecoration( 20 | borderRadius: BorderRadius.circular(2.0), 21 | color: Colors.white 22 | ), 23 | child: SingleChildScrollView( 24 | child: Column( 25 | children: [ 26 | Text("Recover Password",style: TextStyle( 27 | fontSize: 20.0 28 | ),), 29 | const SizedBox(height: 10.0), 30 | Text("We will send the Confirmation Code through SMS\nPlease type your Mobile number below."), 31 | const SizedBox(height: 20.0), 32 | TextField( 33 | decoration: InputDecoration( 34 | hintText: "Mobile Number" 35 | ), 36 | ), 37 | const SizedBox(height: 20.0), 38 | SizedBox( 39 | width:double.infinity, 40 | child: RaisedButton( 41 | color: Theme.of(context).primaryColor, 42 | textColor: Colors.white, 43 | child: Text("Recover".toUpperCase()), 44 | onPressed: (){}, 45 | ) 46 | ), 47 | const SizedBox(height: 20.0), 48 | Row( 49 | children: [ 50 | Expanded(child: Divider(color: Colors.grey.shade600,)), 51 | const SizedBox(width: 10.0), 52 | Text("Having problems?", style: smallText,), 53 | const SizedBox(width: 10.0), 54 | Expanded(child: Divider(color: Colors.grey.shade600,)), 55 | ], 56 | ), 57 | const SizedBox(height: 20.0), 58 | GestureDetector( 59 | child: Text("Contact Us".toUpperCase(), style: TextStyle( 60 | color: Theme.of(context).primaryColor, 61 | fontWeight: FontWeight.w600 62 | ),), 63 | onTap: (){}, 64 | ), 65 | const SizedBox(height: 20.0), 66 | ], 67 | ), 68 | ), 69 | ), 70 | Container( 71 | margin: const EdgeInsets.only(top: 20.0), 72 | alignment: Alignment.center, 73 | height: 100, 74 | child: Image.asset(logo, fit: BoxFit.contain,)), 75 | ], 76 | ), 77 | ), 78 | ); 79 | } 80 | } -------------------------------------------------------------------------------- /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/ui/widgets/bottom_expandable_app_bar/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class BottomBarController extends ChangeNotifier { 4 | final bool snap; 5 | final double dragLength; 6 | 7 | BottomBarController({ 8 | @required TickerProvider vsync, 9 | this.snap: true, 10 | double dragLength, 11 | }) : _animationController = AnimationController(vsync: vsync), 12 | assert(dragLength == null || dragLength > 0), 13 | dragLength = dragLength; 14 | 15 | @Deprecated("use state instead. Will be removed soon") 16 | Animation get animation => 17 | _animationController?.view ?? kAlwaysCompleteAnimation; 18 | 19 | Animation get state => 20 | _animationController?.view ?? kAlwaysCompleteAnimation; 21 | 22 | final AnimationController _animationController; 23 | 24 | void onDrag(DragUpdateDetails details) { 25 | if (dragLength == null) return; 26 | _animationController.value -= details.primaryDelta / (dragLength); 27 | } 28 | 29 | void onDragEnd(DragEndDetails details) { 30 | if (dragLength == null) return; 31 | double minFlingVelocity = 365.0; 32 | 33 | //let the current animation finish before starting a new one 34 | if (_animationController.isAnimating) return; 35 | 36 | //check if the velocity is sufficient to constitute fling 37 | if (details.velocity.pixelsPerSecond.dy.abs() >= minFlingVelocity) { 38 | double visualVelocity = 39 | -details.velocity.pixelsPerSecond.dy / (dragLength); 40 | 41 | if (snap) { 42 | _animationController.fling(velocity: visualVelocity); 43 | } else { 44 | // actual scroll physics will be implemented in a future release 45 | _animationController.animateTo( 46 | _animationController.value + visualVelocity * 0.16, 47 | duration: Duration(milliseconds: 410), 48 | curve: Curves.decelerate, 49 | ); 50 | } 51 | return; 52 | } 53 | 54 | // check if the controller is already halfway there 55 | if (snap) { 56 | if (_animationController.value > 0.5) 57 | open(); 58 | else 59 | close(); 60 | } 61 | } 62 | 63 | //close the panel 64 | void close() { 65 | _animationController.fling(velocity: -1.0); 66 | } 67 | 68 | void swap() { 69 | if (_animationController.value == 1) 70 | close(); 71 | else if (_animationController.value == 0) open(); 72 | } 73 | 74 | //open the panel 75 | void open() { 76 | _animationController.fling(velocity: 1.0); 77 | } 78 | 79 | bool isOpen() { 80 | return _animationController.value == 1; 81 | } 82 | } 83 | 84 | class DefaultBottomBarController extends StatefulWidget { 85 | final Widget child; 86 | 87 | DefaultBottomBarController({ 88 | Key key, 89 | @required this.child, 90 | }) : super(key: key); 91 | 92 | static BottomBarController of(BuildContext context) { 93 | final _BottomBarControllerScope scope = 94 | context.inheritFromWidgetOfExactType(_BottomBarControllerScope); 95 | return scope?.controller; 96 | } 97 | 98 | @override 99 | _DefaultBottomBarControllerState createState() => 100 | _DefaultBottomBarControllerState(); 101 | } 102 | 103 | class _DefaultBottomBarControllerState extends State 104 | with SingleTickerProviderStateMixin { 105 | BottomBarController _controller; 106 | 107 | @override 108 | void initState() { 109 | super.initState(); 110 | _controller = BottomBarController(vsync: this); 111 | } 112 | 113 | @override 114 | void dispose() { 115 | _controller.dispose(); 116 | super.dispose(); 117 | } 118 | 119 | @override 120 | Widget build(BuildContext context) { 121 | return _BottomBarControllerScope( 122 | controller: _controller, 123 | enabled: TickerMode.of(context), 124 | child: widget.child, 125 | ); 126 | } 127 | } 128 | 129 | class _BottomBarControllerScope extends InheritedWidget { 130 | const _BottomBarControllerScope({ 131 | Key key, 132 | this.controller, 133 | this.enabled, 134 | Widget child, 135 | }) : super(key: key, child: child); 136 | 137 | final BottomBarController controller; 138 | final bool enabled; 139 | 140 | @override 141 | bool updateShouldNotify(_BottomBarControllerScope old) { 142 | return enabled != old.enabled || controller != old.controller; 143 | } 144 | } -------------------------------------------------------------------------------- /lib/ui/pages/menu_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:khalticlone/res/constants.dart'; 4 | 5 | class MenuPage extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context){ 8 | return SingleChildScrollView( 9 | child: Column( 10 | children: [ 11 | Container( 12 | margin: const EdgeInsets.only(top: 50), 13 | height: 170, 14 | color: Theme.of(context).primaryColor, 15 | child: Column( 16 | mainAxisSize: MainAxisSize.min, 17 | crossAxisAlignment: CrossAxisAlignment.start, 18 | children: [ 19 | ListTile( 20 | onTap: (){}, 21 | leading: Stack( 22 | overflow: Overflow.visible, 23 | children: [ 24 | CircleAvatar( 25 | backgroundColor: Colors.white, 26 | child: Image.asset(logo), 27 | ), 28 | Positioned( 29 | bottom: -5, 30 | right: -5, 31 | child: Icon(Icons.remove_circle, color: Colors.red,)) 32 | ], 33 | ), 34 | title: Text("Damodar Lohani",style: TextStyle( 35 | color: Colors.white, 36 | fontWeight: FontWeight.bold, 37 | fontSize: 18.0 38 | ),), 39 | subtitle: Text("981151121", style: TextStyle( 40 | fontSize: 16.0, 41 | color: Colors.white 42 | ),), 43 | trailing: Icon(Icons.keyboard_arrow_right, color: Colors.white,), 44 | ), 45 | Padding( 46 | padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 75.0), 47 | child: Text.rich(TextSpan( 48 | children: [ 49 | TextSpan(text: "Rs "), 50 | TextSpan(text: "0", style: TextStyle( 51 | fontSize: 24.0 52 | )) 53 | ] 54 | ), style: TextStyle(color: Colors.white),), 55 | ), 56 | Padding( 57 | padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 75.0), 58 | child: Text.rich(TextSpan( 59 | children: [ 60 | TextSpan(text: "KP "), 61 | TextSpan(text: "0", style: TextStyle( 62 | fontSize: 20.0 63 | )) 64 | ] 65 | ), style: TextStyle(color: Colors.white),), 66 | ), 67 | ], 68 | ), 69 | ), 70 | ListTile(title: Text("KYC Form"), leading: Icon(Icons.info),), 71 | ListTile(title: Text("My Bookings"), leading: Icon(FontAwesomeIcons.calendarDay),), 72 | ListTile(title: Text("My Purchases"), leading: Icon(FontAwesomeIcons.listOl),), 73 | ListTile(title: Text("Transaction Limits"), leading: Icon(FontAwesomeIcons.chartLine),), 74 | ListTile(title: Text("Coupan"), leading: Icon(Icons.card_giftcard),), 75 | Divider(), 76 | ListTile(title: Text("Play Khalti Quiz"), leading: Icon(FontAwesomeIcons.brain),), 77 | ListTile(title: Text("Khalti Points"), leading: Icon(FontAwesomeIcons.coins),), 78 | Divider(), 79 | ListTile(title: Text("Settings"), leading: Icon(Icons.settings),), 80 | ExpansionTile( 81 | backgroundColor: Colors.grey.shade100, 82 | title: Text("Help & Support"), 83 | leading: Icon(Icons.headset_mic), 84 | children: [ 85 | ListTile(title: Text("FAQ"),), 86 | ListTile(title: Text("Contact Us"),), 87 | ListTile(title: Text("Feedback"),), 88 | ], 89 | ), 90 | ListTile(title: Text("About"), leading: Icon(Icons.info),), 91 | ListTile(title: Text("Logout"), leading: Icon(Icons.exit_to_app),), 92 | Container( 93 | width: double.infinity, 94 | padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 60.0,), 95 | color: Colors.grey.shade200, 96 | child: Text("2.20.00"), 97 | ) 98 | ], 99 | ), 100 | ); 101 | } 102 | } -------------------------------------------------------------------------------- /lib/ui/pages/intro.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_swiper/flutter_swiper.dart'; 3 | import 'package:khalticlone/res/colors.dart'; 4 | import 'package:khalticlone/res/constants.dart'; 5 | 6 | class IntroPage extends StatefulWidget { 7 | @override 8 | _IntroPageState createState() => _IntroPageState(); 9 | } 10 | 11 | class _IntroPageState extends State { 12 | int currentIndex; 13 | final SwiperController _controller = SwiperController(); 14 | 15 | @override 16 | void initState() { 17 | currentIndex = 0; 18 | super.initState(); 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context){ 23 | return Scaffold( 24 | backgroundColor: introBackground[currentIndex], 25 | body: Column( 26 | children: [ 27 | Expanded( 28 | child: Swiper( 29 | controller: _controller, 30 | itemCount: introItems.length, 31 | autoplay: true, 32 | autoplayDelay: 5000, 33 | index: currentIndex, 34 | onIndexChanged: (index){ 35 | setState(() { 36 | currentIndex = index; 37 | }); 38 | }, 39 | itemBuilder: (context,index) => _buildPage(context,index), 40 | pagination: SwiperPagination( 41 | builder: DotSwiperPaginationBuilder( 42 | activeColor: Colors.white, 43 | color: Colors.white, 44 | size: 5.0, 45 | activeSize: 12.0 46 | ) 47 | ), 48 | loop: true, 49 | autoplayDisableOnInteraction: true, 50 | 51 | ), 52 | ), 53 | Row( 54 | children: [ 55 | const SizedBox(width: 20.0), 56 | Expanded( 57 | child: RaisedButton( 58 | child: Text("login".toUpperCase()), 59 | onPressed: (){ 60 | Navigator.pushReplacementNamed(context, "login"); 61 | }, 62 | ), 63 | ), 64 | const SizedBox(width: 20.0), 65 | Expanded( 66 | child: RaisedButton( 67 | child: Text("create account".toUpperCase()), 68 | onPressed: () => Navigator.pushReplacementNamed(context, 'register'), 69 | ), 70 | ), 71 | const SizedBox(width: 20.0), 72 | ], 73 | ), 74 | const SizedBox(height: 20.0), 75 | Row( 76 | children: [ 77 | const SizedBox(width: 10.0), 78 | if(!_isFirstPage()) 79 | IconButton( 80 | color: Colors.white, 81 | icon: Icon(Icons.arrow_back, size: 20.0,), 82 | onPressed: (){ 83 | _controller.previous(); 84 | }, 85 | ), 86 | if(!_isFirstPage()) 87 | Spacer(), 88 | IconButton( 89 | color: Colors.white, 90 | icon: Icon(_isLastPage() ? Icons.check_circle : Icons.close, size: 20.0,), 91 | onPressed: () => Navigator.pushReplacementNamed(context, 'register'), 92 | ), 93 | if(!_isLastPage()) 94 | Spacer(), 95 | if(!_isLastPage()) 96 | IconButton( 97 | color: Colors.white, 98 | icon: Icon(Icons.arrow_forward, size: 20.0,), 99 | onPressed: (){ 100 | _controller.next(); 101 | }, 102 | ), 103 | ], 104 | ), 105 | const SizedBox(height: 20.0), 106 | ], 107 | ), 108 | ); 109 | } 110 | bool _isLastPage() => currentIndex == introItems.length - 1; 111 | bool _isFirstPage() => currentIndex == 0; 112 | Widget _buildPage(BuildContext context, int index) { 113 | return Padding( 114 | padding: const EdgeInsets.all(16.0), 115 | child: Column( 116 | children: [ 117 | const SizedBox(height: 60.0), 118 | Text(introItems[index].title, style: TextStyle( 119 | color: Colors.white, 120 | fontSize: 30.0, 121 | fontWeight: FontWeight.bold 122 | ),), 123 | const SizedBox(height: 20.0), 124 | Text(introItems[index].subtitle,textAlign: TextAlign.center,style: TextStyle( 125 | color: Colors.white, 126 | fontSize: 18.0 127 | ),), 128 | const SizedBox(height: 20.0), 129 | Expanded( 130 | child: Container( 131 | 132 | child: Image.asset(introItems[index].image, fit: BoxFit.contain,)), 133 | ), 134 | const SizedBox(height: 20.0), 135 | //image 136 | ], 137 | ), 138 | ); 139 | } 140 | } -------------------------------------------------------------------------------- /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.2.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_khalti: 45 | dependency: "direct main" 46 | description: 47 | name: flutter_khalti 48 | url: "https://pub.dartlang.org" 49 | source: hosted 50 | version: "0.2.0" 51 | flutter_page_indicator: 52 | dependency: transitive 53 | description: 54 | name: flutter_page_indicator 55 | url: "https://pub.dartlang.org" 56 | source: hosted 57 | version: "0.0.3" 58 | flutter_swiper: 59 | dependency: "direct main" 60 | description: 61 | name: flutter_swiper 62 | url: "https://pub.dartlang.org" 63 | source: hosted 64 | version: "1.1.6" 65 | flutter_test: 66 | dependency: "direct dev" 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | font_awesome_flutter: 71 | dependency: "direct main" 72 | description: 73 | name: font_awesome_flutter 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "8.4.0" 77 | matcher: 78 | dependency: transitive 79 | description: 80 | name: matcher 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.12.5" 84 | meta: 85 | dependency: transitive 86 | description: 87 | name: meta 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.1.6" 91 | path: 92 | dependency: transitive 93 | description: 94 | name: path 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.6.2" 98 | pedantic: 99 | dependency: transitive 100 | description: 101 | name: pedantic 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.8.0+1" 105 | quiver: 106 | dependency: transitive 107 | description: 108 | name: quiver 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "2.0.3" 112 | sky_engine: 113 | dependency: transitive 114 | description: flutter 115 | source: sdk 116 | version: "0.0.99" 117 | source_span: 118 | dependency: transitive 119 | description: 120 | name: source_span 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.5.5" 124 | stack_trace: 125 | dependency: transitive 126 | description: 127 | name: stack_trace 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.9.3" 131 | stream_channel: 132 | dependency: transitive 133 | description: 134 | name: stream_channel 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "2.0.0" 138 | string_scanner: 139 | dependency: transitive 140 | description: 141 | name: string_scanner 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.0.4" 145 | term_glyph: 146 | dependency: transitive 147 | description: 148 | name: term_glyph 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.1.0" 152 | test_api: 153 | dependency: transitive 154 | description: 155 | name: test_api 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "0.2.5" 159 | transformer_page_view: 160 | dependency: transitive 161 | description: 162 | name: transformer_page_view 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "0.1.6" 166 | typed_data: 167 | dependency: transitive 168 | description: 169 | name: typed_data 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.1.6" 173 | vector_math: 174 | dependency: transitive 175 | description: 176 | name: vector_math 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "2.0.8" 180 | sdks: 181 | dart: ">=2.2.2 <3.0.0" 182 | flutter: ">=0.1.4 <3.0.0" 183 | -------------------------------------------------------------------------------- /lib/ui/pages/auth/register.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:khalticlone/res/colors.dart'; 3 | import 'package:khalticlone/res/typography.dart'; 4 | 5 | class RegisterPage extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context){ 8 | return Scaffold( 9 | backgroundColor: mainBg, 10 | body: Container( 11 | margin: const EdgeInsets.fromLTRB(16.0,40.0,16.0,16.0), 12 | decoration: BoxDecoration( 13 | borderRadius: BorderRadius.circular(2.0), 14 | color: Colors.white 15 | ), 16 | child: SingleChildScrollView( 17 | padding: const EdgeInsets.all(16.0), 18 | child: Column( 19 | crossAxisAlignment: CrossAxisAlignment.start, 20 | children: [ 21 | Text("Full Name", style: smallText,), 22 | _buildTextField(), 23 | const SizedBox(height: 20.0), 24 | Text("Mobile Number", style: smallText,), 25 | _buildTextField(), 26 | const SizedBox(height: 20.0), 27 | Text("Email (Optional)", style: smallText,), 28 | _buildTextField(), 29 | const SizedBox(height: 20.0), 30 | Text("Date Type", style: smallText,), 31 | Row( 32 | children: [ 33 | Radio( 34 | groupValue: "AD", 35 | value: "AD", 36 | onChanged: (value){}, 37 | ), 38 | Text("AD"), 39 | Spacer(), 40 | Radio( 41 | groupValue: "AD", 42 | value: "BS", 43 | onChanged: (value){}, 44 | ), 45 | Text("BS"), 46 | Spacer(), 47 | ], 48 | ), 49 | const SizedBox(height: 10.0), 50 | Text("Date of Birth (YYYY-MM-DD)", style: smallText,), 51 | _buildTextField(), 52 | const SizedBox(height: 20.0), 53 | Text("Date Type", style: smallText,), 54 | Row( 55 | children: [ 56 | Radio( 57 | groupValue: "Male", 58 | value: "Male", 59 | onChanged: (value){}, 60 | ), 61 | Text("Male"), 62 | Spacer(), 63 | Radio( 64 | groupValue: "Male", 65 | value: "Female", 66 | onChanged: (value){}, 67 | ), 68 | Text("Female"), 69 | Spacer(), 70 | Radio( 71 | groupValue: "Male", 72 | value: "Other", 73 | onChanged: (value){}, 74 | ), 75 | Text("Other"), 76 | Spacer(), 77 | 78 | ], 79 | ), 80 | const SizedBox(height: 10.0), 81 | 82 | Text("Password", style: smallText,), 83 | _buildTextField(obscureText: true), 84 | const SizedBox(height: 20.0), 85 | Text("Confirm Password", style: smallText,), 86 | _buildTextField(obscureText: true), 87 | const SizedBox(height: 20.0), 88 | Text("By signing up you agree to the Terms & Conditions", style: smallText,), 89 | const SizedBox(height: 10.0), 90 | SizedBox( 91 | width:double.infinity, 92 | child: RaisedButton( 93 | color: Theme.of(context).primaryColor, 94 | textColor: Colors.white, 95 | child: Text("Sign Up".toUpperCase()), 96 | onPressed: (){}, 97 | ) 98 | ), 99 | const SizedBox(height: 10.0), 100 | Row( 101 | children: [ 102 | Expanded(child: Divider(color: Colors.grey.shade600,)), 103 | const SizedBox(width: 10.0), 104 | Text("Already have an account?",style: smallText,), 105 | const SizedBox(width: 10.0), 106 | Expanded(child: Divider(color: Colors.grey.shade600,)), 107 | ], 108 | ), 109 | const SizedBox(height: 20.0), 110 | GestureDetector( 111 | child: SizedBox( 112 | width: double.infinity, 113 | child: Text("Login".toUpperCase(), textAlign: TextAlign.center, style: TextStyle( 114 | color: Theme.of(context).primaryColor, 115 | fontWeight: FontWeight.w600 116 | ),), 117 | ), 118 | onTap: ()=>Navigator.pushNamedAndRemoveUntil(context,'login',(Route route) => false), 119 | ), 120 | const SizedBox(height: 20.0), 121 | ], 122 | ), 123 | ), 124 | ), 125 | ); 126 | } 127 | 128 | TextField _buildTextField({bool obscureText = false}) { 129 | return TextField( 130 | obscureText: obscureText, 131 | ); 132 | } 133 | } -------------------------------------------------------------------------------- /lib/ui/pages/auth/login.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:khalticlone/res/colors.dart'; 3 | import 'package:khalticlone/res/constants.dart'; 4 | import 'package:khalticlone/res/typography.dart'; 5 | 6 | class LoginPage extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return Scaffold( 10 | backgroundColor: mainBg, 11 | body: Container( 12 | alignment: Alignment.center, 13 | margin: const EdgeInsets.only( 14 | top: 10, left: 16.0, right: 16.0, bottom: 10.0), 15 | child: Stack( 16 | children: [ 17 | Container( 18 | margin: const EdgeInsets.only(top: 70), 19 | padding: 20 | const EdgeInsets.only(top: 80.0, left: 16.0, right: 16.0), 21 | decoration: BoxDecoration( 22 | borderRadius: BorderRadius.circular(2.0), 23 | color: Colors.white), 24 | child: SingleChildScrollView( 25 | child: Column( 26 | children: [ 27 | Row( 28 | children: [ 29 | Icon(Icons.perm_contact_calendar), 30 | const SizedBox(width: 10.0), 31 | Expanded( 32 | child: TextField( 33 | decoration: 34 | InputDecoration(hintText: "Mobile or Email"), 35 | ), 36 | ), 37 | ], 38 | ), 39 | const SizedBox(height: 20.0), 40 | Row( 41 | children: [ 42 | Icon(Icons.lock), 43 | const SizedBox(width: 10.0), 44 | Expanded( 45 | child: TextField( 46 | obscureText: true, 47 | decoration: InputDecoration( 48 | hintText: "Password", 49 | suffixIcon: GestureDetector( 50 | child: Icon(Icons.remove_red_eye), 51 | onTap: () {}, 52 | )), 53 | ), 54 | ), 55 | ], 56 | ), 57 | const SizedBox(height: 30.0), 58 | Container( 59 | margin: const EdgeInsets.symmetric(horizontal: 16.0), 60 | width:double.infinity, 61 | child: RaisedButton( 62 | color: Theme.of(context).primaryColor, 63 | textColor: Colors.white, 64 | child: Text("Login".toUpperCase()), 65 | onPressed: () => Navigator.pushReplacementNamed(context, 'home'), 66 | ) 67 | ), 68 | const SizedBox(height: 20.0), 69 | GestureDetector( 70 | child: Text( 71 | "Forgot Password".toUpperCase(), 72 | style: TextStyle( 73 | color: Theme.of(context).primaryColor, 74 | fontWeight: FontWeight.w600), 75 | ), 76 | onTap: () { 77 | Navigator.pushNamed(context, 'recover'); 78 | }, 79 | ), 80 | const SizedBox(height: 20.0), 81 | Row( 82 | children: [ 83 | Expanded( 84 | child: Divider( 85 | color: Colors.grey.shade600, 86 | )), 87 | const SizedBox(width: 10.0), 88 | Text( 89 | "Not a member?", 90 | style: smallText, 91 | ), 92 | const SizedBox(width: 10.0), 93 | Expanded( 94 | child: Divider( 95 | color: Colors.grey.shade600, 96 | )), 97 | ], 98 | ), 99 | const SizedBox(height: 20.0), 100 | GestureDetector( 101 | child: Text( 102 | "Create Account".toUpperCase(), 103 | style: TextStyle( 104 | color: Theme.of(context).primaryColor, 105 | fontWeight: FontWeight.w600), 106 | ), 107 | onTap: () { 108 | Navigator.pushNamed(context, 'register'); 109 | }, 110 | ), 111 | const SizedBox(height: 20.0), 112 | ], 113 | ), 114 | ), 115 | ), 116 | Container( 117 | margin: const EdgeInsets.only(top: 20.0), 118 | alignment: Alignment.center, 119 | height: 100, 120 | child: Image.asset( 121 | logo, 122 | fit: BoxFit.contain, 123 | )), 124 | ], 125 | ), 126 | ), 127 | ); 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /lib/ui/widgets/bottom_expandable_app_bar/bottom_expandable_app_bar.dart: -------------------------------------------------------------------------------- 1 | import './controller.dart'; 2 | import 'package:flutter/foundation.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | enum Side { Top, Bottom } 6 | 7 | class BottomExpandableAppBar extends StatefulWidget { 8 | final Widget expandedBody; 9 | final double expandedHeight; 10 | final Widget bottomAppBarBody; 11 | final BottomBarController controller; 12 | final Side attachSide; 13 | 14 | final double appBarHeight; 15 | // TODO: Get max available height 16 | final bool useMax; 17 | 18 | final BoxConstraints constraints; 19 | 20 | final NotchedShape shape; 21 | final Color expandedBackColor; 22 | final Color bottomAppBarColor; 23 | final double horizontalMargin; 24 | final double bottomOffset; 25 | 26 | final Decoration expandedDecoration; 27 | final Decoration appBarDecoration; 28 | 29 | BottomExpandableAppBar({ 30 | Key key, 31 | this.expandedBody, 32 | this.horizontalMargin: 16, 33 | this.bottomOffset: 10, 34 | this.shape, 35 | this.expandedHeight: 150, 36 | this.appBarHeight: 50, 37 | this.attachSide: Side.Bottom, 38 | this.constraints, 39 | this.bottomAppBarColor, 40 | this.appBarDecoration, 41 | this.bottomAppBarBody, 42 | this.expandedBackColor, 43 | this.expandedDecoration, 44 | this.controller, 45 | this.useMax: false, 46 | }) : assert(!(expandedBackColor != null && expandedDecoration != null)), 47 | super(key: key); 48 | 49 | @override 50 | _BottomExpandableAppBarState createState() => _BottomExpandableAppBarState(); 51 | } 52 | 53 | class _BottomExpandableAppBarState extends State { 54 | BottomBarController _controller; 55 | double panelState; 56 | 57 | void _handleBottomBarControllerAnimationTick() { 58 | if (_controller.state.value == panelState) return; 59 | panelState = _controller.state.value; 60 | setState(() {}); 61 | } 62 | 63 | @override 64 | void didChangeDependencies() { 65 | super.didChangeDependencies(); 66 | _updateBarController(); 67 | panelState = _controller?.state?.value ?? panelState; 68 | } 69 | 70 | @override 71 | void didUpdateWidget(BottomExpandableAppBar oldWidget) { 72 | super.didUpdateWidget(oldWidget); 73 | if (widget.controller != oldWidget.controller) _updateBarController(); 74 | } 75 | 76 | @override 77 | void dispose() { 78 | if (_controller != null) 79 | _controller.state 80 | .removeListener(_handleBottomBarControllerAnimationTick); 81 | // We don't own the _controller Animation, so it's not disposed here. 82 | super.dispose(); 83 | } 84 | 85 | void _updateBarController() { 86 | final BottomBarController newController = 87 | widget.controller ?? DefaultBottomBarController.of(context); 88 | assert(() { 89 | if (newController == null) { 90 | throw FlutterError('No BottomBarController for ${widget.runtimeType}.\n' 91 | 'When creating a ${widget.runtimeType}, you must either provide an explicit ' 92 | 'BottomBarController using the "controller" property, or you must ensure that there ' 93 | 'is a DefaultBottomBarController above the ${widget.runtimeType}.\n' 94 | 'In this case, there was neither an explicit controller nor a default controller.'); 95 | } 96 | return true; 97 | }()); 98 | 99 | if (newController == _controller) return; 100 | 101 | if (_controller != null) { 102 | _controller.state 103 | .removeListener(_handleBottomBarControllerAnimationTick); 104 | } 105 | _controller = newController; 106 | if (_controller != null) { 107 | _controller.state 108 | .addListener(_handleBottomBarControllerAnimationTick); 109 | } 110 | } 111 | 112 | @override 113 | Widget build(BuildContext context) { 114 | final finalHeight = (widget.useMax && widget.constraints != null) 115 | ? widget.constraints.biggest.height 116 | : widget.expandedHeight; 117 | 118 | return BottomAppBar( 119 | color: Colors.transparent, 120 | elevation: 0, 121 | child: Stack( 122 | //TODO: Find out how to get top app bar overlap body content of scaffold 123 | alignment: widget.attachSide == Side.Bottom 124 | ? Alignment.bottomCenter 125 | : Alignment.topCenter, 126 | children: [ 127 | Padding( 128 | padding: 129 | EdgeInsets.symmetric(horizontal: widget.horizontalMargin ?? 0), 130 | child: Stack( 131 | children: [ 132 | Container( 133 | height: panelState * finalHeight + 134 | widget.appBarHeight + 135 | widget.bottomOffset, 136 | decoration: widget.expandedDecoration ?? 137 | BoxDecoration( 138 | color: widget.expandedBackColor ?? 139 | Theme.of(context).backgroundColor, 140 | borderRadius: BorderRadius.circular(25), 141 | ), 142 | child: Opacity( 143 | opacity: panelState > 0.25 ? 1 : panelState * 4, 144 | child: widget.expandedBody), 145 | ), 146 | ], 147 | ), 148 | ), 149 | Container( 150 | color: widget.bottomAppBarColor ?? 151 | Theme.of(context).bottomAppBarColor, 152 | height: widget.appBarHeight, 153 | child: widget.bottomAppBarBody, 154 | ), 155 | ], 156 | ), 157 | ); 158 | } 159 | } 160 | 161 | //Copied from flutter sdk 162 | class _BottomAppBarClipper extends CustomClipper { 163 | const _BottomAppBarClipper( 164 | {@required this.geometry, 165 | @required this.shape, 166 | @required this.notchMargin, 167 | @required this.buttonOffset}) 168 | : assert(geometry != null), 169 | assert(shape != null), 170 | assert(notchMargin != null), 171 | super(reclip: geometry); 172 | 173 | final ValueListenable geometry; 174 | final NotchedShape shape; 175 | final double notchMargin; 176 | final double buttonOffset; 177 | 178 | @override 179 | Path getClip(Size size) { 180 | // button is the floating action button's bounding rectangle in the 181 | // coordinate system whose origin is at the appBar's top left corner, 182 | // or null if there is no floating action button. 183 | final Rect button = geometry.value.floatingActionButtonArea?.translate( 184 | 0.0, 185 | geometry.value.bottomNavigationBarTop * -1.0 - buttonOffset, 186 | ); 187 | return shape.getOuterPath( 188 | Offset(0, 0) & size, button?.inflate(notchMargin)); 189 | } 190 | 191 | @override 192 | bool shouldReclip(_BottomAppBarClipper oldClipper) { 193 | return oldClipper.geometry != geometry || 194 | oldClipper.shape != shape || 195 | oldClipper.notchMargin != notchMargin; 196 | } 197 | } -------------------------------------------------------------------------------- /lib/ui/pages/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:khalticlone/model/home_menu_item.dart'; 4 | import 'package:khalticlone/res/constants.dart'; 5 | import 'package:khalticlone/res/typography.dart'; 6 | import 'package:khalticlone/ui/pages/menu_page.dart'; 7 | import 'package:khalticlone/ui/widgets/bottom_expandable_app_bar/bottom_expandable_app_bar.dart'; 8 | import 'package:khalticlone/ui/widgets/bottom_expandable_app_bar/controller.dart'; 9 | 10 | class HomePage extends StatefulWidget { 11 | @override 12 | _HomePageState createState() => _HomePageState(); 13 | } 14 | 15 | class _HomePageState extends State with SingleTickerProviderStateMixin { 16 | BottomBarController controller; 17 | 18 | @override 19 | void initState() { 20 | super.initState(); 21 | controller = BottomBarController(vsync: this, dragLength: 550, snap: true); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context){ 26 | return Scaffold( 27 | body: CustomScrollView( 28 | slivers: [ 29 | SliverAppBar( 30 | floating: true, 31 | title: Text("Khalti"), 32 | bottom: PreferredSize( 33 | child: _buildHeader(), 34 | preferredSize: const Size.fromHeight(90), 35 | ), 36 | actions: [ 37 | IconButton( 38 | icon: Icon(Icons.notifications), 39 | onPressed: (){}, 40 | ) 41 | ], 42 | ), 43 | _buildHeading("Utility Payments"), 44 | _buildUtilityPaymentsGrid(), 45 | _buildDivider(), 46 | _buildHeading("Bookings"), 47 | _buildBookingsGrid(), 48 | _buildDivider(height: 8.0), 49 | ], 50 | ), 51 | bottomNavigationBar: GestureDetector( 52 | onVerticalDragUpdate: controller.onDrag, 53 | onVerticalDragEnd: controller.onDragEnd, 54 | child: _buildBottomBar(context), 55 | ), 56 | ); 57 | } 58 | 59 | SliverPadding _buildBookingsGrid() { 60 | return SliverPadding( 61 | padding: const EdgeInsets.all(16.0), 62 | sliver: SliverGrid( 63 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 64 | crossAxisCount: 4, 65 | crossAxisSpacing: 16.0, 66 | mainAxisSpacing: 16.0 67 | ), 68 | delegate: SliverChildBuilderDelegate((_,index){ 69 | HomeMenuItem item = homeBookingsItems[index]; 70 | return _buildMenuItem(icon: item.icon, label: item.title,subtitle: item.subtitle ); 71 | },childCount: homeBookingsItems.length), 72 | ), 73 | ); 74 | } 75 | 76 | SliverPadding _buildUtilityPaymentsGrid() { 77 | return SliverPadding( 78 | padding: const EdgeInsets.all(16.0), 79 | sliver: SliverGrid( 80 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 81 | crossAxisCount: 4, 82 | crossAxisSpacing: 16.0, 83 | mainAxisSpacing: 16.0 84 | ), 85 | delegate: SliverChildBuilderDelegate((_,index){ 86 | HomeMenuItem item = homeMenuItems[index]; 87 | return _buildMenuItem(icon: item.icon, label: item.title,subtitle: item.subtitle ); 88 | },childCount: homeMenuItems.length), 89 | ), 90 | ); 91 | } 92 | 93 | BottomExpandableAppBar _buildBottomBar(BuildContext context) { 94 | return BottomExpandableAppBar( 95 | attachSide: Side.Top, 96 | controller: controller, 97 | expandedHeight: MediaQuery.of(context).size.height - 75, 98 | horizontalMargin: 0, 99 | appBarHeight: 50, 100 | bottomOffset: 0, 101 | expandedBackColor: Colors.white, 102 | expandedBody: MenuPage(), 103 | bottomAppBarColor: Colors.grey.shade200, 104 | bottomAppBarBody: Row( 105 | mainAxisSize: MainAxisSize.max, 106 | children: [ 107 | Expanded( 108 | child: _buildBottomMenuItem( 109 | icon: Icon(Icons.home), 110 | label: "Home", 111 | onTap: (){} 112 | ), 113 | ), 114 | Expanded( 115 | child: _buildBottomMenuItem( 116 | icon: Icon(Icons.card_giftcard), 117 | label: "Bazaar", 118 | onTap: (){} 119 | ), 120 | ), 121 | Expanded( 122 | child: _buildBottomMenuItem( 123 | icon: Icon(Icons.list), 124 | label: "Transactions", 125 | onTap: (){} 126 | ), 127 | ), 128 | Expanded( 129 | child: _buildBottomMenuItem( 130 | icon: Icon(Icons.more_horiz), 131 | label: "More", 132 | onTap: () => controller.open() 133 | ), 134 | ), 135 | ], 136 | ), 137 | ); 138 | } 139 | 140 | MaterialButton _buildBottomMenuItem({Widget icon, String label, Function onTap}) { 141 | return MaterialButton( 142 | height: 30, 143 | child: Column( 144 | mainAxisAlignment: MainAxisAlignment.center, 145 | children: [ 146 | icon, 147 | Text(label, style: TextStyle( 148 | fontSize: 9 149 | ),) 150 | ], 151 | ), 152 | onPressed: onTap, 153 | ); 154 | } 155 | 156 | Widget _buildHeading(String title) { 157 | return SliverPadding( 158 | padding: const EdgeInsets.all(16.0), 159 | sliver: SliverToBoxAdapter( 160 | child: Container( 161 | child: Text(title, style: TextStyle( 162 | color: Colors.black, 163 | fontWeight: FontWeight.w600 164 | ),), 165 | ), 166 | ), 167 | ); 168 | } 169 | 170 | Widget _buildDivider({Color color, double height = 4.0}) { 171 | if(color == null ) color = Colors.deepPurple.shade100; 172 | return SliverToBoxAdapter( 173 | child: Container( 174 | height: height, 175 | color: color, 176 | ), 177 | ); 178 | } 179 | 180 | Container _buildHeader() { 181 | return Container( 182 | height: 100.0, 183 | width: double.infinity, 184 | color: Colors.deepPurple.shade200, 185 | child: Row( 186 | mainAxisAlignment: MainAxisAlignment.center, 187 | children: [ 188 | Spacer(), 189 | _buildHeaderItem(icon: FontAwesomeIcons.wallet, label: "Load Fund"), 190 | Spacer(), 191 | _buildHeaderItem(icon: FontAwesomeIcons.mobileAlt, label: "Send/Request"), 192 | Spacer(), 193 | _buildHeaderItem(icon: FontAwesomeIcons.qrcode,label: "Scan & Pay"), 194 | Spacer(), 195 | _buildHeaderItem(icon: FontAwesomeIcons.coins,label: "Bank Transfer"), 196 | Spacer(), 197 | ], 198 | ), 199 | ); 200 | } 201 | 202 | Column _buildHeaderItem({IconData icon, String label}) { 203 | return Column( 204 | mainAxisAlignment: MainAxisAlignment.center, 205 | children: [ 206 | Container( 207 | padding: const EdgeInsets.all(10.0), 208 | decoration: BoxDecoration( 209 | shape: BoxShape.circle, 210 | color: Colors.white 211 | ), 212 | child: Icon(icon,size: 30, color: Colors.purple.shade300,), 213 | ), 214 | const SizedBox(height: 5.0), 215 | Text(label, style: smallText,), 216 | ], 217 | ); 218 | } 219 | Widget _buildMenuItem({IconData icon, String label, String subtitle}) { 220 | return InkWell( 221 | onTap: (){}, 222 | child: Column( 223 | mainAxisAlignment: MainAxisAlignment.center, 224 | children: [ 225 | Icon(icon,size: 28, color: Colors.purple.shade300,), 226 | const SizedBox(height: 10.0), 227 | Text(label, style: smallText,), 228 | if(subtitle != null) 229 | const SizedBox(height: 5.0), 230 | if(subtitle != null) 231 | Container( 232 | padding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 4.0,), 233 | color: Colors.grey.shade200, 234 | child: Text(subtitle, textAlign: TextAlign.center, style: smallText.copyWith( 235 | fontSize: 8.0 236 | ),) 237 | ) 238 | ], 239 | ), 240 | ); 241 | } 242 | } -------------------------------------------------------------------------------- /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 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | DEVELOPMENT_TEAM = S8QB4VV633; 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.popupbits.khalticlone; 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.popupbits.khalticlone; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 462 | SWIFT_VERSION = 4.0; 463 | VERSIONING_SYSTEM = "apple-generic"; 464 | }; 465 | name = Debug; 466 | }; 467 | 97C147071CF9000F007C117D /* Release */ = { 468 | isa = XCBuildConfiguration; 469 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 470 | buildSettings = { 471 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 472 | CLANG_ENABLE_MODULES = YES; 473 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 474 | ENABLE_BITCODE = NO; 475 | FRAMEWORK_SEARCH_PATHS = ( 476 | "$(inherited)", 477 | "$(PROJECT_DIR)/Flutter", 478 | ); 479 | INFOPLIST_FILE = Runner/Info.plist; 480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 481 | LIBRARY_SEARCH_PATHS = ( 482 | "$(inherited)", 483 | "$(PROJECT_DIR)/Flutter", 484 | ); 485 | PRODUCT_BUNDLE_IDENTIFIER = com.popupbits.khalticlone; 486 | PRODUCT_NAME = "$(TARGET_NAME)"; 487 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 488 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 489 | SWIFT_VERSION = 4.0; 490 | VERSIONING_SYSTEM = "apple-generic"; 491 | }; 492 | name = Release; 493 | }; 494 | /* End XCBuildConfiguration section */ 495 | 496 | /* Begin XCConfigurationList section */ 497 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 498 | isa = XCConfigurationList; 499 | buildConfigurations = ( 500 | 97C147031CF9000F007C117D /* Debug */, 501 | 97C147041CF9000F007C117D /* Release */, 502 | 249021D3217E4FDB00AE95B9 /* Profile */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | defaultConfigurationName = Release; 506 | }; 507 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 508 | isa = XCConfigurationList; 509 | buildConfigurations = ( 510 | 97C147061CF9000F007C117D /* Debug */, 511 | 97C147071CF9000F007C117D /* Release */, 512 | 249021D4217E4FDB00AE95B9 /* Profile */, 513 | ); 514 | defaultConfigurationIsVisible = 0; 515 | defaultConfigurationName = Release; 516 | }; 517 | /* End XCConfigurationList section */ 518 | 519 | }; 520 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 521 | } 522 | --------------------------------------------------------------------------------