├── 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 ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── abosoltan_app │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── assets ├── images │ ├── pic1.jpeg │ ├── pic10.jpeg │ ├── pic11.jpeg │ ├── pic12.jpeg │ ├── pic13.jpeg │ ├── pic2.jpeg │ ├── pic3.jpeg │ ├── pic4.jpeg │ ├── pic5.jpeg │ ├── pic6.jpeg │ ├── pic7.jpeg │ ├── pic8.jpeg │ ├── pic9.jpeg │ ├── user1.png │ ├── user2.png │ └── user3.png └── fonts │ ├── Rubik-Bold.ttf │ ├── Rubik-Black.ttf │ ├── Rubik-Light.ttf │ ├── Rubik-Medium.ttf │ ├── custom_icons.ttf │ └── Rubik-Regular.ttf ├── lib ├── custom │ └── custom_icons.dart ├── main.dart ├── data │ └── data.dart └── pages │ ├── home_page.dart │ └── details_page.dart ├── .metadata ├── README.md ├── test └── widget_test.dart ├── .gitignore ├── pubspec.yaml └── 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" -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | android.enableR8=true 4 | -------------------------------------------------------------------------------- /assets/images/pic1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic1.jpeg -------------------------------------------------------------------------------- /assets/images/pic10.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic10.jpeg -------------------------------------------------------------------------------- /assets/images/pic11.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic11.jpeg -------------------------------------------------------------------------------- /assets/images/pic12.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic12.jpeg -------------------------------------------------------------------------------- /assets/images/pic13.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic13.jpeg -------------------------------------------------------------------------------- /assets/images/pic2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic2.jpeg -------------------------------------------------------------------------------- /assets/images/pic3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic3.jpeg -------------------------------------------------------------------------------- /assets/images/pic4.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic4.jpeg -------------------------------------------------------------------------------- /assets/images/pic5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic5.jpeg -------------------------------------------------------------------------------- /assets/images/pic6.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic6.jpeg -------------------------------------------------------------------------------- /assets/images/pic7.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic7.jpeg -------------------------------------------------------------------------------- /assets/images/pic8.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic8.jpeg -------------------------------------------------------------------------------- /assets/images/pic9.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/pic9.jpeg -------------------------------------------------------------------------------- /assets/images/user1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/user1.png -------------------------------------------------------------------------------- /assets/images/user2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/user2.png -------------------------------------------------------------------------------- /assets/images/user3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/images/user3.png -------------------------------------------------------------------------------- /assets/fonts/Rubik-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/fonts/Rubik-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Rubik-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/fonts/Rubik-Black.ttf -------------------------------------------------------------------------------- /assets/fonts/Rubik-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/fonts/Rubik-Light.ttf -------------------------------------------------------------------------------- /assets/fonts/Rubik-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/fonts/Rubik-Medium.ttf -------------------------------------------------------------------------------- /assets/fonts/custom_icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/fonts/custom_icons.ttf -------------------------------------------------------------------------------- /assets/fonts/Rubik-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/assets/fonts/Rubik-Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanaebadi97/Tour-Flutter-App/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/custom/custom_icons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | class CustomIcons{ 4 | static const IconData menu = IconData(0xe900, fontFamily: "CustomIcons"); 5 | static const IconData option = IconData(0xe902, fontFamily: "CustomIcons"); 6 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:abosoltan_app/pages/home_page.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | void main() { 5 | runApp(MaterialApp( 6 | home: HomePage(), 7 | title: 'IMDB', 8 | debugShowCheckedModeBanner: false, 9 | )); 10 | } 11 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 68587a0916366e9512a78df22c44163d041dd5f3 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tour-design-FlutterApp 2 | 3 | 4 | ![Screenshot_2019-12-18_19-08-31](https://user-images.githubusercontent.com/26750131/71100610-94b19d80-21ca-11ea-88c5-2ec238e756c5.png) 5 | 6 | 7 | 8 | Application for travel tours. 9 | 10 | This app is **just a Ui display and has no logic**. In the future I am preparing Logic but I would like you to participate in this 11 | 12 | 13 | 14 | project. **So Fork it** :smiley::kissing_closed_eyes: 15 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/abosoltan_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.abosoltan_app 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.2.71' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.2.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:abosoltan_app/pages/home_page.dart'; 9 | import 'package:flutter/material.dart'; 10 | import 'package:flutter_test/flutter_test.dart'; 11 | 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(HomePage()); 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 | -------------------------------------------------------------------------------- /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 | abosoltan_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/Flutter/flutter_export_environment.sh 65 | **/ios/ServiceDefinitions.json 66 | **/ios/Runner/GeneratedPluginRegistrant.* 67 | 68 | # Exceptions to above rules. 69 | !**/ios/**/default.mode1v3 70 | !**/ios/**/default.mode2v3 71 | !**/ios/**/default.pbxuser 72 | !**/ios/**/default.perspectivev3 73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 74 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /lib/data/data.dart: -------------------------------------------------------------------------------- 1 | List images = [ 2 | "assets/images/pic1.jpeg", 3 | "assets/images/pic2.jpeg", 4 | "assets/images/pic3.jpeg", 5 | "assets/images/pic4.jpeg", 6 | "assets/images/pic5.jpeg", 7 | "assets/images/pic6.jpeg", 8 | "assets/images/pic8.jpeg", 9 | "assets/images/pic9.jpeg", 10 | "assets/images/pic11.jpeg", 11 | "assets/images/pic12.jpeg", 12 | "assets/images/pic13.jpeg", 13 | "assets/images/pic10.jpeg", 14 | "assets/images/pic7.jpeg", 15 | 16 | ]; 17 | 18 | List titles = [ 19 | "Sangi Mugan", 20 | "Zenbil", 21 | "Aepyornis Island", 22 | "Chikil", 23 | "Qara Su", 24 | "Kura Rock", 25 | "Changhai Islands", 26 | "Cheung Chau", 27 | "Po Toi Island", 28 | "Lamma Island", 29 | "Ko Chang", 30 | "Ko Rang", 31 | "Ko Phuket", 32 | ]; 33 | 34 | List descs = [ 35 | "In 1942, a Canadian intelligence officer in North Africa encounters a female French Resistance fighter on a deadly mission behind enemy lines. When they reunite in London, their relationship is tested by the pressures of war.", 36 | "In the Nazi-occupied Netherlands during World War II, a Jewish singer infiltrates the regional Gestapo headquarters for the Dutch resistance.", 37 | "Traudl Junge, the final secretary for Adolf Hitler, tells of the Nazi dictator's final days in his Berlin bunker at the end of WWII.", 38 | "A grizzled tank commander makes tough decisions as he and his crew fight their way across Germany in April, 1945.", 39 | "World War II American Army Medic Desmond T. Doss, who served during the Battle of Okinawa, refuses to kill people, and becomes the first man in American history to receive the Medal of Honor without firing a shot.", 40 | "Following the Normandy Landings, a group of U.S. soldiers go behind enemy lines to retrieve a paratrooper whose brothers have been killed in action.", 41 | "In German-occupied Poland during World War II, industrialist Oskar Schindler gradually becomes concerned for his Jewish workforce after witnessing their persecution by the Na", 42 | ]; 43 | List rates = [ 44 | "7.1", 45 | "7.7", 46 | "8.2", 47 | "7.6", 48 | "8.1", 49 | "8.6", 50 | "8.9", 51 | ]; 52 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.abosoltan_app" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 67 | } 68 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: abosoltan_app 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | 27 | dev_dependencies: 28 | flutter_test: 29 | sdk: flutter 30 | 31 | flutter_rating_bar: ^3.0.0 32 | 33 | # For information on the generic Dart part of this file, see the 34 | # following page: https://dart.dev/tools/pub/pubspec 35 | 36 | # The following section is specific to Flutter. 37 | flutter: 38 | 39 | # The following line ensures that the Material Icons font is 40 | # included with your application, so that you can use the icons in 41 | # the material Icons class. 42 | uses-material-design: true 43 | 44 | # To add assets to your application, add an assets section, like this: 45 | assets: 46 | - assets/images/ 47 | 48 | 49 | 50 | 51 | # An image asset can refer to one or more resolution-specific "variants", see 52 | # https://flutter.dev/assets-and-images/#resolution-aware. 53 | 54 | # For details regarding adding assets from package dependencies, see 55 | # https://flutter.dev/assets-and-images/#from-packages 56 | 57 | # To add custom fonts to your application, add a fonts section here, 58 | # in this "flutter" section. Each entry in this list should have a 59 | # "family" key with the font family name, and a "fonts" key with a 60 | # list giving the asset and other descriptors for the font. For 61 | # example: 62 | fonts: 63 | - family: Sans-Black 64 | fonts: 65 | - asset: assets/fonts/Rubik-Black.ttf 66 | 67 | - family: Sans-Bold 68 | fonts: 69 | - asset: assets/fonts/Rubik-Bold.ttf 70 | 71 | - family: Sans-Light 72 | fonts: 73 | - asset: assets/fonts/Rubik-Light.ttf 74 | 75 | 76 | - family: Sans-Regular 77 | fonts: 78 | - asset: assets/fonts/Rubik-Regular.ttf 79 | 80 | 81 | - family: Sans-Semi-Bold 82 | fonts: 83 | - asset: assets/fonts/Rubik-Medium.ttf 84 | 85 | - family: CustomIcons 86 | fonts: 87 | - asset: assets/fonts/custom_icons.ttf 88 | # 89 | # For details regarding fonts from package dependencies, 90 | # see https://flutter.dev/custom-fonts/#from-packages 91 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.3" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_rating_bar: 73 | dependency: "direct dev" 74 | description: 75 | name: flutter_rating_bar 76 | url: "https://pub.dartlang.org" 77 | source: hosted 78 | version: "3.0.0" 79 | flutter_test: 80 | dependency: "direct dev" 81 | description: flutter 82 | source: sdk 83 | version: "0.0.0" 84 | image: 85 | dependency: transitive 86 | description: 87 | name: image 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "2.1.4" 91 | matcher: 92 | dependency: transitive 93 | description: 94 | name: matcher 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.12.6" 98 | meta: 99 | dependency: transitive 100 | description: 101 | name: meta 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.1.8" 105 | path: 106 | dependency: transitive 107 | description: 108 | name: path 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.6.4" 112 | pedantic: 113 | dependency: transitive 114 | description: 115 | name: pedantic 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "1.8.0+1" 119 | petitparser: 120 | dependency: transitive 121 | description: 122 | name: petitparser 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "2.4.0" 126 | quiver: 127 | dependency: transitive 128 | description: 129 | name: quiver 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "2.0.5" 133 | sky_engine: 134 | dependency: transitive 135 | description: flutter 136 | source: sdk 137 | version: "0.0.99" 138 | source_span: 139 | dependency: transitive 140 | description: 141 | name: source_span 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.5.5" 145 | stack_trace: 146 | dependency: transitive 147 | description: 148 | name: stack_trace 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.9.3" 152 | stream_channel: 153 | dependency: transitive 154 | description: 155 | name: stream_channel 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "2.0.0" 159 | string_scanner: 160 | dependency: transitive 161 | description: 162 | name: string_scanner 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.0.5" 166 | term_glyph: 167 | dependency: transitive 168 | description: 169 | name: term_glyph 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.1.0" 173 | test_api: 174 | dependency: transitive 175 | description: 176 | name: test_api 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "0.2.11" 180 | typed_data: 181 | dependency: transitive 182 | description: 183 | name: typed_data 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "1.1.6" 187 | vector_math: 188 | dependency: transitive 189 | description: 190 | name: vector_math 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "2.0.8" 194 | xml: 195 | dependency: transitive 196 | description: 197 | name: xml 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "3.5.0" 201 | sdks: 202 | dart: ">=2.5.0 <3.0.0" 203 | -------------------------------------------------------------------------------- /lib/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:abosoltan_app/custom/custom_icons.dart'; 4 | import 'package:abosoltan_app/data/data.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter/services.dart'; 7 | import 'package:flutter_rating_bar/flutter_rating_bar.dart'; 8 | 9 | import 'details_page.dart'; 10 | 11 | class HomePage extends StatefulWidget { 12 | @override 13 | _HomePageState createState() => new _HomePageState(); 14 | } 15 | 16 | var cardAspectRatio = 12.0 / 16.0; 17 | var widgetAspectRatio = cardAspectRatio * 1.2; 18 | 19 | class _HomePageState extends State { 20 | var currentPage = images.length - 1.0; 21 | 22 | var title; 23 | var desc; 24 | var image; 25 | var rate; 26 | 27 | int _cIndex = 0; 28 | 29 | void _incrementTab(index) { 30 | setState(() { 31 | _cIndex = index; 32 | }); 33 | } 34 | 35 | @override 36 | Widget build(BuildContext context) { 37 | SystemChrome.setEnabledSystemUIOverlays([]); 38 | 39 | PageController controller = PageController(initialPage: images.length - 1); 40 | controller.addListener(() { 41 | setState(() { 42 | currentPage = controller.page; 43 | }); 44 | }); 45 | 46 | return Container( 47 | decoration: BoxDecoration( 48 | gradient: LinearGradient( 49 | colors: [ 50 | Color(0xFFe1f5fe), 51 | Color(0xFFffffff), 52 | ], 53 | begin: Alignment.bottomCenter, 54 | end: Alignment.topCenter, 55 | tileMode: TileMode.clamp)), 56 | child: Scaffold( 57 | backgroundColor: Colors.transparent, 58 | body: SingleChildScrollView( 59 | child: Column( 60 | children: [ 61 | Padding( 62 | padding: const EdgeInsets.only( 63 | left: 15.0, right: 12.0, top: 30.0, bottom: 8.0), 64 | child: Row( 65 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 66 | children: [ 67 | Text("Asia", 68 | style: TextStyle( 69 | color: Colors.black87, 70 | fontSize: 30, 71 | fontFamily: "Sans-Bold", 72 | letterSpacing: 1, 73 | )), 74 | Padding( 75 | padding: const EdgeInsets.only(right: 12), 76 | child: IconButton( 77 | icon: Icon( 78 | CustomIcons.option, 79 | color: Colors.black87, 80 | size: 15, 81 | ), 82 | onPressed: () {}, 83 | ), 84 | ), 85 | ], 86 | ), 87 | ), 88 | Padding( 89 | padding: EdgeInsets.symmetric(horizontal: 20.0), 90 | child: Row( 91 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 92 | children: [], 93 | ), 94 | ), 95 | SingleChildScrollView( 96 | scrollDirection: Axis.horizontal, 97 | child: Row( 98 | children: [ 99 | Padding( 100 | padding: const EdgeInsets.only( 101 | left: 12, right: 12, top: 8, bottom: 8), 102 | child: Container( 103 | padding: const EdgeInsets.only( 104 | left: 12, right: 12, top: 8, bottom: 8), 105 | alignment: Alignment.center, 106 | child: Text('Dubai', 107 | textAlign: TextAlign.center, 108 | style: TextStyle( 109 | color: Colors.white, 110 | fontSize: 20, 111 | fontFamily: "Sans-Semi-Bold", 112 | )), 113 | decoration: BoxDecoration( 114 | borderRadius: BorderRadius.circular(13), 115 | shape: BoxShape.rectangle, 116 | color: Color(0xFF1565c0)), 117 | ), 118 | ), 119 | Padding( 120 | padding: const EdgeInsets.only( 121 | left: 12, right: 12, top: 8, bottom: 8), 122 | child: Container( 123 | padding: const EdgeInsets.only( 124 | left: 12, right: 12, top: 8, bottom: 8), 125 | alignment: Alignment.center, 126 | child: Text('China ', 127 | textAlign: TextAlign.center, 128 | style: TextStyle( 129 | color: Colors.black87, 130 | fontSize: 20, 131 | fontFamily: "Sans-Semi-Bold", 132 | )), 133 | decoration: BoxDecoration( 134 | borderRadius: BorderRadius.circular(13), 135 | shape: BoxShape.rectangle, 136 | color: Color(0xFFe0f2f1)), 137 | ), 138 | ), 139 | Padding( 140 | padding: const EdgeInsets.only( 141 | left: 12, right: 12, top: 8, bottom: 8), 142 | child: Container( 143 | padding: const EdgeInsets.only( 144 | left: 12, right: 12, top: 8, bottom: 8), 145 | alignment: Alignment.center, 146 | child: Text('Korea ', 147 | textAlign: TextAlign.center, 148 | style: TextStyle( 149 | color: Colors.black87, 150 | fontSize: 20, 151 | fontFamily: "Sans-Semi-Bold", 152 | )), 153 | decoration: BoxDecoration( 154 | borderRadius: BorderRadius.circular(13), 155 | shape: BoxShape.rectangle, 156 | color: Color(0xFFe0f2f1)), 157 | ), 158 | ), 159 | Padding( 160 | padding: const EdgeInsets.only( 161 | left: 12, right: 12, top: 8, bottom: 8), 162 | child: Container( 163 | padding: const EdgeInsets.only( 164 | left: 12, right: 12, top: 8, bottom: 8), 165 | alignment: Alignment.center, 166 | child: Text('India ', 167 | textAlign: TextAlign.center, 168 | style: TextStyle( 169 | color: Colors.black87, 170 | fontSize: 20, 171 | fontFamily: "Sans-Semi-Bold", 172 | )), 173 | decoration: BoxDecoration( 174 | borderRadius: BorderRadius.circular(13), 175 | shape: BoxShape.rectangle, 176 | color: Color(0xFFe0f2f1)), 177 | ), 178 | ), 179 | ], 180 | ), 181 | ), 182 | InkWell( 183 | onTap: () { 184 | Navigator.push( 185 | context, 186 | MaterialPageRoute(builder: (context) => DetailsPage()), 187 | ); 188 | }, 189 | child: Stack( 190 | children: [ 191 | CardScrollWidget(currentPage), 192 | Positioned.fill( 193 | child: PageView.builder( 194 | itemCount: images.length, 195 | controller: controller, 196 | reverse: true, 197 | itemBuilder: (context, index) { 198 | return Container(); 199 | }, 200 | ), 201 | ) 202 | ], 203 | ), 204 | ), 205 | ], 206 | ), 207 | ), 208 | bottomNavigationBar: ClipRRect( 209 | borderRadius: BorderRadius.only( 210 | topLeft: Radius.circular(25), topRight: Radius.circular(25)), 211 | child: BottomNavigationBar( 212 | backgroundColor: Colors.white, 213 | iconSize: 30, 214 | elevation: 2, 215 | currentIndex: _cIndex, 216 | type: BottomNavigationBarType.fixed, 217 | items: [ 218 | BottomNavigationBarItem( 219 | icon: Icon(Icons.room, color: Color(0xFF90a4ae)), 220 | title: new Text('')), 221 | BottomNavigationBarItem( 222 | icon: Icon(Icons.adjust, color: Color(0xFFcfd8dc)), 223 | title: new Text('')), 224 | BottomNavigationBarItem( 225 | icon: Icon(Icons.next_week, color: Color(0xFFcfd8dc)), 226 | title: new Text('')), 227 | BottomNavigationBarItem( 228 | icon: Icon(Icons.person_outline, color: Color(0xFFcfd8dc)), 229 | title: new Text('')) 230 | ], 231 | onTap: (index) { 232 | _incrementTab(index); 233 | }, 234 | ), 235 | )), 236 | ); 237 | } 238 | } 239 | 240 | // ignore: must_be_immutable 241 | class CardScrollWidget extends StatelessWidget { 242 | var currentPage; 243 | var padding = 20.0; 244 | var verticalInset = 20.0; 245 | 246 | CardScrollWidget(this.currentPage); 247 | 248 | @override 249 | Widget build(BuildContext context) { 250 | return new AspectRatio( 251 | aspectRatio: widgetAspectRatio, 252 | child: LayoutBuilder(builder: (context, contraints) { 253 | var width = contraints.maxWidth; 254 | var height = contraints.maxHeight; 255 | 256 | var safeWidth = width - 2 * padding; 257 | var safeHeight = height - 2 * padding; 258 | 259 | var heightOfPrimaryCard = safeHeight; 260 | var widthOfPrimaryCard = heightOfPrimaryCard * cardAspectRatio; 261 | 262 | var primaryCardLeft = safeWidth - widthOfPrimaryCard; 263 | var horizontalInset = primaryCardLeft / 2; 264 | 265 | List cardList = new List(); 266 | 267 | for (var i = 0; i < images.length; i++) { 268 | var delta = i - currentPage; 269 | bool isOnRight = delta > 0; 270 | 271 | var start = padding + 272 | max( 273 | primaryCardLeft - 274 | horizontalInset * -delta * (isOnRight ? 15 : 1), 275 | 0.0); 276 | 277 | var cardItem = Positioned.directional( 278 | top: padding + verticalInset * max(-delta, 0.0), 279 | bottom: padding + verticalInset * max(-delta, 0.0), 280 | start: start, 281 | textDirection: TextDirection.rtl, 282 | child: ClipRRect( 283 | borderRadius: BorderRadius.circular(16.0), 284 | child: Container( 285 | decoration: BoxDecoration(color: Colors.white, boxShadow: [ 286 | BoxShadow( 287 | color: Colors.black12, 288 | offset: Offset(3.0, 6.0), 289 | blurRadius: 10.0) 290 | ]), 291 | child: AspectRatio( 292 | aspectRatio: cardAspectRatio, 293 | child: Stack( 294 | fit: StackFit.expand, 295 | children: [ 296 | Image.asset(images[i], fit: BoxFit.cover), 297 | Align( 298 | alignment: Alignment.topRight, 299 | child: IconButton( 300 | icon: Padding( 301 | padding: const EdgeInsets.only(right: 10), 302 | child: Icon( 303 | Icons.star_border, 304 | color: Colors.white, 305 | size: 20, 306 | ), 307 | ), 308 | onPressed: () {}, 309 | ), 310 | ), 311 | Align( 312 | alignment: Alignment.bottomCenter, 313 | child: Column( 314 | mainAxisSize: MainAxisSize.min, 315 | crossAxisAlignment: CrossAxisAlignment.center, 316 | children: [ 317 | Padding( 318 | padding: EdgeInsets.symmetric( 319 | horizontal: 16.0, vertical: 8.0), 320 | child: Text(titles[i], 321 | style: TextStyle( 322 | color: Colors.white, 323 | fontSize: 20, 324 | fontFamily: "SourceSansPro-Regular")), 325 | ), 326 | SizedBox( 327 | height: 10.0, 328 | ), 329 | Padding( 330 | padding: 331 | const EdgeInsets.only(left: 12.0, bottom: 8), 332 | child: Row( 333 | mainAxisSize: MainAxisSize.min, 334 | crossAxisAlignment: CrossAxisAlignment.center, 335 | children: [ 336 | Padding( 337 | padding: const EdgeInsets.only( 338 | right: 12.0, bottom: 8.0), 339 | child: RatingBar( 340 | initialRating: 3, 341 | itemSize: 18, 342 | direction: Axis.horizontal, 343 | allowHalfRating: true, 344 | itemCount: 5, 345 | unratedColor: Colors.grey, 346 | itemPadding: 347 | EdgeInsets.symmetric(horizontal: 4), 348 | itemBuilder: (context, _) => Icon( 349 | Icons.star, 350 | color: Colors.white, 351 | ), 352 | onRatingUpdate: (rating) { 353 | print(rating); 354 | }, 355 | ), 356 | ) 357 | ], 358 | ), 359 | ) 360 | ], 361 | ), 362 | ) 363 | ], 364 | ), 365 | ), 366 | ), 367 | ), 368 | ); 369 | cardList.add(cardItem); 370 | } 371 | return Stack( 372 | children: cardList, 373 | ); 374 | }), 375 | ); 376 | } 377 | } 378 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXCopyFilesBuildPhase section */ 24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 25 | isa = PBXCopyFilesBuildPhase; 26 | buildActionMask = 2147483647; 27 | dstPath = ""; 28 | dstSubfolderSpec = 10; 29 | files = ( 30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 32 | ); 33 | name = "Embed Frameworks"; 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXCopyFilesBuildPhase section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 62 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 9740EEB11CF90186004384FC /* Flutter */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 3B80C3931E831B6300D905FE /* App.framework */, 73 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 74 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 78 | ); 79 | name = Flutter; 80 | sourceTree = ""; 81 | }; 82 | 97C146E51CF9000F007C117D = { 83 | isa = PBXGroup; 84 | children = ( 85 | 9740EEB11CF90186004384FC /* Flutter */, 86 | 97C146F01CF9000F007C117D /* Runner */, 87 | 97C146EF1CF9000F007C117D /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 97C146EF1CF9000F007C117D /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 97C146EE1CF9000F007C117D /* Runner.app */, 95 | ); 96 | name = Products; 97 | sourceTree = ""; 98 | }; 99 | 97C146F01CF9000F007C117D /* Runner */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 103 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 104 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 105 | 97C147021CF9000F007C117D /* Info.plist */, 106 | 97C146F11CF9000F007C117D /* Supporting Files */, 107 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 108 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 109 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 110 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 111 | ); 112 | path = Runner; 113 | sourceTree = ""; 114 | }; 115 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | 97C146ED1CF9000F007C117D /* Runner */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 128 | buildPhases = ( 129 | 9740EEB61CF901F6004384FC /* Run Script */, 130 | 97C146EA1CF9000F007C117D /* Sources */, 131 | 97C146EB1CF9000F007C117D /* Frameworks */, 132 | 97C146EC1CF9000F007C117D /* Resources */, 133 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 134 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 135 | ); 136 | buildRules = ( 137 | ); 138 | dependencies = ( 139 | ); 140 | name = Runner; 141 | productName = Runner; 142 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 143 | productType = "com.apple.product-type.application"; 144 | }; 145 | /* End PBXNativeTarget section */ 146 | 147 | /* Begin PBXProject section */ 148 | 97C146E61CF9000F007C117D /* Project object */ = { 149 | isa = PBXProject; 150 | attributes = { 151 | LastUpgradeCheck = 1020; 152 | ORGANIZATIONNAME = "The Chromium Authors"; 153 | TargetAttributes = { 154 | 97C146ED1CF9000F007C117D = { 155 | CreatedOnToolsVersion = 7.3.1; 156 | LastSwiftMigration = 0910; 157 | }; 158 | }; 159 | }; 160 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 161 | compatibilityVersion = "Xcode 3.2"; 162 | developmentRegion = en; 163 | hasScannedForEncodings = 0; 164 | knownRegions = ( 165 | en, 166 | Base, 167 | ); 168 | mainGroup = 97C146E51CF9000F007C117D; 169 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 170 | projectDirPath = ""; 171 | projectRoot = ""; 172 | targets = ( 173 | 97C146ED1CF9000F007C117D /* Runner */, 174 | ); 175 | }; 176 | /* End PBXProject section */ 177 | 178 | /* Begin PBXResourcesBuildPhase section */ 179 | 97C146EC1CF9000F007C117D /* Resources */ = { 180 | isa = PBXResourcesBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 184 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 185 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 186 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 187 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 188 | ); 189 | runOnlyForDeploymentPostprocessing = 0; 190 | }; 191 | /* End PBXResourcesBuildPhase section */ 192 | 193 | /* Begin PBXShellScriptBuildPhase section */ 194 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 195 | isa = PBXShellScriptBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | ); 199 | inputPaths = ( 200 | ); 201 | name = "Thin Binary"; 202 | outputPaths = ( 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | shellPath = /bin/sh; 206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 207 | }; 208 | 9740EEB61CF901F6004384FC /* Run Script */ = { 209 | isa = PBXShellScriptBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | inputPaths = ( 214 | ); 215 | name = "Run Script"; 216 | outputPaths = ( 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | shellPath = /bin/sh; 220 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 221 | }; 222 | /* End PBXShellScriptBuildPhase section */ 223 | 224 | /* Begin PBXSourcesBuildPhase section */ 225 | 97C146EA1CF9000F007C117D /* Sources */ = { 226 | isa = PBXSourcesBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 230 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | /* End PBXSourcesBuildPhase section */ 235 | 236 | /* Begin PBXVariantGroup section */ 237 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 238 | isa = PBXVariantGroup; 239 | children = ( 240 | 97C146FB1CF9000F007C117D /* Base */, 241 | ); 242 | name = Main.storyboard; 243 | sourceTree = ""; 244 | }; 245 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 246 | isa = PBXVariantGroup; 247 | children = ( 248 | 97C147001CF9000F007C117D /* Base */, 249 | ); 250 | name = LaunchScreen.storyboard; 251 | sourceTree = ""; 252 | }; 253 | /* End PBXVariantGroup section */ 254 | 255 | /* Begin XCBuildConfiguration section */ 256 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 257 | isa = XCBuildConfiguration; 258 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 259 | buildSettings = { 260 | ALWAYS_SEARCH_USER_PATHS = NO; 261 | CLANG_ANALYZER_NONNULL = YES; 262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 263 | CLANG_CXX_LIBRARY = "libc++"; 264 | CLANG_ENABLE_MODULES = YES; 265 | CLANG_ENABLE_OBJC_ARC = YES; 266 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 267 | CLANG_WARN_BOOL_CONVERSION = YES; 268 | CLANG_WARN_COMMA = YES; 269 | CLANG_WARN_CONSTANT_CONVERSION = YES; 270 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 271 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 272 | CLANG_WARN_EMPTY_BODY = YES; 273 | CLANG_WARN_ENUM_CONVERSION = YES; 274 | CLANG_WARN_INFINITE_RECURSION = YES; 275 | CLANG_WARN_INT_CONVERSION = YES; 276 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 278 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 279 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 280 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 281 | CLANG_WARN_STRICT_PROTOTYPES = YES; 282 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 283 | CLANG_WARN_UNREACHABLE_CODE = YES; 284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 286 | COPY_PHASE_STRIP = NO; 287 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 288 | ENABLE_NS_ASSERTIONS = NO; 289 | ENABLE_STRICT_OBJC_MSGSEND = YES; 290 | GCC_C_LANGUAGE_STANDARD = gnu99; 291 | GCC_NO_COMMON_BLOCKS = YES; 292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 294 | GCC_WARN_UNDECLARED_SELECTOR = YES; 295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 296 | GCC_WARN_UNUSED_FUNCTION = YES; 297 | GCC_WARN_UNUSED_VARIABLE = YES; 298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 299 | MTL_ENABLE_DEBUG_INFO = NO; 300 | SDKROOT = iphoneos; 301 | TARGETED_DEVICE_FAMILY = "1,2"; 302 | VALIDATE_PRODUCT = YES; 303 | }; 304 | name = Profile; 305 | }; 306 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 309 | buildSettings = { 310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 311 | CLANG_ENABLE_MODULES = YES; 312 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 313 | ENABLE_BITCODE = NO; 314 | FRAMEWORK_SEARCH_PATHS = ( 315 | "$(inherited)", 316 | "$(PROJECT_DIR)/Flutter", 317 | ); 318 | INFOPLIST_FILE = Runner/Info.plist; 319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 320 | LIBRARY_SEARCH_PATHS = ( 321 | "$(inherited)", 322 | "$(PROJECT_DIR)/Flutter", 323 | ); 324 | PRODUCT_BUNDLE_IDENTIFIER = com.example.abosoltanApp; 325 | PRODUCT_NAME = "$(TARGET_NAME)"; 326 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 327 | SWIFT_VERSION = 4.0; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INFINITE_RECURSION = YES; 351 | CLANG_WARN_INT_CONVERSION = YES; 352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 357 | CLANG_WARN_STRICT_PROTOTYPES = YES; 358 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 359 | CLANG_WARN_UNREACHABLE_CODE = YES; 360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 362 | COPY_PHASE_STRIP = NO; 363 | DEBUG_INFORMATION_FORMAT = dwarf; 364 | ENABLE_STRICT_OBJC_MSGSEND = YES; 365 | ENABLE_TESTABILITY = YES; 366 | GCC_C_LANGUAGE_STANDARD = gnu99; 367 | GCC_DYNAMIC_NO_PIC = NO; 368 | GCC_NO_COMMON_BLOCKS = YES; 369 | GCC_OPTIMIZATION_LEVEL = 0; 370 | GCC_PREPROCESSOR_DEFINITIONS = ( 371 | "DEBUG=1", 372 | "$(inherited)", 373 | ); 374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 376 | GCC_WARN_UNDECLARED_SELECTOR = YES; 377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 378 | GCC_WARN_UNUSED_FUNCTION = YES; 379 | GCC_WARN_UNUSED_VARIABLE = YES; 380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 381 | MTL_ENABLE_DEBUG_INFO = YES; 382 | ONLY_ACTIVE_ARCH = YES; 383 | SDKROOT = iphoneos; 384 | TARGETED_DEVICE_FAMILY = "1,2"; 385 | }; 386 | name = Debug; 387 | }; 388 | 97C147041CF9000F007C117D /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 395 | CLANG_CXX_LIBRARY = "libc++"; 396 | CLANG_ENABLE_MODULES = YES; 397 | CLANG_ENABLE_OBJC_ARC = YES; 398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 399 | CLANG_WARN_BOOL_CONVERSION = YES; 400 | CLANG_WARN_COMMA = YES; 401 | CLANG_WARN_CONSTANT_CONVERSION = YES; 402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 404 | CLANG_WARN_EMPTY_BODY = YES; 405 | CLANG_WARN_ENUM_CONVERSION = YES; 406 | CLANG_WARN_INFINITE_RECURSION = YES; 407 | CLANG_WARN_INT_CONVERSION = YES; 408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.abosoltanApp; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 4.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.abosoltanApp; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 4.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | 517 | }; 518 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 519 | } 520 | -------------------------------------------------------------------------------- /lib/pages/details_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:abosoltan_app/custom/custom_icons.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/rendering.dart'; 4 | import 'package:flutter/services.dart'; 5 | 6 | class DetailsPage extends StatefulWidget { 7 | @override 8 | _DetailsPageState createState() => _DetailsPageState(); 9 | } 10 | 11 | class _DetailsPageState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | SystemChrome.setEnabledSystemUIOverlays([]); 15 | 16 | return Scaffold( 17 | backgroundColor: Colors.black54, 18 | body: InkWell( 19 | onDoubleTap: () { 20 | //bottom sheet 21 | 22 | _showBottomSheet(); 23 | }, 24 | child: Stack(fit: StackFit.expand, children: [ 25 | Image.asset( 26 | "assets/images/pic7.jpeg", 27 | fit: BoxFit.cover, 28 | ), 29 | Padding( 30 | padding: const EdgeInsets.only(bottom: 650, right: 8, left: 8), 31 | child: Row( 32 | mainAxisSize: MainAxisSize.max, 33 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 34 | children: [ 35 | IconButton( 36 | icon: Icon( 37 | Icons.arrow_back, 38 | color: Colors.white70, 39 | size: 30.0, 40 | ), 41 | onPressed: () {}, 42 | ), 43 | IconButton( 44 | icon: Icon( 45 | Icons.more_vert, 46 | color: Colors.white70, 47 | size: 30.0, 48 | ), 49 | onPressed: () {}, 50 | ), 51 | ], 52 | ), 53 | ), 54 | Padding( 55 | padding: const EdgeInsets.only(bottom: 420, right: 60, left: 8), 56 | child: Align( 57 | alignment: Alignment.centerRight, 58 | child: Container( 59 | alignment: Alignment.centerRight, 60 | decoration: BoxDecoration( 61 | shape: BoxShape.rectangle, 62 | color: Color(0x66e0f7fa), 63 | borderRadius: BorderRadius.all(Radius.circular(25))), 64 | width: 85, 65 | height: 35, 66 | child: Row( 67 | children: [ 68 | IconButton( 69 | icon: Icon( 70 | Icons.favorite_border, 71 | color: Colors.white70, 72 | size: 25, 73 | ), 74 | onPressed: () {}, 75 | ), 76 | Text('36', 77 | style: TextStyle( 78 | color: Colors.white, 79 | fontWeight: FontWeight.bold, 80 | fontSize: 18, 81 | fontFamily: "Sans-Regular")) 82 | ], 83 | ), 84 | ), 85 | ), 86 | ), 87 | Align( 88 | alignment: Alignment.centerLeft, 89 | child: Padding( 90 | padding: const EdgeInsets.only(top: 190, left: 20), 91 | child: Column( 92 | mainAxisSize: MainAxisSize.max, 93 | mainAxisAlignment: MainAxisAlignment.start, 94 | crossAxisAlignment: CrossAxisAlignment.start, 95 | children: [ 96 | Text('Maldives \n Tour', 97 | textAlign: TextAlign.left, 98 | style: TextStyle( 99 | letterSpacing: 1.1, 100 | color: Colors.white, 101 | fontSize: 30, 102 | fontFamily: "Sans-Regular")), 103 | Padding( 104 | padding: EdgeInsets.all(0), 105 | child: Row( 106 | children: [ 107 | Row( 108 | children: [ 109 | IconButton( 110 | icon: Icon( 111 | Icons.schedule, 112 | color: Colors.white70, 113 | size: 25, 114 | ), 115 | onPressed: () {}, 116 | ), 117 | Text('30 DAYS', 118 | style: TextStyle( 119 | color: Colors.white, 120 | fontSize: 15, 121 | fontFamily: "Sans-Regular")) 122 | ], 123 | ), 124 | Row( 125 | children: [ 126 | IconButton( 127 | icon: Icon( 128 | Icons.outlined_flag, 129 | color: Colors.white70, 130 | size: 25, 131 | ), 132 | onPressed: () {}, 133 | ), 134 | Text('862 KM', 135 | style: TextStyle( 136 | color: Colors.white, 137 | fontSize: 15, 138 | fontFamily: "Sans-Regular")) 139 | ], 140 | ), 141 | ], 142 | ), 143 | ), 144 | Text( 145 | 'Islam was introduced to the Maldivian\n archipelago inthe 12th century which \n was consolidated as a sultanate,\n developing strong commercial \n and cultural ', 146 | style: TextStyle( 147 | textBaseline: TextBaseline.alphabetic, 148 | color: Colors.white, 149 | fontSize: 15, 150 | fontFamily: "Sans-Regular")), 151 | Padding( 152 | padding: const EdgeInsets.only(top: 50, left: 100), 153 | child: Align( 154 | alignment: Alignment.centerLeft, 155 | child: Container( 156 | alignment: Alignment.centerLeft, 157 | decoration: BoxDecoration( 158 | shape: BoxShape.rectangle, 159 | color: Color(0x44e0f7fa), 160 | borderRadius: 161 | BorderRadius.all(Radius.circular(25))), 162 | width: 85, 163 | height: 35, 164 | child: Row( 165 | children: [ 166 | IconButton( 167 | icon: Icon( 168 | Icons.favorite_border, 169 | color: Colors.white70, 170 | size: 25, 171 | ), 172 | onPressed: () {}, 173 | ), 174 | Text('295', 175 | style: TextStyle( 176 | color: Colors.white, 177 | fontWeight: FontWeight.bold, 178 | fontSize: 18, 179 | fontFamily: "Sans-Regular")) 180 | ], 181 | ), 182 | ), 183 | ), 184 | ), 185 | ], 186 | ), 187 | ), 188 | ), 189 | Padding( 190 | padding: const EdgeInsets.only(top: 40, right: 50), 191 | child: Align( 192 | alignment: Alignment.centerRight, 193 | child: Container( 194 | alignment: Alignment.centerRight, 195 | decoration: BoxDecoration( 196 | shape: BoxShape.rectangle, 197 | color: Color(0x99e0f7fa), 198 | borderRadius: BorderRadius.all(Radius.circular(25))), 199 | width: 85, 200 | height: 35, 201 | child: Row( 202 | children: [ 203 | IconButton( 204 | icon: Icon( 205 | Icons.favorite_border, 206 | color: Colors.white70, 207 | size: 25, 208 | ), 209 | onPressed: () {}, 210 | ), 211 | Text('207', 212 | style: TextStyle( 213 | color: Colors.white, 214 | fontWeight: FontWeight.bold, 215 | fontSize: 18, 216 | fontFamily: "Sans-Regular")) 217 | ], 218 | ), 219 | ), 220 | ), 221 | ), 222 | Padding( 223 | padding: const EdgeInsets.only(top: 600), 224 | child: Align( 225 | alignment: Alignment.bottomLeft, 226 | child: ListView( 227 | scrollDirection: Axis.horizontal, 228 | children: [ 229 | Padding( 230 | padding: const EdgeInsets.all(8.0), 231 | child: ClipRRect( 232 | borderRadius: BorderRadius.circular(25), 233 | child: Image.asset( 234 | 'assets/images/pic7.jpeg', 235 | width: 100, 236 | height: 100, 237 | fit: BoxFit.cover, 238 | ), 239 | ), 240 | ), 241 | Padding( 242 | padding: const EdgeInsets.all(8.0), 243 | child: ClipRRect( 244 | borderRadius: BorderRadius.circular(25), 245 | child: Image.asset( 246 | 'assets/images/pic9.jpeg', 247 | width: 100, 248 | height: 100, 249 | fit: BoxFit.cover, 250 | ), 251 | ), 252 | ), 253 | Padding( 254 | padding: const EdgeInsets.all(8.0), 255 | child: ClipRRect( 256 | borderRadius: BorderRadius.circular(25), 257 | child: Image.asset( 258 | 'assets/images/pic11.jpeg', 259 | width: 100, 260 | height: 100, 261 | fit: BoxFit.cover, 262 | ), 263 | ), 264 | ), 265 | Padding( 266 | padding: const EdgeInsets.all(8.0), 267 | child: ClipRRect( 268 | borderRadius: BorderRadius.circular(25), 269 | child: Image.asset( 270 | 'assets/images/pic12.jpeg', 271 | width: 100, 272 | height: 100, 273 | fit: BoxFit.cover, 274 | ), 275 | ), 276 | ), 277 | Padding( 278 | padding: const EdgeInsets.all(8.0), 279 | child: ClipRRect( 280 | borderRadius: BorderRadius.circular(25), 281 | child: Image.asset( 282 | 'assets/images/pic13.jpeg', 283 | width: 100, 284 | height: 100, 285 | fit: BoxFit.cover, 286 | ), 287 | ), 288 | ) 289 | ], 290 | ), 291 | ), 292 | ), 293 | ]), 294 | ), 295 | ); 296 | } 297 | 298 | void _showBottomSheet() { 299 | showModalBottomSheet( 300 | backgroundColor: Colors.transparent, 301 | context: context, 302 | builder: (context) { 303 | return Card( 304 | margin: EdgeInsets.all(0), 305 | shape: RoundedRectangleBorder( 306 | borderRadius: BorderRadius.only( 307 | topRight: Radius.circular(40), 308 | topLeft: Radius.circular(40)), 309 | ), 310 | child: ListView( 311 | children: [ 312 | Padding( 313 | padding: const EdgeInsets.only(left: 8, right: 8), 314 | child: Align( 315 | alignment: Alignment(0.8, -0.1), 316 | heightFactor: 0.10, 317 | child: FloatingActionButton( 318 | elevation: 5, 319 | child: Icon(Icons.near_me, 320 | size: 30, color: Color(0xFF0097a7)), 321 | backgroundColor: Colors.white, 322 | onPressed: () {}, 323 | ), 324 | ), 325 | ), 326 | Padding( 327 | padding: 328 | const EdgeInsets.only(top: 14, right: 12, left: 12), 329 | child: Text('Maldives Tour', 330 | textAlign: TextAlign.left, 331 | style: TextStyle( 332 | letterSpacing: 1.1, 333 | color: Colors.black87, 334 | fontSize: 30, 335 | fontFamily: "Sans-Semi-Bold")), 336 | ), 337 | Padding( 338 | padding: 339 | const EdgeInsets.only(top: 14, right: 12, left: 12), 340 | child: Text( 341 | 'Islam was introduced to the Maldivian \narchipelago inthe 12th century which was\nconsolidated as a sultanate ', 342 | style: TextStyle( 343 | textBaseline: TextBaseline.alphabetic, 344 | color: Colors.black26, 345 | letterSpacing: 1, 346 | height: 1.25, 347 | fontWeight: FontWeight.bold, 348 | fontSize: 15, 349 | fontFamily: "Sans-Regular")), 350 | ), 351 | Padding( 352 | padding: const EdgeInsets.only(top: 10), 353 | child: Row( 354 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 355 | children: [ 356 | Padding( 357 | padding: const EdgeInsets.only(left: 20), 358 | child: Row(children: [ 359 | IconButton( 360 | icon: Icon( 361 | Icons.chat_bubble, 362 | color: Color(0xFF37474f), 363 | size: 25, 364 | ), 365 | onPressed: () {}, 366 | ), 367 | Text('24', 368 | style: TextStyle( 369 | color: Color(0xFF37474f), 370 | fontWeight: FontWeight.bold, 371 | fontSize: 18, 372 | fontFamily: "Sans-Regular")) 373 | ]), 374 | ), 375 | Row(children: [ 376 | IconButton( 377 | icon: Icon( 378 | Icons.favorite, 379 | color: Color(0xFFdd2c00), 380 | size: 25, 381 | ), 382 | onPressed: () {}, 383 | ), 384 | Text('65', 385 | style: TextStyle( 386 | color: Color(0xFF37474f), 387 | fontWeight: FontWeight.bold, 388 | fontSize: 18, 389 | fontFamily: "Sans-Regular")) 390 | ]), 391 | Row(children: [ 392 | IconButton( 393 | icon: Icon( 394 | Icons.star_border, 395 | color: Color(0xFF37474f), 396 | size: 25, 397 | ), 398 | onPressed: () {}, 399 | ), 400 | Text('17', 401 | style: TextStyle( 402 | color: Color(0xFF37474f), 403 | fontWeight: FontWeight.bold, 404 | fontSize: 18, 405 | fontFamily: "Sans-Regular")) 406 | ]), 407 | Padding( 408 | padding: const EdgeInsets.only(right: 20), 409 | child: Row(children: [ 410 | IconButton( 411 | icon: Icon( 412 | Icons.whatshot, 413 | color: Color(0xFF37474f), 414 | size: 25, 415 | ), 416 | onPressed: () {}, 417 | ), 418 | Text('80', 419 | style: TextStyle( 420 | color: Color(0xFF37474f), 421 | fontWeight: FontWeight.bold, 422 | fontSize: 18, 423 | fontFamily: "Sans-Regular")) 424 | ]), 425 | ), 426 | ], 427 | ), 428 | ), 429 | Padding( 430 | padding: const EdgeInsets.only(top: 10), 431 | child: Row( 432 | mainAxisAlignment: MainAxisAlignment.start, 433 | children: [ 434 | Padding( 435 | padding: const EdgeInsets.all(8.0), 436 | child: Image.asset( 437 | 'assets/images/user1.png', 438 | height: 60, 439 | width: 60, 440 | fit: BoxFit.cover, 441 | ), 442 | ), 443 | Padding( 444 | padding: const EdgeInsets.all(8.0), 445 | child: Image.asset( 446 | 'assets/images/user2.png', 447 | height: 60, 448 | width: 60, 449 | fit: BoxFit.cover, 450 | ), 451 | ), 452 | Padding( 453 | padding: const EdgeInsets.all(8.0), 454 | child: Image.asset( 455 | 'assets/images/user3.png', 456 | height: 60, 457 | width: 60, 458 | fit: BoxFit.cover, 459 | ), 460 | ), 461 | Padding( 462 | padding: const EdgeInsets.only(left: 90), 463 | child: Align( 464 | alignment: Alignment.centerRight, 465 | child: Container( 466 | width: 60, 467 | height: 60, 468 | child: Icon( 469 | CustomIcons.option, 470 | size: 10, 471 | ), 472 | decoration: BoxDecoration( 473 | shape: BoxShape.circle, 474 | color: Color(0xFFe0f2f1)), 475 | ), 476 | ), 477 | ) 478 | ], 479 | ), 480 | ), 481 | Card( 482 | margin: 483 | EdgeInsets.only(left: 10, right: 10, top: 5, bottom: 3), 484 | shape: RoundedRectangleBorder( 485 | borderRadius: BorderRadius.circular(18), 486 | ), 487 | color: Color(0xaaf5f5f5), 488 | elevation: 0, 489 | child: Padding( 490 | padding: const EdgeInsets.only(top: 12,bottom: 12), 491 | child: Row( 492 | mainAxisSize: MainAxisSize.min, 493 | children: [ 494 | Padding( 495 | padding: const EdgeInsets.only(left: 20), 496 | child: Container( 497 | width: 50, 498 | height: 50, 499 | child: Icon( 500 | Icons.location_on, 501 | color: Color(0xFFb39ddb), 502 | size: 30, 503 | ), 504 | decoration: BoxDecoration( 505 | shape: BoxShape.circle, 506 | color: Color(0xFFf3e5f5)), 507 | ), 508 | ), 509 | Padding( 510 | padding: const EdgeInsets.only(left: 30, right: 20), 511 | child: Column( 512 | children: [ 513 | Text('From', 514 | textAlign: TextAlign.center, 515 | style: TextStyle( 516 | color: Color(0xFF757575), 517 | fontWeight: FontWeight.bold, 518 | fontSize: 15, 519 | fontFamily: "Sans-Regular")), 520 | Padding( 521 | padding: const EdgeInsets.only(top: 5), 522 | child: Text('Beijing', 523 | textAlign: TextAlign.center, 524 | style: TextStyle( 525 | color: Color(0xFF212121), 526 | fontWeight: FontWeight.bold, 527 | fontSize: 18, 528 | fontFamily: "Sans-Regular")), 529 | ) 530 | ], 531 | ), 532 | ), 533 | Padding( 534 | padding: const EdgeInsets.only(left: 80, right: 20), 535 | child: Column( 536 | children: [ 537 | Text('To', 538 | textAlign: TextAlign.center, 539 | style: TextStyle( 540 | color: Color(0xFF757575), 541 | fontWeight: FontWeight.bold, 542 | fontSize: 15, 543 | fontFamily: "Sans-Regular")), 544 | Padding( 545 | padding: const EdgeInsets.only(top: 5), 546 | child: Text('Maldives', 547 | textAlign: TextAlign.center, 548 | style: TextStyle( 549 | color: Color(0xFF212121), 550 | fontWeight: FontWeight.bold, 551 | fontSize: 18, 552 | fontFamily: "Sans-Regular")), 553 | ) 554 | ], 555 | ), 556 | ), 557 | ], 558 | ), 559 | ), 560 | ), 561 | Padding( 562 | padding: 563 | const EdgeInsets.only(left: 10, right: 10, top: 10), 564 | child: RaisedButton( 565 | color: Color(0xFF1565c0), 566 | padding: EdgeInsets.all(10), 567 | shape: RoundedRectangleBorder( 568 | borderRadius: new BorderRadius.circular(10), 569 | side: BorderSide(color: Color(0xFF1565c0))), 570 | onPressed: () {}, 571 | child: Text('Commence The Tour', 572 | textAlign: TextAlign.center, 573 | style: TextStyle( 574 | color: Color(0xFFffffff), 575 | fontWeight: FontWeight.bold, 576 | fontSize: 18, 577 | fontFamily: "Sans-Regular")), 578 | ), 579 | ) 580 | ], 581 | )); 582 | }); 583 | } 584 | } 585 | --------------------------------------------------------------------------------