├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── dynamicapp │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── avatar_logo.png ├── hs1.png ├── hs2.png ├── placeholder_image.png ├── splash.png ├── user 1.png └── user 2.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── allscreens │ ├── 1.tab_bar.dart │ ├── 10.ui_compare_cart.dart │ ├── 11. neu.dart │ ├── 12.search_bar.dart │ ├── 13.gridvslist.dart │ ├── 14.rating.dart │ ├── 15.loginnew.dart │ ├── 16.radial.dart │ ├── 17.swiptoremove.dart │ ├── 18.flip_card.dart │ ├── 19.img_background.dart │ ├── 2.spotify_ui.dart │ ├── 20.flutter_game.dart │ ├── 21.new.dart │ ├── 22.local_notification.dart │ ├── 23.share_plus.dart │ ├── 24.animated_theme_switcher.dart │ ├── 25.list_img_color.dart │ ├── 26.image_cropper.dart │ ├── 27.cloth.dart │ ├── 28.crypto.dart │ ├── 29.parallax.dart │ ├── 3.push_notifications.dart │ ├── 30.qr.dart │ ├── 31.bottom_nav_badge.dart │ ├── 31.emoji_picker.dart │ ├── 33.android_ios.dart │ ├── 34.download.dart │ ├── 35.rive.dart │ ├── 35.sliverappbar.dart │ ├── 36.animated_like.dart │ ├── 37.extended.dart │ ├── 38.video_player.dart │ ├── 39.country_picker.dart │ ├── 4.profile.dart │ ├── 40.reels.dart │ ├── 41.internet.dart │ ├── 5.bottom_app_bar.dart │ ├── 6.razor_pay.dart │ ├── 7.music.dart │ ├── 8.music.dart │ ├── 9.showcase.dart │ ├── m2vsm3.dart │ └── todo.dart ├── animated_container.dart ├── animation │ ├── container_transition.dart │ ├── fade_scale_transition.dart │ ├── fade_through_transition.dart │ ├── main.dart │ └── shared_axis_transition.dart.dart ├── blinking_text.dart ├── book │ └── book.dart ├── card.dart ├── dialog.dart ├── food │ └── food.dart ├── home │ ├── home.dart │ ├── homedetails.dart │ └── quiznav.dart ├── image │ └── imgage_picker.dart ├── login │ ├── 2.0 login.dart │ ├── calculator.dart │ └── login.dart ├── main.dart ├── models │ ├── cart.dart │ └── catalog.dart ├── motion_toast.dart ├── quiz.dart ├── screens │ ├── cart.dart │ ├── catalog.dart │ └── login.dart ├── settingsUI │ ├── fas │ └── settings.dart ├── speed_dial │ └── speed_dial.dart ├── switch │ └── switch.dart ├── theme │ └── apptheme.dart ├── ticket │ └── ticket.dart ├── travel │ └── travel.dart ├── ui_compare │ └── 1.gropup_option.dart ├── uis │ ├── 1.photo_filter.dart │ └── 2.animated_text.dart ├── utils │ ├── 42.motion_tabbar.dart │ ├── const.dart │ ├── photo_view.dart │ └── size_config.dart └── widgets │ └── custom_text.dart ├── linux ├── .gitignore ├── CMakeLists.txt ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake ├── main.cc ├── my_application.cc └── my_application.h ├── macos ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── app_icon_1024.png │ │ ├── app_icon_128.png │ │ ├── app_icon_16.png │ │ ├── app_icon_256.png │ │ ├── app_icon_32.png │ │ ├── app_icon_512.png │ │ └── app_icon_64.png │ ├── Base.lproj │ └── MainMenu.xib │ ├── Configs │ ├── AppInfo.xcconfig │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── Warnings.xcconfig │ ├── DebugProfile.entitlements │ ├── Info.plist │ ├── MainFlutterWindow.swift │ └── Release.entitlements ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── index.html └── manifest.json └── windows ├── .gitignore ├── CMakeLists.txt ├── flutter ├── CMakeLists.txt ├── generated_plugin_registrant.cc ├── generated_plugin_registrant.h └── generated_plugins.cmake └── runner ├── CMakeLists.txt ├── Runner.rc ├── flutter_window.cpp ├── flutter_window.h ├── main.cpp ├── resource.h ├── resources └── app_icon.ico ├── runner.exe.manifest ├── utils.cpp ├── utils.h ├── win32_window.cpp └── win32_window.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /.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. 5 | 6 | version: 7 | revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf 17 | base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf 18 | - platform: ios 19 | create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf 20 | base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf 21 | 22 | # User provided section 23 | 24 | # List of Local paths (relative to this file) that should be 25 | # ignored by the migrate tool. 26 | # 27 | # Files that are not part of the templates will be ignored by default. 28 | unmanaged_files: 29 | - 'lib/main.dart' 30 | - 'ios/Runner.xcodeproj/project.pbxproj' 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutterdartcodes 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /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 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 33 30 | ndkVersion flutter.ndkVersion 31 | defaultConfig { 32 | multiDexEnabled true 33 | } 34 | compileOptions { 35 | sourceCompatibility JavaVersion.VERSION_1_8 36 | targetCompatibility JavaVersion.VERSION_1_8 37 | } 38 | 39 | kotlinOptions { 40 | jvmTarget = '1.8' 41 | } 42 | 43 | sourceSets { 44 | main.java.srcDirs += 'src/main/kotlin' 45 | } 46 | 47 | defaultConfig { 48 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 49 | applicationId "com.example.dynamicapp" 50 | // You can update the following values to match your application needs. 51 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 52 | minSdkVersion 33 53 | targetSdkVersion flutter.targetSdkVersion 54 | versionCode flutterVersionCode.toInteger() 55 | versionName flutterVersionName 56 | } 57 | 58 | buildTypes { 59 | release { 60 | // TODO: Add your own signing config for the release build. 61 | // Signing with the debug keys for now, so `flutter run --release` works. 62 | signingConfig signingConfigs.debug 63 | } 64 | } 65 | } 66 | 67 | flutter { 68 | source '../..' 69 | } 70 | 71 | dependencies { 72 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 73 | } 74 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/dynamicapp/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.dynamicapp 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.20' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 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 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/avatar_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/avatar_logo.png -------------------------------------------------------------------------------- /assets/hs1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/hs1.png -------------------------------------------------------------------------------- /assets/hs2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/hs2.png -------------------------------------------------------------------------------- /assets/placeholder_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/placeholder_image.png -------------------------------------------------------------------------------- /assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/splash.png -------------------------------------------------------------------------------- /assets/user 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/user 1.png -------------------------------------------------------------------------------- /assets/user 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/assets/user 2.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/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/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Dynamicapp 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | dynamicapp 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | 34 | UIInterfaceOrientationPortrait 35 | UIInterfaceOrientationLandscapeLeft 36 | UIInterfaceOrientationLandscapeRight 37 | 38 | NSCalendarsUsageDescription 39 | $(PRODUCT_NAME) calendar events 40 | NSRemindersUsageDescription 41 | $(PRODUCT_NAME) reminder use 42 | NSCameraUsageDescription 43 | This app requires to access your photo library to show image on profile and send via chat 44 | NSPhotoLibraryUsageDescription 45 | This app requires access to the photo library. 46 | 47 | NSPhotoLibraryAddUsageDescription 48 | This app requires read and write access to the photo library. 49 | UISupportedInterfaceOrientations~ipad 50 | 51 | UIInterfaceOrientationPortrait 52 | UIInterfaceOrientationPortraitUpsideDown 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | UIViewControllerBasedStatusBarAppearance 57 | 58 | CADisableMinimumFrameDurationOnPhone 59 | 60 | UIApplicationSupportsIndirectInputEvents 61 | 62 | NSPhotoLibraryUsageDescription 63 | Photo Library Access Warning 64 | 65 | 66 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/allscreens/1.tab_bar.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:dio/dio.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class Tabbar extends StatefulWidget { 7 | const Tabbar({super.key}); 8 | 9 | @override 10 | State createState() => _TabbarState(); 11 | } 12 | 13 | class _TabbarState extends State { 14 | bool isLoading = false; 15 | Dio dio = Dio(); 16 | List userdata = []; 17 | var apiURL = 'https://jsonplaceholder.typicode.com/todos/1/users'; 18 | Future getUserData() async { 19 | 20 | Dio dio = Dio(); 21 | 22 | // Set the base URL of the API. 23 | 24 | // Create the request data. 25 | Map data = { 26 | 'name': 'John Doe', 27 | 'email': 'johndoe@example.com', 28 | }; 29 | 30 | // Make the POST request. 31 | Response response = await dio.post('/users', data: data); 32 | 33 | // Check the response status code. 34 | if (response.statusCode == 201) { 35 | // The request was successful. 36 | } else { 37 | // The request failed. 38 | } 39 | try { 40 | var response = await dio.get(apiURL); 41 | if (response.statusCode == 200) { 42 | setState(() { 43 | userdata = response.data; 44 | }); 45 | } 46 | } on DioException catch (e) { 47 | debugPrint(e.message); 48 | } 49 | } 50 | 51 | @override 52 | void initState() { 53 | super.initState(); 54 | getUserData(); 55 | } 56 | 57 | @override 58 | Widget build(BuildContext context) { 59 | return DefaultTabController( 60 | initialIndex: 0, 61 | length: 3, 62 | child: Scaffold( 63 | drawer: const Drawer(), 64 | appBar: AppBar( 65 | title: const Text('DIO GET REQUEST'), 66 | actions: [ 67 | IconButton( 68 | onPressed: () {}, 69 | icon: const Icon( 70 | Icons.account_circle, 71 | fill: .5, 72 | )) 73 | ], 74 | bottom: const TabBar( 75 | tabs: [ 76 | Tab( 77 | icon: Icon(Icons.cloud_outlined), 78 | ), 79 | Tab( 80 | icon: Icon(Icons.beach_access_sharp), 81 | ), 82 | Tab( 83 | icon: Icon(Icons.brightness_5_sharp), 84 | ), 85 | ], 86 | ), 87 | ), 88 | body: TabBarView( 89 | children: [ 90 | userData(), 91 | const Center( 92 | child: Text("It's rainy here"), 93 | ), 94 | const Center( 95 | child: Text("It's sunny here"), 96 | ), 97 | ], 98 | ), 99 | ), 100 | ); 101 | } 102 | 103 | Widget userData() { 104 | return ListView.builder( 105 | itemCount: userdata.length, 106 | itemBuilder: (BuildContext context, int index) { 107 | var idx = userdata[index]; 108 | var first = idx['name']; 109 | return Card( 110 | child: ListTile( 111 | leading: CircleAvatar( 112 | backgroundColor: 113 | Colors.primaries[Random().nextInt(Colors.primaries.length)], 114 | child: Text('${first[0]}'), 115 | ), 116 | title: Text(idx['name']), 117 | subtitle: Text(idx['email']), 118 | ), 119 | ); 120 | }, 121 | ); 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /lib/allscreens/12.search_bar.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: library_private_types_in_public_api 2 | 3 | import 'package:anim_search_bar/anim_search_bar.dart'; 4 | import 'package:dynamicapp/utils/const.dart'; 5 | import 'package:flutter/material.dart'; 6 | 7 | class SearchBars extends StatefulWidget { 8 | const SearchBars({super.key}); 9 | 10 | @override 11 | _SearchBarsState createState() => _SearchBarsState(); 12 | } 13 | 14 | class _SearchBarsState extends State { 15 | TextEditingController textController = TextEditingController(); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Scaffold( 20 | drawer: const Drawer(), 21 | appBar: AppBar( 22 | elevation: 5, 23 | actions: [ 24 | Padding( 25 | padding: const EdgeInsets.only(right: 8.0), 26 | child: AnimSearchBar( 27 | width: 350, 28 | textController: textController, 29 | onSuffixTap: () { 30 | setState(() { 31 | textController.clear(); 32 | }); 33 | }, 34 | onSubmitted: (string) {}, 35 | ), 36 | ), 37 | ], 38 | ), 39 | body: ListView.builder( 40 | itemCount: newMusicList.length, 41 | itemBuilder: (BuildContext context, int index) { 42 | return Card( 43 | child: ListTile( 44 | leading: CircleAvatar(child: Text('${index + 1}')), 45 | title: Text(newMusicList[index]['title']), 46 | subtitle: Text(newMusicList[index]['subtitle']), 47 | ), 48 | ); 49 | }, 50 | ), 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/allscreens/13.gridvslist.dart: -------------------------------------------------------------------------------- 1 | import 'package:dynamicapp/utils/const.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_staggered_animations/flutter_staggered_animations.dart'; 4 | 5 | class SliverListGridExample extends StatefulWidget { 6 | const SliverListGridExample({Key? key}) : super(key: key); 7 | 8 | @override 9 | SliverListGridExampleState createState() => SliverListGridExampleState(); 10 | } 11 | 12 | class SliverListGridExampleState extends State { 13 | bool isGrid = false; 14 | List items = 15 | List.generate(newMusicList.length, (index) => 'Item ${index + 1}'); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Scaffold( 20 | drawer: const Drawer(), 21 | body: CustomScrollView( 22 | slivers: [ 23 | SliverAppBar( 24 | pinned: true, 25 | flexibleSpace: const FlexibleSpaceBar(title: Text('Motion Tabbar')), 26 | actions: [ 27 | IconButton( 28 | tooltip: isGrid ? 'Grid' : 'List', 29 | onPressed: () { 30 | setState(() { 31 | isGrid = !isGrid; 32 | }); 33 | debugPrint(isGrid.toString()); 34 | }, 35 | icon: Icon( 36 | isGrid ? Icons.view_list_rounded : Icons.grid_on_rounded, 37 | ), 38 | ), 39 | ], 40 | ), 41 | if (isGrid) 42 | AnimationLimiter( 43 | child: SliverGrid( 44 | gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( 45 | crossAxisCount: 2, 46 | mainAxisSpacing: 10.0, 47 | crossAxisSpacing: 10.0, 48 | ), 49 | delegate: SliverChildBuilderDelegate( 50 | (context, index) { 51 | return AnimationConfiguration.staggeredGrid( 52 | position: index, 53 | duration: const Duration(milliseconds: 300), 54 | columnCount: 2, 55 | child: ScaleAnimation( 56 | child: buildGridItem(index), 57 | ), 58 | ); 59 | }, 60 | childCount: items.length, 61 | ), 62 | ), 63 | ), 64 | if (!isGrid) 65 | SliverList( 66 | delegate: SliverChildBuilderDelegate( 67 | (context, index) { 68 | return AnimationConfiguration.staggeredList( 69 | position: index, 70 | duration: const Duration(milliseconds: 300), 71 | child: SlideAnimation( 72 | verticalOffset: 50.0, 73 | child: FadeInAnimation( 74 | child: buildListItem(index), 75 | ), 76 | ), 77 | ); 78 | }, 79 | childCount: items.length, 80 | ), 81 | ), 82 | ], 83 | ), 84 | ); 85 | } 86 | 87 | Widget buildGridItem(int index) { 88 | return Card( 89 | clipBehavior: Clip.antiAlias, 90 | child: Column( 91 | children: [ 92 | SizedBox( 93 | height: 150.0, 94 | width: double.infinity, 95 | child: Image.network( 96 | newMusicList[index]['img'], 97 | fit: BoxFit.cover, 98 | ), 99 | ), 100 | const SizedBox(height: 8.0), 101 | Text(newMusicList[index]['title']), 102 | const SizedBox(height: 4.0), 103 | Text(newMusicList[index]['subtitle']), 104 | ], 105 | ), 106 | ); 107 | } 108 | 109 | Widget buildListItem(int index) { 110 | return Card( 111 | child: ListTile( 112 | leading: Image.network( 113 | newMusicList[index]['img'], 114 | width: 60, 115 | fit: BoxFit.cover, 116 | ), 117 | title: Text(newMusicList[index]['title']), 118 | subtitle: Text(newMusicList[index]['subtitle']), 119 | ), 120 | ); 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/allscreens/15.loginnew.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | import '../utils/size_config.dart'; 5 | 6 | class LoginNew extends StatelessWidget { 7 | const LoginNew({super.key}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | backgroundColor: Colors.grey[50], 13 | body: Center( 14 | child: SafeArea( 15 | child: Column(children: [ 16 | const Spacer(), 17 | const Icon(Icons.lock, size: 72), 18 | h56, 19 | Text( 20 | 'Welcome Back, you\'ve been logged out', 21 | style: GoogleFonts.inter( 22 | textStyle: const TextStyle( 23 | fontWeight: FontWeight.w500, 24 | fontSize: 15, 25 | color: Colors.black54)), 26 | ), 27 | h24, 28 | Card( 29 | color: kWhite, 30 | surfaceTintColor: kWhite, 31 | shape: shape4, 32 | margin: const EdgeInsets.symmetric(horizontal: 16), 33 | child: Padding( 34 | padding: const EdgeInsets.all(8.0), 35 | child: TextFormField( 36 | decoration: const InputDecoration( 37 | hintText: 'Username', border: InputBorder.none), 38 | ), 39 | ), 40 | ), 41 | h16, 42 | Card( 43 | margin: const EdgeInsets.symmetric(horizontal: 16), 44 | color: kWhite, 45 | surfaceTintColor: kWhite, 46 | shape: shape4, 47 | child: Padding( 48 | padding: const EdgeInsets.all(8.0), 49 | child: TextFormField( 50 | decoration: const InputDecoration( 51 | hintText: 'Password', border: InputBorder.none), 52 | ), 53 | ), 54 | ), 55 | Container( 56 | padding: const EdgeInsets.only(right: 6.0), 57 | alignment: Alignment.bottomRight, 58 | child: TextButton( 59 | child: const Text('Forgot Password', 60 | style: TextStyle(color: Colors.black45)), 61 | onPressed: () {}, 62 | ), 63 | ), 64 | h32, 65 | Padding( 66 | padding: const EdgeInsets.symmetric(horizontal: 16.0), 67 | child: FilledButton( 68 | style: FilledButton.styleFrom( 69 | backgroundColor: kBlack, 70 | textStyle: textStyleHeading, 71 | minimumSize: const Size(double.infinity, 56), 72 | shape: shape8), 73 | onPressed: () {}, 74 | child: const Text('Sign in')), 75 | ), 76 | h48, 77 | const Text('Or'), 78 | h48, 79 | Row( 80 | mainAxisAlignment: MainAxisAlignment.center, 81 | children: [ 82 | SizedBox( 83 | height: 72, 84 | width: 72, 85 | child: Card( 86 | shape: shape20, 87 | elevation: .5, 88 | child: Image.network( 89 | 'https://blog.hubspot.com/hubfs/image8-2.jpg'), 90 | ), 91 | ), 92 | w24, 93 | SizedBox( 94 | height: 72, 95 | width: 72, 96 | child: Card( 97 | elevation: .5, 98 | shape: shape20, 99 | child: Image.network( 100 | 'https://ww1.freelogovectors.net/wp-content/uploads/2023/03/apple_logo-freelogovectors.net_-1.png'), 101 | ), 102 | ), 103 | ], 104 | ), 105 | const Spacer(), 106 | ]), 107 | ), 108 | ), 109 | ); 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /lib/allscreens/16.radial.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class RadialMenu extends StatefulWidget { 4 | const RadialMenu({super.key}); 5 | 6 | @override 7 | State createState() => _RadialMenuState(); 8 | } 9 | 10 | class _RadialMenuState extends State 11 | with SingleTickerProviderStateMixin { 12 | AnimationController? _animationController; 13 | 14 | @override 15 | void initState() { 16 | _animationController = AnimationController( 17 | vsync: this, 18 | duration: const Duration(milliseconds: 500), 19 | ); 20 | super.initState(); 21 | } 22 | 23 | @override 24 | void dispose() { 25 | _animationController!.dispose(); 26 | super.dispose(); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return Scaffold( 32 | appBar: AppBar( 33 | title: const Text('Radial Menu'), 34 | ), 35 | body: Center( 36 | child: Column( 37 | mainAxisAlignment: MainAxisAlignment.center, 38 | children: [ 39 | // Your central button or icon here 40 | IconButton( 41 | icon: const Icon(Icons.menu), 42 | onPressed: _toggleMenu, 43 | ), 44 | const SizedBox(height: 16.0), 45 | // Your surrounding buttons or options here 46 | AnimatedBuilder( 47 | animation: _animationController!, 48 | builder: (context, child) { 49 | return Transform.scale( 50 | scale: _animationController!.value, 51 | child: child, 52 | ); 53 | }, 54 | child: SizedBox( 55 | width: 200.0, 56 | height: 200.0, 57 | child: Stack( 58 | children: [ 59 | // Place your options as positioned widgets around the central button 60 | Positioned( 61 | left: 100.0, 62 | top: 0.0, 63 | child: IconButton( 64 | icon: const Icon(Icons.import_contacts_sharp), 65 | onPressed: () {}, 66 | ), 67 | ), 68 | Positioned( 69 | left: 0.0, 70 | top: 100.0, 71 | child: IconButton( 72 | icon: const Icon(Icons.abc_outlined), 73 | onPressed: () {}, 74 | ), 75 | ), 76 | Positioned( 77 | right: 0.0, 78 | top: 100.0, 79 | child: IconButton( 80 | icon: const Icon(Icons.dangerous), 81 | onPressed: () {}, 82 | ), 83 | ), 84 | Positioned( 85 | left: 100.0, 86 | bottom: 0.0, 87 | child: IconButton( 88 | icon: const Icon(Icons.safety_check), 89 | onPressed: () {}, 90 | ), 91 | ), 92 | ], 93 | ), 94 | ), 95 | ), 96 | ], 97 | ), 98 | ), 99 | ); 100 | } 101 | 102 | void _toggleMenu() { 103 | if (_animationController!.isCompleted) { 104 | _animationController!.reverse(); 105 | } else { 106 | _animationController!.forward(); 107 | } 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /lib/allscreens/17.swiptoremove.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SwipeToDeleteArchiveDemo extends StatefulWidget { 4 | const SwipeToDeleteArchiveDemo({super.key}); 5 | 6 | @override 7 | SwipeToDeleteArchiveDemoState createState() => 8 | SwipeToDeleteArchiveDemoState(); 9 | } 10 | 11 | class SwipeToDeleteArchiveDemoState extends State { 12 | List items = List.generate(30, (index) => "Item ${index + 1}"); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: const Text('Swipe to Delete & Archive'), 19 | ), 20 | body: ListView.builder( 21 | itemCount: items.length, 22 | itemBuilder: (context, index) { 23 | final item = items[index]; 24 | return Card( 25 | child: Dismissible( 26 | key: Key(item), 27 | direction: DismissDirection.horizontal, 28 | onDismissed: (direction) { 29 | setState(() { 30 | items.removeAt(index); 31 | }); 32 | if (direction == DismissDirection.startToEnd) { 33 | // Archive item 34 | _showSnackBar(context, 'Archived $item'); 35 | } else if (direction == DismissDirection.endToStart) { 36 | // Delete item 37 | _showSnackBar(context, 'Deleted $item'); 38 | } 39 | }, 40 | background: Container( 41 | color: Colors.green, 42 | alignment: Alignment.centerLeft, 43 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 44 | child: const Icon( 45 | Icons.archive, 46 | color: Colors.white, 47 | ), 48 | ), 49 | secondaryBackground: Container( 50 | color: Colors.red, 51 | alignment: Alignment.centerRight, 52 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 53 | child: const Icon( 54 | Icons.delete, 55 | color: Colors.white, 56 | ), 57 | ), 58 | child: ListTile( 59 | leading: CircleAvatar(child: Text('${index + 1}')), 60 | title: Text(item), 61 | subtitle: Text(item), 62 | ), 63 | ), 64 | ); 65 | }, 66 | ), 67 | ); 68 | } 69 | 70 | void _showSnackBar(BuildContext context, String message) { 71 | ScaffoldMessenger.of(context).showSnackBar( 72 | SnackBar( 73 | margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 0.0), 74 | behavior: SnackBarBehavior.floating, 75 | content: Text(message)), 76 | ); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /lib/allscreens/18.flip_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:flip_card/flip_card.dart'; 4 | 5 | class HomePage extends StatelessWidget { 6 | const HomePage({super.key}); 7 | 8 | _renderAppBar(context) { 9 | return MediaQuery.removePadding( 10 | context: context, 11 | removeBottom: true, 12 | child: AppBar( 13 | elevation: 0.0, 14 | backgroundColor: const Color(0x00FFFFFF), 15 | ), 16 | ); 17 | } 18 | 19 | _renderContent(context) { 20 | return Card( 21 | elevation: 0.0, 22 | margin: const EdgeInsets.only( 23 | left: 32.0, right: 32.0, top: 20.0, bottom: 0.0), 24 | color: const Color(0x00000000), 25 | child: FlipCard( 26 | direction: FlipDirection.HORIZONTAL, 27 | side: CardSide.FRONT, 28 | speed: 1000, 29 | onFlipDone: (status) { 30 | debugPrint(status.toString()); 31 | }, 32 | front: Container( 33 | decoration: const BoxDecoration( 34 | color: Color(0xFF006666), 35 | borderRadius: BorderRadius.all(Radius.circular(8.0)), 36 | ), 37 | child: Column( 38 | mainAxisAlignment: MainAxisAlignment.center, 39 | children: [ 40 | Text('Front', style: Theme.of(context).textTheme.displayLarge), 41 | Text('Click here to flip back', 42 | style: Theme.of(context).textTheme.bodyLarge), 43 | ], 44 | ), 45 | ), 46 | back: Container( 47 | decoration: const BoxDecoration( 48 | color: Color(0xFF006666), 49 | borderRadius: BorderRadius.all(Radius.circular(8.0)), 50 | ), 51 | child: Column( 52 | mainAxisAlignment: MainAxisAlignment.center, 53 | children: [ 54 | Text('Back', style: Theme.of(context).textTheme.displayLarge), 55 | Text('Click here to flip front', 56 | style: Theme.of(context).textTheme.bodyLarge), 57 | ], 58 | ), 59 | ), 60 | ), 61 | ); 62 | } 63 | 64 | @override 65 | Widget build(BuildContext context) { 66 | return Scaffold( 67 | appBar: AppBar( 68 | title: const Text('FlipCard'), 69 | ), 70 | body: Stack( 71 | fit: StackFit.expand, 72 | children: [ 73 | Column( 74 | crossAxisAlignment: CrossAxisAlignment.stretch, 75 | children: [ 76 | _renderAppBar(context), 77 | Expanded( 78 | flex: 4, 79 | child: _renderContent(context), 80 | ), 81 | Expanded( 82 | flex: 1, 83 | child: Container(), 84 | ), 85 | ], 86 | ) 87 | ], 88 | ), 89 | ); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /lib/allscreens/19.img_background.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:dynamicapp/utils/const.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class MyImgBack extends StatefulWidget { 7 | const MyImgBack({Key? key}) : super(key: key); 8 | 9 | @override 10 | MyImgBackState createState() => MyImgBackState(); 11 | } 12 | 13 | class MyImgBackState extends State { 14 | int selectedIndex = 0; 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | body: Stack( 20 | children: [ 21 | AnimatedSwitcher( 22 | duration: const Duration(milliseconds: 500), 23 | child: Image.network( 24 | images[selectedIndex], 25 | key: ValueKey(selectedIndex), 26 | fit: BoxFit.cover, 27 | width: double.infinity, 28 | height: double.infinity, 29 | ), 30 | transitionBuilder: (Widget child, Animation animation) { 31 | return FadeTransition( 32 | opacity: animation, 33 | child: child, 34 | ); 35 | }, 36 | ), 37 | Positioned.fill( 38 | child: BackdropFilter( 39 | filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5), 40 | child: Container( 41 | color: Colors.black.withOpacity(0.3), 42 | ), 43 | ), 44 | ), 45 | Center( 46 | child: SizedBox( 47 | height: 450, 48 | child: PageView.builder( 49 | scrollDirection: Axis.horizontal, 50 | physics: const BouncingScrollPhysics(), 51 | itemCount: images.length, 52 | onPageChanged: (int index) { 53 | setState(() { 54 | selectedIndex = index; 55 | }); 56 | }, 57 | itemBuilder: (BuildContext context, int index) { 58 | return Container( 59 | margin: const EdgeInsets.all(50.0), 60 | child: Card( 61 | clipBehavior: Clip.antiAlias, 62 | child: Image.network(images[index], fit: BoxFit.cover), 63 | ), 64 | ); 65 | }, 66 | ), 67 | ), 68 | ), 69 | ], 70 | ), 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/allscreens/21.new.dart: -------------------------------------------------------------------------------- 1 | // ignore: file_names 2 | import 'package:flutter/material.dart'; 3 | 4 | class CustomSearchBar extends StatefulWidget { 5 | const CustomSearchBar({super.key}); 6 | 7 | @override 8 | CustomSearchBarState createState() => CustomSearchBarState(); 9 | } 10 | 11 | class CustomSearchBarState extends State { 12 | List items = [ 13 | 'John Doe', 14 | 'Jane Smith', 15 | 'Robert Johnson', 16 | 'Alice Brown', 17 | 'David Lee', 18 | 'Lily Mitchell', 19 | "Benjamin Turner", 20 | "Alexander Hall", 21 | "Charlotte Adams", 22 | "Joseph Wilson", 23 | "James Rodriguez" 24 | ]; 25 | 26 | List filteredItems = []; 27 | 28 | void filterSearchResults(String query) { 29 | filteredItems.clear(); 30 | if (query.isNotEmpty) { 31 | for (var item in items) { 32 | if (item.toLowerCase().contains(query.toLowerCase())) { 33 | filteredItems.add(item); 34 | } 35 | } 36 | } else { 37 | filteredItems.addAll(items); 38 | } 39 | setState(() {}); 40 | } 41 | 42 | @override 43 | void initState() { 44 | filteredItems.addAll(items); 45 | super.initState(); 46 | } 47 | 48 | @override 49 | Widget build(BuildContext context) { 50 | return Scaffold( 51 | appBar: AppBar( 52 | title: const Text('Custom Search Bar'), 53 | ), 54 | body: Column( 55 | children: [ 56 | Padding( 57 | padding: const EdgeInsets.all(16.0), 58 | child: TextField( 59 | onChanged: (value) { 60 | filterSearchResults(value); 61 | }, 62 | decoration: const InputDecoration( 63 | border: OutlineInputBorder(), 64 | labelText: 'Search', 65 | prefixIcon: Icon(Icons.search), 66 | ), 67 | ), 68 | ), 69 | Expanded( 70 | child: ListView.builder( 71 | itemCount: filteredItems.length, 72 | itemBuilder: (BuildContext context, int index) { 73 | return Card( 74 | child: ListTile( 75 | title: Text(filteredItems[index]), 76 | subtitle: const Text( 77 | 'Subname'), // Replace with your desired subname 78 | ), 79 | ); 80 | }, 81 | ), 82 | ), 83 | ], 84 | ), 85 | ); 86 | } 87 | } 88 | 89 | void main() { 90 | runApp(const MaterialApp(home: CustomSearchBar())); 91 | } 92 | -------------------------------------------------------------------------------- /lib/allscreens/22.local_notification.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:geolocator/geolocator.dart'; 3 | import 'package:flutter_local_notifications/flutter_local_notifications.dart'; 4 | 5 | class Notifications extends StatelessWidget { 6 | final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = 7 | FlutterLocalNotificationsPlugin(); 8 | 9 | Notifications({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | title: 'Location Notification Demo', 15 | home: Scaffold( 16 | appBar: AppBar( 17 | title: const Text('Location Notification Demo'), 18 | ), 19 | body: Center( 20 | child: TextButton( 21 | onPressed: () async { 22 | Position position = await Geolocator.getCurrentPosition( 23 | desiredAccuracy: LocationAccuracy.high); 24 | displayNotification(position); 25 | }, 26 | child: const Text('Show Location Notification'), 27 | ), 28 | ), 29 | ), 30 | ); 31 | } 32 | 33 | void displayNotification(Position position) async { 34 | const AndroidNotificationDetails androidPlatformChannelSpecifics = 35 | AndroidNotificationDetails( 36 | 'your_channel_id', // Replace with your own channel ID 37 | 'Location Notification', 38 | // 'Notification for current location', 39 | importance: Importance.max, 40 | priority: Priority.high, 41 | ); 42 | 43 | final NotificationDetails platformChannelSpecifics = 44 | // ignore: prefer_const_constructors 45 | NotificationDetails(android: androidPlatformChannelSpecifics); 46 | 47 | await flutterLocalNotificationsPlugin.show( 48 | 0, // Notification ID 49 | 'Current Location', 50 | 'Latitude: ${position.latitude}, Longitude: ${position.longitude}', 51 | platformChannelSpecifics, 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /lib/allscreens/23.share_plus.dart: -------------------------------------------------------------------------------- 1 | import 'package:dynamicapp/utils/size_config.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:share_plus/share_plus.dart'; 4 | 5 | class SharePlus extends StatelessWidget { 6 | const SharePlus({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return const MyHomePage(); 11 | } 12 | } 13 | 14 | class MyHomePage extends StatelessWidget { 15 | const MyHomePage({super.key}); 16 | 17 | void _shareText(String text) { 18 | Share.share( 19 | text, 20 | subject: 21 | 'A Flutter plugin to share content from your Flutter app via the platform\'s share dialog.Wraps the ACTION_SEND Intent on Android and UIActivityViewController on iOS.', 22 | sharePositionOrigin: const Rect.fromLTWH( 23 | 0, 0, 100, 100), // optional rect for iPad popover position 24 | ); 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | var txt = 30 | "A Flutter plugin to share content from your Flutter app via the platform's share dialog.Wraps the ACTION_SEND Intent on Android and UIActivityViewController on iOS."; 31 | return Scaffold( 32 | appBar: AppBar(title: const Text('Share Plus')), 33 | bottomNavigationBar: SafeArea( 34 | child: Container( 35 | padding: const EdgeInsets.symmetric(horizontal: 16.0), 36 | height: 48, 37 | child: ElevatedButton( 38 | style: ElevatedButton.styleFrom( 39 | foregroundColor: kWhite, 40 | shape: shape8, 41 | backgroundColor: Theme.of(context).primaryColor), 42 | onPressed: () { 43 | _shareText(txt); 44 | }, 45 | child: const Text('Share'), 46 | ), 47 | ), 48 | ), 49 | body: Padding( 50 | padding: const EdgeInsets.all(16.0), 51 | child: Column( 52 | children: [ 53 | Text( 54 | txt, 55 | style: textStyleHeading, 56 | ), 57 | h16, 58 | Text( 59 | "Platform Support #Android iOS MacOS Web Linux Windows ✅ ✅ ✅ ✅ ✅ ✅\nAlso compatible with Windows and Linux by using files is not supported on Windows and Linux.", 60 | style: textStyleHeading, 61 | ), 62 | ], 63 | ), 64 | ), 65 | ); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /lib/allscreens/25.list_img_color.dart: -------------------------------------------------------------------------------- 1 | import 'package:dynamicapp/utils/const.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class CardImgColor extends StatefulWidget { 5 | const CardImgColor({super.key}); 6 | 7 | @override 8 | State createState() => _CardImgColorState(); 9 | } 10 | 11 | class _CardImgColorState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return Scaffold( 15 | body: ListView.builder( 16 | itemCount: musicList.length, 17 | itemBuilder: (BuildContext context, int index) { 18 | return Card( 19 | color: Theme.of(context).colorScheme.errorContainer, 20 | child: Padding( 21 | padding: const EdgeInsets.all(16.0), 22 | child: ClipRRect( 23 | borderRadius: BorderRadius.circular(10), 24 | child: Image.network(musicList[index]['img'])), 25 | ), 26 | ); 27 | }, 28 | ), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/allscreens/3.push_notifications.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashishkumar90052/flutterdartcodes/abd2225ec1614566c4f94be7cc85874fff1eaa6b/lib/allscreens/3.push_notifications.dart -------------------------------------------------------------------------------- /lib/allscreens/30.qr.dart: -------------------------------------------------------------------------------- 1 | import 'package:dynamicapp/utils/size_config.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:qr_flutter/qr_flutter.dart'; 4 | 5 | class GenerateQRPage extends StatefulWidget { 6 | const GenerateQRPage({super.key}); 7 | 8 | @override 9 | GenerateQRPageState createState() => GenerateQRPageState(); 10 | } 11 | 12 | class GenerateQRPageState extends State { 13 | TextEditingController controller = TextEditingController(); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Scaffold( 18 | bottomNavigationBar: SafeArea( 19 | child: TextField( 20 | controller: controller, 21 | decoration: InputDecoration( 22 | suffixIcon: ElevatedButton( 23 | onPressed: () => setState(() {}), 24 | child: const Text('GENERATE')), 25 | ))), 26 | body: Center( 27 | child: QrImageView( 28 | backgroundColor: colorLearn, 29 | data: controller.text, 30 | size: 300, 31 | embeddedImage: const AssetImage('images/logo.png'), 32 | embeddedImageStyle: const QrEmbeddedImageStyle(size: Size(80, 80)), 33 | ), 34 | ), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/allscreens/31.bottom_nav_badge.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// Flutter code sample for [NavigationBar]. 4 | 5 | class NavigationBarApp extends StatelessWidget { 6 | const NavigationBarApp({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return const NavigationExample(); 11 | } 12 | } 13 | 14 | class NavigationExample extends StatefulWidget { 15 | const NavigationExample({super.key}); 16 | 17 | @override 18 | State createState() => _NavigationExampleState(); 19 | } 20 | 21 | class _NavigationExampleState extends State { 22 | int currentPageIndex = 0; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | bottomNavigationBar: NavigationBar( 28 | onDestinationSelected: (int index) { 29 | setState(() { 30 | currentPageIndex = index; 31 | }); 32 | }, 33 | selectedIndex: currentPageIndex, 34 | destinations: const [ 35 | NavigationDestination( 36 | icon: Icon(Icons.explore), 37 | label: 'Explore', 38 | ), 39 | NavigationDestination( 40 | icon: Icon(Icons.commute), 41 | label: 'Commute', 42 | ), 43 | NavigationDestination( 44 | selectedIcon: Icon(Icons.bookmark), 45 | icon: Icon(Icons.bookmark_border), 46 | label: 'Saved', 47 | ), 48 | ], 49 | ), 50 | body: [ 51 | Container( 52 | color: Colors.red, 53 | alignment: Alignment.center, 54 | child: const Text('Page 1'), 55 | ), 56 | Container( 57 | color: Colors.green, 58 | alignment: Alignment.center, 59 | child: const Text('Page 2'), 60 | ), 61 | Container( 62 | color: Colors.blue, 63 | alignment: Alignment.center, 64 | child: const Text('Page 3'), 65 | ), 66 | ][currentPageIndex], 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/allscreens/33.android_ios.dart: -------------------------------------------------------------------------------- 1 | import 'package:dynamicapp/utils/size_config.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | 5 | class AndroidvsIos extends StatelessWidget { 6 | const AndroidvsIos({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return const MyHomePage(); 11 | } 12 | } 13 | 14 | class MyHomePage extends StatelessWidget { 15 | const MyHomePage({super.key}); 16 | 17 | void openAndroidDialog(BuildContext context) { 18 | showDialog( 19 | context: context, 20 | builder: (BuildContext context) { 21 | return AlertDialog( 22 | title: const Text('Alert Dialog Title'), 23 | content: const Text('This is a demo alert dialog.'), 24 | actions: [ 25 | TextButton( 26 | child: const Text('Cancel'), 27 | onPressed: () => Navigator.of(context).pop()), 28 | TextButton( 29 | child: const Text('OK'), 30 | onPressed: () => Navigator.of(context).pop()), 31 | ], 32 | ); 33 | }, 34 | ); 35 | } 36 | 37 | void openiOSDialog(BuildContext context) { 38 | showCupertinoModalPopup( 39 | context: context, 40 | builder: (BuildContext context) => CupertinoAlertDialog( 41 | title: const Text('Alert'), 42 | content: const Text('Proceed with destructive action?'), 43 | actions: [ 44 | CupertinoDialogAction( 45 | /// This parameter indicates this action is the default, 46 | /// and turns the action's text to bold text. 47 | isDefaultAction: true, 48 | onPressed: () { 49 | Navigator.pop(context); 50 | }, 51 | child: const Text('No'), 52 | ), 53 | CupertinoDialogAction( 54 | /// This parameter indicates the action would perform 55 | /// a destructive action such as deletion, and turns 56 | /// the action's text color to red. 57 | isDestructiveAction: true, 58 | onPressed: () { 59 | Navigator.pop(context); 60 | }, 61 | child: const Text('Yes'), 62 | ), 63 | ], 64 | ), 65 | ); 66 | } 67 | 68 | @override 69 | Widget build(BuildContext context) { 70 | return Scaffold( 71 | appBar: AppBar( 72 | title: const Text('Flutter Dialog'), 73 | ), 74 | body: Center( 75 | child: Column( 76 | mainAxisAlignment: MainAxisAlignment.center, 77 | children: [ 78 | FilledButton( 79 | style: FilledButton.styleFrom( 80 | shape: shape8, minimumSize: const Size(150, 50)), 81 | child: const Text('Android Dialog'), 82 | onPressed: () => openAndroidDialog(context)), 83 | h16, 84 | FilledButton( 85 | style: FilledButton.styleFrom( 86 | shape: shape8, minimumSize: const Size(150, 50)), 87 | child: const Text('iOS Dialog'), 88 | onPressed: () => openiOSDialog(context)), 89 | ], 90 | ), 91 | ), 92 | ); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /lib/allscreens/35.rive.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:rive/rive.dart'; 3 | 4 | class RiveAninmations extends StatefulWidget { 5 | const RiveAninmations({super.key}); 6 | 7 | @override 8 | State createState() => _RiveAninmationsState(); 9 | } 10 | 11 | class _RiveAninmationsState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return const Scaffold( 15 | body: RiveAnimation.network( 16 | 'https://cdn.rive.app/animations/vehicles.riv', 17 | ), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/allscreens/35.sliverappbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FancyAppBar extends StatelessWidget { 4 | const FancyAppBar({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | drawer: const Drawer( 10 | child: SafeArea( 11 | child: ListTile(title: Text('Fancy SliverAppBar')), 12 | ), 13 | ), 14 | body: CustomScrollView( 15 | slivers: [ 16 | SliverAppBar( 17 | actions: [ 18 | IconButton( 19 | onPressed: () {}, 20 | icon: const Icon(Icons.account_circle_rounded, size: 32)) 21 | ], 22 | expandedHeight: 240, 23 | stretchTriggerOffset: 200, 24 | backgroundColor: Colors.indigo.shade700, 25 | stretch: true, 26 | flexibleSpace: 27 | const FlexibleSpaceBar(title: Text('Fancy SliverAppBar')), 28 | floating: false, 29 | pinned: true), 30 | SliverList( 31 | delegate: SliverChildBuilderDelegate( 32 | (BuildContext context, int index) { 33 | return Container( 34 | margin: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 0.0), 35 | height: 128, 36 | child: const Card(), 37 | ); 38 | }, 39 | childCount: 40 | 20, // Replace with the actual number of items in the list 41 | ), 42 | ), 43 | ], 44 | ), 45 | ); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/allscreens/38.video_player.dart: -------------------------------------------------------------------------------- 1 | import 'package:dynamicapp/utils/size_config.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:better_player/better_player.dart'; 4 | 5 | class Video { 6 | final String title; 7 | final String videoUrl; 8 | 9 | Video({required this.title, required this.videoUrl}); 10 | } 11 | 12 | class VideoListScreen extends StatelessWidget { 13 | final List