├── .github
└── FUNDING.yml
├── .gitignore
├── .metadata
├── .vscode
└── launch.json
├── CHANGELOG.md
├── LICENSE
├── README.md
├── example
├── .gitignore
├── .metadata
├── README.md
├── android
│ ├── .gitignore
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ ├── example
│ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── google_bottom_bar
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── res
│ │ │ │ ├── drawable
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ └── settings.gradle
├── ios
│ ├── .gitignore
│ ├── Flutter
│ │ ├── .last_build_id
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── 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
│ ├── main.dart
│ ├── main_advance.dart
│ ├── main_gallery.dart
│ └── main_lite.dart
├── pubspec.lock
├── pubspec.yaml
└── test
│ └── google_nav_bar_test.dart
├── lib
├── google_nav_bar.dart
└── src
│ ├── button.dart
│ ├── gbutton.dart
│ └── gnav.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── google_nav_bar_test.dart
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: sooxt98 # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: sooxt98
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/.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 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | build/
32 |
33 | # Android related
34 | **/android/**/gradle-wrapper.jar
35 | **/android/.gradle
36 | **/android/captures/
37 | **/android/gradlew
38 | **/android/gradlew.bat
39 | **/android/local.properties
40 | **/android/**/GeneratedPluginRegistrant.java
41 |
42 | # iOS/XCode related
43 | **/ios/**/*.mode1v3
44 | **/ios/**/*.mode2v3
45 | **/ios/**/*.moved-aside
46 | **/ios/**/*.pbxuser
47 | **/ios/**/*.perspectivev3
48 | **/ios/**/*sync/
49 | **/ios/**/.sconsign.dblite
50 | **/ios/**/.tags*
51 | **/ios/**/.vagrant/
52 | **/ios/**/DerivedData/
53 | **/ios/**/Icon?
54 | **/ios/**/Pods/
55 | **/ios/**/.symlinks/
56 | **/ios/**/profile
57 | **/ios/**/xcuserdata
58 | **/ios/.generated/
59 | **/ios/Flutter/App.framework
60 | **/ios/Flutter/Flutter.framework
61 | **/ios/Flutter/Flutter.podspec
62 | **/ios/Flutter/Generated.xcconfig
63 | **/ios/Flutter/app.flx
64 | **/ios/Flutter/app.zip
65 | **/ios/Flutter/flutter_assets/
66 | **/ios/Flutter/flutter_export_environment.sh
67 | **/ios/ServiceDefinitions.json
68 | **/ios/Runner/GeneratedPluginRegistrant.*
69 |
70 | # Exceptions to above rules.
71 | !**/ios/**/default.mode1v3
72 | !**/ios/**/default.mode2v3
73 | !**/ios/**/default.pbxuser
74 | !**/ios/**/default.perspectivev3
75 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
76 |
--------------------------------------------------------------------------------
/.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: 924efae96c34cdf2f4b78f219f36419a68b0b4e8
8 | channel: master
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "google_nav_bar",
9 | "request": "launch",
10 | "type": "dart"
11 | },
12 | {
13 | "name": "example",
14 | "cwd": "example",
15 | "request": "launch",
16 | "type": "dart"
17 | }
18 | ]
19 | }
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 5.0.7
2 | * Fixed setState() called after dispose()
3 | * Migrated to Android embedding v2
4 |
5 | ## 5.0.6
6 | * Fixed GButton empty text extra spacing
7 | * Migrated to Android embedding v2
8 |
9 | ## 5.0.5
10 | * Fixed GButton onPressed not working
11 |
12 | ## 5.0.4
13 | * Updated example
14 |
15 | ## 5.0.3
16 | * Empty out the test file
17 |
18 | ## 5.0.2
19 | * Use didUpdateWidget to set selectedIndex when rebuilding (thanks to JagandeepBrar)
20 |
21 | ## 5.0.1
22 | * Null safety migration (thanks to Ascenio)
23 | * Excluded example folder for publishing
24 |
25 | ## 4.0.1
26 | * Reworked animations
27 | * Customizable border
28 |
29 | ## 3.2.0
30 |
31 | * Added customizable button border style and shadow
32 | * Added navbar RTL support (thanks to hennonoman)
33 | * Added semantic label (thanks to tsinis)
34 |
35 | ## 3.1.0
36 |
37 | * Added customizable button border radius and navbar flex behaviour
38 |
39 | ## 3.0.3
40 |
41 | * Added key for testing 2
42 |
43 | ## 3.0.2
44 |
45 | * Added key for testing
46 |
47 | ## 3.0.1
48 |
49 | * Removed unessasary code
50 |
51 | ## 3.0.0
52 |
53 | * Make NavBar great again!
54 |
55 | ## 2.2.0
56 |
57 | * Added Gradient Tab attributes
58 |
59 | ## 2.1.0
60 |
61 | * Added Expandable toucharea, `tabMargin` and `debug` attributes
62 |
63 | ## 2.0.1
64 |
65 | * Fix CupertinoIcons glitch
66 |
67 | ## 2.0.0
68 |
69 | * Customizable tab curve, duration and flexible tabs
70 |
71 | ## 1.0.4
72 |
73 | * added missing dispose method for animation Controller
74 |
75 | ## 1.0.3
76 |
77 | * fix example and indentation, fixed icon size
78 |
79 | ## 1.0.2
80 |
81 | * fixed button background color greyish issue onTap
82 |
83 | ## 1.0.1
84 |
85 | * fixed selectedIndex button won't change after setState
86 | * Added fresh new example and simple_example
87 |
88 | ## 1.0.0
89 |
90 | * Formatted code and readme
91 |
92 | ## 0.0.1 Unleashed
93 |
94 | * My first widget was born
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Soo Xiao Tong
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # google_nav_bar
2 |
3 |
4 |
5 |
6 | A modern google style nav bar for flutter.
7 |
8 | 
9 |
10 |
11 | GoogleNavBar is a Flutter widget designed by [Aurelien Salomon](https://dribbble.com/shots/5925052-Google-Bottom-Bar-Navigation-Pattern/) and developed by [sooxt98](https://www.instagram.com/sooxt98/).
12 |
13 |
14 | ## Getting Started
15 |
16 | Add this to your package's `pubspec.yaml` file:
17 | ```
18 | ...
19 | dependencies:
20 | google_nav_bar: ^5.0.7
21 |
22 | ```
23 |
24 | Now in your Dart code, you can use:
25 | ```
26 | import 'package:google_nav_bar/google_nav_bar.dart';
27 | ```
28 |
29 | ## Usage
30 |
31 | Style your tab globally with GNav's attribute, if you wish to style tab separately, use GButton's attribute
32 |
33 | ``` dart
34 | GNav(
35 | rippleColor: Colors.grey[800], // tab button ripple color when pressed
36 | hoverColor: Colors.grey[700], // tab button hover color
37 | haptic: true, // haptic feedback
38 | tabBorderRadius: 15,
39 | tabActiveBorder: Border.all(color: Colors.black, width: 1), // tab button border
40 | tabBorder: Border.all(color: Colors.grey, width: 1), // tab button border
41 | tabShadow: [BoxShadow(color: Colors.grey.withOpacity(0.5), blurRadius: 8)], // tab button shadow
42 | curve: Curves.easeOutExpo, // tab animation curves
43 | duration: Duration(milliseconds: 900), // tab animation duration
44 | gap: 8, // the tab button gap between icon and text
45 | color: Colors.grey[800], // unselected icon color
46 | activeColor: Colors.purple, // selected icon and text color
47 | iconSize: 24, // tab button icon size
48 | tabBackgroundColor: Colors.purple.withOpacity(0.1), // selected tab background color
49 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 5), // navigation bar padding
50 | tabs: [
51 | GButton(
52 | icon: LineIcons.home,
53 | text: 'Home',
54 | ),
55 | GButton(
56 | icon: LineIcons.heart_o,
57 | text: 'Likes',
58 | ),
59 | GButton(
60 | icon: LineIcons.search,
61 | text: 'Search',
62 | ),
63 | GButton(
64 | icon: LineIcons.user,
65 | text: 'Profile',
66 | )
67 | ]
68 | )
69 | ```
70 |
71 | View the example folder
72 |
73 | There are 4 different use case included in the /example directory, go try it out!
74 |
--------------------------------------------------------------------------------
/example/.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 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
--------------------------------------------------------------------------------
/example/.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: 1aafb3a8b9b0c36241c5f5b34ee914770f015818
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | # example
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://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/example/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.google_nav_bar"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'androidx.test:runner:1.1.1'
66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
67 | }
68 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/example/android/app/src/main/kotlin/com/example/google_bottom_bar/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.google_nav_bar
2 |
3 | import io.flutter.embedding.android.FlutterActivity;
4 |
5 | class MainActivity: FlutterActivity() {
6 | override fun onCreate(savedInstanceState: Bundle?) {
7 | super.onCreate(savedInstanceState)
8 | GeneratedPluginRegistrant.registerWith(this)
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
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 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/example/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-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/example/ios/Flutter/.last_build_id:
--------------------------------------------------------------------------------
1 | d12ed9d535f54d07b81e41e433609f87
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/example/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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 97C146F11CF9000F007C117D /* Supporting Files */,
94 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
95 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
96 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
97 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
98 | );
99 | path = Runner;
100 | sourceTree = "";
101 | };
102 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
103 | isa = PBXGroup;
104 | children = (
105 | );
106 | name = "Supporting Files";
107 | sourceTree = "";
108 | };
109 | /* End PBXGroup section */
110 |
111 | /* Begin PBXNativeTarget section */
112 | 97C146ED1CF9000F007C117D /* Runner */ = {
113 | isa = PBXNativeTarget;
114 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
115 | buildPhases = (
116 | 9740EEB61CF901F6004384FC /* Run Script */,
117 | 97C146EA1CF9000F007C117D /* Sources */,
118 | 97C146EB1CF9000F007C117D /* Frameworks */,
119 | 97C146EC1CF9000F007C117D /* Resources */,
120 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
121 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
122 | );
123 | buildRules = (
124 | );
125 | dependencies = (
126 | );
127 | name = Runner;
128 | productName = Runner;
129 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
130 | productType = "com.apple.product-type.application";
131 | };
132 | /* End PBXNativeTarget section */
133 |
134 | /* Begin PBXProject section */
135 | 97C146E61CF9000F007C117D /* Project object */ = {
136 | isa = PBXProject;
137 | attributes = {
138 | LastUpgradeCheck = 1020;
139 | ORGANIZATIONNAME = "The Chromium Authors";
140 | TargetAttributes = {
141 | 97C146ED1CF9000F007C117D = {
142 | CreatedOnToolsVersion = 7.3.1;
143 | DevelopmentTeam = 3Q83YDQ42X;
144 | LastSwiftMigration = 1100;
145 | };
146 | };
147 | };
148 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
149 | compatibilityVersion = "Xcode 3.2";
150 | developmentRegion = en;
151 | hasScannedForEncodings = 0;
152 | knownRegions = (
153 | en,
154 | Base,
155 | );
156 | mainGroup = 97C146E51CF9000F007C117D;
157 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
158 | projectDirPath = "";
159 | projectRoot = "";
160 | targets = (
161 | 97C146ED1CF9000F007C117D /* Runner */,
162 | );
163 | };
164 | /* End PBXProject section */
165 |
166 | /* Begin PBXResourcesBuildPhase section */
167 | 97C146EC1CF9000F007C117D /* Resources */ = {
168 | isa = PBXResourcesBuildPhase;
169 | buildActionMask = 2147483647;
170 | files = (
171 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
172 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
173 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
174 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
175 | );
176 | runOnlyForDeploymentPostprocessing = 0;
177 | };
178 | /* End PBXResourcesBuildPhase section */
179 |
180 | /* Begin PBXShellScriptBuildPhase section */
181 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
182 | isa = PBXShellScriptBuildPhase;
183 | buildActionMask = 2147483647;
184 | files = (
185 | );
186 | inputPaths = (
187 | );
188 | name = "Thin Binary";
189 | outputPaths = (
190 | );
191 | runOnlyForDeploymentPostprocessing = 0;
192 | shellPath = /bin/sh;
193 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
194 | };
195 | 9740EEB61CF901F6004384FC /* Run Script */ = {
196 | isa = PBXShellScriptBuildPhase;
197 | buildActionMask = 2147483647;
198 | files = (
199 | );
200 | inputPaths = (
201 | );
202 | name = "Run Script";
203 | outputPaths = (
204 | );
205 | runOnlyForDeploymentPostprocessing = 0;
206 | shellPath = /bin/sh;
207 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
208 | };
209 | /* End PBXShellScriptBuildPhase section */
210 |
211 | /* Begin PBXSourcesBuildPhase section */
212 | 97C146EA1CF9000F007C117D /* Sources */ = {
213 | isa = PBXSourcesBuildPhase;
214 | buildActionMask = 2147483647;
215 | files = (
216 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
217 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
218 | );
219 | runOnlyForDeploymentPostprocessing = 0;
220 | };
221 | /* End PBXSourcesBuildPhase section */
222 |
223 | /* Begin PBXVariantGroup section */
224 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
225 | isa = PBXVariantGroup;
226 | children = (
227 | 97C146FB1CF9000F007C117D /* Base */,
228 | );
229 | name = Main.storyboard;
230 | sourceTree = "";
231 | };
232 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
233 | isa = PBXVariantGroup;
234 | children = (
235 | 97C147001CF9000F007C117D /* Base */,
236 | );
237 | name = LaunchScreen.storyboard;
238 | sourceTree = "";
239 | };
240 | /* End PBXVariantGroup section */
241 |
242 | /* Begin XCBuildConfiguration section */
243 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
244 | isa = XCBuildConfiguration;
245 | buildSettings = {
246 | ALWAYS_SEARCH_USER_PATHS = NO;
247 | CLANG_ANALYZER_NONNULL = YES;
248 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
249 | CLANG_CXX_LIBRARY = "libc++";
250 | CLANG_ENABLE_MODULES = YES;
251 | CLANG_ENABLE_OBJC_ARC = YES;
252 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
253 | CLANG_WARN_BOOL_CONVERSION = YES;
254 | CLANG_WARN_COMMA = YES;
255 | CLANG_WARN_CONSTANT_CONVERSION = YES;
256 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
258 | CLANG_WARN_EMPTY_BODY = YES;
259 | CLANG_WARN_ENUM_CONVERSION = YES;
260 | CLANG_WARN_INFINITE_RECURSION = YES;
261 | CLANG_WARN_INT_CONVERSION = YES;
262 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
263 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
266 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
267 | CLANG_WARN_STRICT_PROTOTYPES = YES;
268 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
269 | CLANG_WARN_UNREACHABLE_CODE = YES;
270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
272 | COPY_PHASE_STRIP = NO;
273 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
274 | ENABLE_NS_ASSERTIONS = NO;
275 | ENABLE_STRICT_OBJC_MSGSEND = YES;
276 | GCC_C_LANGUAGE_STANDARD = gnu99;
277 | GCC_NO_COMMON_BLOCKS = YES;
278 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
279 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
280 | GCC_WARN_UNDECLARED_SELECTOR = YES;
281 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
282 | GCC_WARN_UNUSED_FUNCTION = YES;
283 | GCC_WARN_UNUSED_VARIABLE = YES;
284 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
285 | MTL_ENABLE_DEBUG_INFO = NO;
286 | SDKROOT = iphoneos;
287 | SUPPORTED_PLATFORMS = iphoneos;
288 | TARGETED_DEVICE_FAMILY = "1,2";
289 | VALIDATE_PRODUCT = YES;
290 | };
291 | name = Profile;
292 | };
293 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
294 | isa = XCBuildConfiguration;
295 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
296 | buildSettings = {
297 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
298 | CLANG_ENABLE_MODULES = YES;
299 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
300 | DEVELOPMENT_TEAM = 3Q83YDQ42X;
301 | ENABLE_BITCODE = NO;
302 | FRAMEWORK_SEARCH_PATHS = (
303 | "$(inherited)",
304 | "$(PROJECT_DIR)/Flutter",
305 | );
306 | INFOPLIST_FILE = Runner/Info.plist;
307 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
308 | LIBRARY_SEARCH_PATHS = (
309 | "$(inherited)",
310 | "$(PROJECT_DIR)/Flutter",
311 | );
312 | PRODUCT_BUNDLE_IDENTIFIER = space.sooxt98.gnav;
313 | PRODUCT_NAME = "$(TARGET_NAME)";
314 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
315 | SWIFT_VERSION = 5.0;
316 | VERSIONING_SYSTEM = "apple-generic";
317 | };
318 | name = Profile;
319 | };
320 | 97C147031CF9000F007C117D /* Debug */ = {
321 | isa = XCBuildConfiguration;
322 | buildSettings = {
323 | ALWAYS_SEARCH_USER_PATHS = NO;
324 | CLANG_ANALYZER_NONNULL = YES;
325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
326 | CLANG_CXX_LIBRARY = "libc++";
327 | CLANG_ENABLE_MODULES = YES;
328 | CLANG_ENABLE_OBJC_ARC = YES;
329 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
330 | CLANG_WARN_BOOL_CONVERSION = YES;
331 | CLANG_WARN_COMMA = YES;
332 | CLANG_WARN_CONSTANT_CONVERSION = YES;
333 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
335 | CLANG_WARN_EMPTY_BODY = YES;
336 | CLANG_WARN_ENUM_CONVERSION = YES;
337 | CLANG_WARN_INFINITE_RECURSION = YES;
338 | CLANG_WARN_INT_CONVERSION = YES;
339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
340 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
344 | CLANG_WARN_STRICT_PROTOTYPES = YES;
345 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
346 | CLANG_WARN_UNREACHABLE_CODE = YES;
347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
349 | COPY_PHASE_STRIP = NO;
350 | DEBUG_INFORMATION_FORMAT = dwarf;
351 | ENABLE_STRICT_OBJC_MSGSEND = YES;
352 | ENABLE_TESTABILITY = YES;
353 | GCC_C_LANGUAGE_STANDARD = gnu99;
354 | GCC_DYNAMIC_NO_PIC = NO;
355 | GCC_NO_COMMON_BLOCKS = YES;
356 | GCC_OPTIMIZATION_LEVEL = 0;
357 | GCC_PREPROCESSOR_DEFINITIONS = (
358 | "DEBUG=1",
359 | "$(inherited)",
360 | );
361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
363 | GCC_WARN_UNDECLARED_SELECTOR = YES;
364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
365 | GCC_WARN_UNUSED_FUNCTION = YES;
366 | GCC_WARN_UNUSED_VARIABLE = YES;
367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
368 | MTL_ENABLE_DEBUG_INFO = YES;
369 | ONLY_ACTIVE_ARCH = YES;
370 | SDKROOT = iphoneos;
371 | TARGETED_DEVICE_FAMILY = "1,2";
372 | };
373 | name = Debug;
374 | };
375 | 97C147041CF9000F007C117D /* Release */ = {
376 | isa = XCBuildConfiguration;
377 | buildSettings = {
378 | ALWAYS_SEARCH_USER_PATHS = NO;
379 | CLANG_ANALYZER_NONNULL = YES;
380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
381 | CLANG_CXX_LIBRARY = "libc++";
382 | CLANG_ENABLE_MODULES = YES;
383 | CLANG_ENABLE_OBJC_ARC = YES;
384 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
385 | CLANG_WARN_BOOL_CONVERSION = YES;
386 | CLANG_WARN_COMMA = YES;
387 | CLANG_WARN_CONSTANT_CONVERSION = YES;
388 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
390 | CLANG_WARN_EMPTY_BODY = YES;
391 | CLANG_WARN_ENUM_CONVERSION = YES;
392 | CLANG_WARN_INFINITE_RECURSION = YES;
393 | CLANG_WARN_INT_CONVERSION = YES;
394 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
395 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
396 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
397 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
398 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
399 | CLANG_WARN_STRICT_PROTOTYPES = YES;
400 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
401 | CLANG_WARN_UNREACHABLE_CODE = YES;
402 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
403 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
404 | COPY_PHASE_STRIP = NO;
405 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
406 | ENABLE_NS_ASSERTIONS = NO;
407 | ENABLE_STRICT_OBJC_MSGSEND = YES;
408 | GCC_C_LANGUAGE_STANDARD = gnu99;
409 | GCC_NO_COMMON_BLOCKS = YES;
410 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
411 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
412 | GCC_WARN_UNDECLARED_SELECTOR = YES;
413 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
414 | GCC_WARN_UNUSED_FUNCTION = YES;
415 | GCC_WARN_UNUSED_VARIABLE = YES;
416 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
417 | MTL_ENABLE_DEBUG_INFO = NO;
418 | SDKROOT = iphoneos;
419 | SUPPORTED_PLATFORMS = iphoneos;
420 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
421 | TARGETED_DEVICE_FAMILY = "1,2";
422 | VALIDATE_PRODUCT = YES;
423 | };
424 | name = Release;
425 | };
426 | 97C147061CF9000F007C117D /* Debug */ = {
427 | isa = XCBuildConfiguration;
428 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
429 | buildSettings = {
430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
431 | CLANG_ENABLE_MODULES = YES;
432 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
433 | DEVELOPMENT_TEAM = 3Q83YDQ42X;
434 | ENABLE_BITCODE = NO;
435 | FRAMEWORK_SEARCH_PATHS = (
436 | "$(inherited)",
437 | "$(PROJECT_DIR)/Flutter",
438 | );
439 | INFOPLIST_FILE = Runner/Info.plist;
440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
441 | LIBRARY_SEARCH_PATHS = (
442 | "$(inherited)",
443 | "$(PROJECT_DIR)/Flutter",
444 | );
445 | PRODUCT_BUNDLE_IDENTIFIER = space.sooxt98.gnav;
446 | PRODUCT_NAME = "$(TARGET_NAME)";
447 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
449 | SWIFT_VERSION = 5.0;
450 | VERSIONING_SYSTEM = "apple-generic";
451 | };
452 | name = Debug;
453 | };
454 | 97C147071CF9000F007C117D /* Release */ = {
455 | isa = XCBuildConfiguration;
456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
457 | buildSettings = {
458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
459 | CLANG_ENABLE_MODULES = YES;
460 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
461 | DEVELOPMENT_TEAM = 3Q83YDQ42X;
462 | ENABLE_BITCODE = NO;
463 | FRAMEWORK_SEARCH_PATHS = (
464 | "$(inherited)",
465 | "$(PROJECT_DIR)/Flutter",
466 | );
467 | INFOPLIST_FILE = Runner/Info.plist;
468 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
469 | LIBRARY_SEARCH_PATHS = (
470 | "$(inherited)",
471 | "$(PROJECT_DIR)/Flutter",
472 | );
473 | PRODUCT_BUNDLE_IDENTIFIER = space.sooxt98.gnav;
474 | PRODUCT_NAME = "$(TARGET_NAME)";
475 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
476 | SWIFT_VERSION = 5.0;
477 | VERSIONING_SYSTEM = "apple-generic";
478 | };
479 | name = Release;
480 | };
481 | /* End XCBuildConfiguration section */
482 |
483 | /* Begin XCConfigurationList section */
484 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
485 | isa = XCConfigurationList;
486 | buildConfigurations = (
487 | 97C147031CF9000F007C117D /* Debug */,
488 | 97C147041CF9000F007C117D /* Release */,
489 | 249021D3217E4FDB00AE95B9 /* Profile */,
490 | );
491 | defaultConfigurationIsVisible = 0;
492 | defaultConfigurationName = Release;
493 | };
494 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
495 | isa = XCConfigurationList;
496 | buildConfigurations = (
497 | 97C147061CF9000F007C117D /* Debug */,
498 | 97C147071CF9000F007C117D /* Release */,
499 | 249021D4217E4FDB00AE95B9 /* Profile */,
500 | );
501 | defaultConfigurationIsVisible = 0;
502 | defaultConfigurationName = Release;
503 | };
504 | /* End XCConfigurationList section */
505 | };
506 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
507 | }
508 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sooxt98/google_nav_bar/1d999a84869be048e111458943af8d3d54d4d8f2/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/example/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.
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 |
--------------------------------------------------------------------------------
/example/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 | google_nav_bar
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 |
--------------------------------------------------------------------------------
/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_nav_bar/google_nav_bar.dart';
3 | import 'package:line_icons/line_icons.dart';
4 |
5 | void main() => runApp(MaterialApp(
6 | builder: (context, child) {
7 | return Directionality(textDirection: TextDirection.ltr, child: child!);
8 | },
9 | title: 'GNav',
10 | theme: ThemeData(
11 | primaryColor: Colors.grey[800],
12 | ),
13 | home: Example()));
14 |
15 | class Example extends StatefulWidget {
16 | @override
17 | _ExampleState createState() => _ExampleState();
18 | }
19 |
20 | class _ExampleState extends State {
21 | int _selectedIndex = 0;
22 | static const TextStyle optionStyle =
23 | TextStyle(fontSize: 30, fontWeight: FontWeight.w600);
24 | static const List _widgetOptions = [
25 | Text(
26 | 'Home',
27 | style: optionStyle,
28 | ),
29 | Text(
30 | 'Likes',
31 | style: optionStyle,
32 | ),
33 | Text(
34 | 'Search',
35 | style: optionStyle,
36 | ),
37 | Text(
38 | 'Profile',
39 | style: optionStyle,
40 | ),
41 | ];
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | return Scaffold(
46 | backgroundColor: Colors.white,
47 | appBar: AppBar(
48 | elevation: 20,
49 | title: const Text('GoogleNavBar'),
50 | ),
51 | body: Center(
52 | child: _widgetOptions.elementAt(_selectedIndex),
53 | ),
54 | bottomNavigationBar: Container(
55 | decoration: BoxDecoration(
56 | color: Colors.white,
57 | boxShadow: [
58 | BoxShadow(
59 | blurRadius: 20,
60 | color: Colors.black.withOpacity(.1),
61 | )
62 | ],
63 | ),
64 | child: SafeArea(
65 | child: Padding(
66 | padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 8),
67 | child: GNav(
68 | rippleColor: Colors.grey[300]!,
69 | hoverColor: Colors.grey[100]!,
70 | gap: 8,
71 | activeColor: Colors.black,
72 | iconSize: 24,
73 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 12),
74 | duration: Duration(milliseconds: 400),
75 | tabBackgroundColor: Colors.grey[100]!,
76 | color: Colors.black,
77 | tabs: [
78 | GButton(
79 | icon: LineIcons.home,
80 | text: 'Home',
81 | ),
82 | GButton(
83 | icon: LineIcons.heart,
84 | text: 'Likes',
85 | ),
86 | GButton(
87 | icon: LineIcons.search,
88 | text: 'Search',
89 | ),
90 | GButton(
91 | icon: LineIcons.user,
92 | text: 'Profile',
93 | ),
94 | ],
95 | selectedIndex: _selectedIndex,
96 | onTabChange: (index) {
97 | setState(() {
98 | _selectedIndex = index;
99 | });
100 | },
101 | ),
102 | ),
103 | ),
104 | ),
105 | );
106 | }
107 | }
108 |
--------------------------------------------------------------------------------
/example/lib/main_advance.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_nav_bar/google_nav_bar.dart';
3 | import 'package:line_icons/line_icons.dart';
4 | import 'package:badges/badges.dart';
5 |
6 | void main() => runApp(TabPage());
7 |
8 | class TabPage extends StatefulWidget {
9 | @override
10 | _TabPageState createState() => _TabPageState();
11 | }
12 |
13 | class _TabPageState extends State {
14 | int selectedIndex = 0;
15 | int badge = 0;
16 | final padding = EdgeInsets.symmetric(horizontal: 18, vertical: 12);
17 | double gap = 10;
18 |
19 | PageController controller = PageController();
20 |
21 | List colors = [
22 | Colors.purple,
23 | Colors.pink,
24 | Colors.amber[600]!,
25 | Colors.teal
26 | ];
27 |
28 | @override
29 | void initState() {
30 | super.initState();
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return MaterialApp(
36 | home: Scaffold(
37 | extendBody: true,
38 | appBar: AppBar(
39 | brightness: Brightness.light,
40 | title: Text(
41 | 'GoogleNavBar',
42 | style: TextStyle(color: Colors.black),
43 | ),
44 | backgroundColor: Colors.white,
45 | ),
46 | body: PageView.builder(
47 | onPageChanged: (page) {
48 | setState(() {
49 | selectedIndex = page;
50 | badge = badge + 1;
51 | });
52 | },
53 | controller: controller,
54 | itemBuilder: (context, position) {
55 | return Container(
56 | color: colors[position],
57 | );
58 | },
59 | itemCount: 4,
60 | ),
61 | bottomNavigationBar: SafeArea(
62 | child: Container(
63 | margin: EdgeInsets.symmetric(horizontal: 20, vertical: 5),
64 | decoration: BoxDecoration(
65 | color: Colors.white,
66 | borderRadius: BorderRadius.all(Radius.circular(100)),
67 | boxShadow: [
68 | BoxShadow(
69 | spreadRadius: -10,
70 | blurRadius: 60,
71 | color: Colors.black.withOpacity(.4),
72 | offset: Offset(0, 25),
73 | )
74 | ],
75 | ),
76 | child: Padding(
77 | padding: const EdgeInsets.symmetric(horizontal: 3.0, vertical: 3),
78 | child: GNav(
79 | tabs: [
80 | GButton(
81 | gap: gap,
82 | iconActiveColor: Colors.purple,
83 | iconColor: Colors.black,
84 | textColor: Colors.purple,
85 | backgroundColor: Colors.purple.withOpacity(.2),
86 | iconSize: 24,
87 | padding: padding,
88 | icon: LineIcons.home,
89 | text: 'Home',
90 | ),
91 | GButton(
92 | gap: gap,
93 | iconActiveColor: Colors.pink,
94 | iconColor: Colors.black,
95 | textColor: Colors.pink,
96 | backgroundColor: Colors.pink.withOpacity(.2),
97 | iconSize: 24,
98 | padding: padding,
99 | icon: LineIcons.heart,
100 | leading: selectedIndex == 1 || badge == 0
101 | ? null
102 | : Badge(
103 | badgeColor: Colors.red.shade100,
104 | elevation: 0,
105 | position: BadgePosition.topEnd(top: -12, end: -12),
106 | badgeContent: Text(
107 | badge.toString(),
108 | style: TextStyle(color: Colors.red.shade900),
109 | ),
110 | child: Icon(
111 | LineIcons.heart,
112 | color: selectedIndex == 1
113 | ? Colors.pink
114 | : Colors.black,
115 | ),
116 | ),
117 | ),
118 | GButton(
119 | gap: gap,
120 | iconActiveColor: Colors.amber[600],
121 | iconColor: Colors.black,
122 | textColor: Colors.amber[600],
123 | backgroundColor: Colors.amber[600]!.withOpacity(.2),
124 | iconSize: 24,
125 | padding: padding,
126 | icon: LineIcons.search,
127 | text: 'Search',
128 | ),
129 | GButton(
130 | gap: gap,
131 | iconActiveColor: Colors.teal,
132 | iconColor: Colors.black,
133 | textColor: Colors.teal,
134 | backgroundColor: Colors.teal.withOpacity(.2),
135 | iconSize: 24,
136 | padding: padding,
137 | icon: LineIcons.user,
138 | leading: CircleAvatar(
139 | radius: 12,
140 | backgroundImage: NetworkImage(
141 | 'https://sooxt98.space/content/images/size/w100/2019/01/profile.png',
142 | ),
143 | ),
144 | text: 'Sheldon',
145 | )
146 | ],
147 | selectedIndex: selectedIndex,
148 | onTabChange: (index) {
149 | setState(() {
150 | selectedIndex = index;
151 | });
152 | controller.jumpToPage(index);
153 | },
154 | ),
155 | ),
156 | ),
157 | ),
158 | ),
159 | );
160 | }
161 | }
162 |
--------------------------------------------------------------------------------
/example/lib/main_gallery.dart:
--------------------------------------------------------------------------------
1 | import 'package:badges/badges.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:line_icons/line_icons.dart';
4 | import 'package:google_nav_bar/google_nav_bar.dart';
5 |
6 | void main() => runApp(MyApp());
7 |
8 | class MyApp extends StatelessWidget {
9 | @override
10 | Widget build(BuildContext context) {
11 | return MaterialApp(
12 | theme: ThemeData(
13 | primarySwatch: Colors.blue,
14 | ),
15 | home: MyHomePage(title: 'Flutter Demo Home Page'),
16 | );
17 | }
18 | }
19 |
20 | class MyHomePage extends StatefulWidget {
21 | const MyHomePage({Key? key, this.title}) : super(key: key);
22 |
23 | final String? title;
24 |
25 | @override
26 | _MyHomePageState createState() => _MyHomePageState();
27 | }
28 |
29 | class _MyHomePageState extends State {
30 | int selectedIndex = 0;
31 | int badge = 0;
32 |
33 | List tabs = [];
34 | List colors = [
35 | Colors.purple,
36 | Colors.pink,
37 | Colors.amber[600]!,
38 | Colors.teal,
39 | Colors.lightBlue
40 | ];
41 |
42 | @override
43 | void initState() {
44 | super.initState();
45 | }
46 |
47 | void _tabChanged(int index) {
48 | badge = badge + 1;
49 | setState(() {
50 | selectedIndex = index;
51 | });
52 | }
53 |
54 | @override
55 | Widget build(BuildContext context) {
56 | return Scaffold(
57 | backgroundColor: Colors.white,
58 | body: AnimatedContainer(
59 | duration: Duration(milliseconds: 800),
60 | color: colors[selectedIndex],
61 | child: Center(
62 | child: Column(
63 | mainAxisAlignment: MainAxisAlignment.center,
64 | children: [
65 | Container(
66 | decoration: BoxDecoration(
67 | color: Colors.black,
68 | boxShadow: [
69 | BoxShadow(
70 | spreadRadius: -10,
71 | blurRadius: 60,
72 | color: Colors.black.withOpacity(.20),
73 | offset: Offset(0, 15),
74 | )
75 | ],
76 | ),
77 | child: Padding(
78 | padding: const EdgeInsets.symmetric(
79 | horizontal: 16.0, vertical: 22),
80 | child: GNav(
81 | gap: 10,
82 | color: Colors.grey[600],
83 | activeColor: Colors.white,
84 | rippleColor: Colors.grey[800]!,
85 | hoverColor: Colors.grey[700]!,
86 | iconSize: 20,
87 | textStyle: TextStyle(fontSize: 16, color: Colors.white),
88 | tabBackgroundColor: Colors.grey[900]!,
89 | padding:
90 | EdgeInsets.symmetric(horizontal: 20, vertical: 16.5),
91 | duration: Duration(milliseconds: 800),
92 | tabs: [
93 | GButton(
94 | icon: LineIcons.home,
95 | text: 'Home',
96 | ),
97 | GButton(
98 | icon: LineIcons.heart,
99 | text: 'Likes',
100 | ),
101 | GButton(
102 | icon: LineIcons.search,
103 | text: 'Search',
104 | ),
105 | GButton(
106 | icon: LineIcons.user,
107 | text: 'Profile',
108 | ),
109 | ],
110 | selectedIndex: selectedIndex,
111 | onTabChange: _tabChanged,
112 | ),
113 | ),
114 | ),
115 | Container(
116 | decoration: BoxDecoration(
117 | color: Colors.white,
118 | boxShadow: [
119 | BoxShadow(
120 | spreadRadius: -10,
121 | blurRadius: 60,
122 | color: Colors.black.withOpacity(.20),
123 | offset: Offset(0, 15),
124 | )
125 | ],
126 | ),
127 | child: Padding(
128 | padding: const EdgeInsets.symmetric(
129 | horizontal: 16.0, vertical: 22),
130 | child: GNav(
131 | tabActiveBorder: Border.all(color: Colors.black),
132 | gap: 10,
133 | color: Colors.grey[600],
134 | activeColor: Colors.black,
135 | rippleColor: Colors.grey[300]!,
136 | hoverColor: Colors.grey[100]!,
137 | iconSize: 20,
138 | textStyle: TextStyle(fontSize: 16, color: Colors.black),
139 | padding:
140 | EdgeInsets.symmetric(horizontal: 20, vertical: 14.5),
141 | duration: Duration(milliseconds: 800),
142 | tabs: [
143 | GButton(
144 | icon: LineIcons.home,
145 | text: 'Get',
146 | ),
147 | GButton(
148 | icon: LineIcons.heart,
149 | text: 'This',
150 | leading: selectedIndex == 1 || badge == 0
151 | ? null
152 | : Badge(
153 | badgeColor: Colors.red.shade100,
154 | elevation: 0,
155 | position:
156 | BadgePosition.topEnd(top: -12, end: -12),
157 | badgeContent: Text(
158 | badge.toString(),
159 | style: TextStyle(color: Colors.red.shade900),
160 | ),
161 | child: Icon(
162 | LineIcons.heart,
163 | size: 20,
164 | color: selectedIndex == 1
165 | ? Colors.pink
166 | : Colors.black,
167 | ),
168 | ),
169 | ),
170 | GButton(
171 | icon: LineIcons.search,
172 | text: 'NavBar',
173 | ),
174 | GButton(
175 | icon: LineIcons.user,
176 | text: 'Now!',
177 | leading: CircleAvatar(
178 | radius: 12,
179 | backgroundImage: NetworkImage(
180 | 'https://sooxt98.space/content/images/size/w100/2019/01/profile.png'),
181 | ),
182 | ),
183 | ],
184 | selectedIndex: selectedIndex,
185 | onTabChange: _tabChanged,
186 | ),
187 | ),
188 | ),
189 | Container(
190 | decoration: BoxDecoration(color: Colors.white),
191 | child: Padding(
192 | padding: const EdgeInsets.symmetric(
193 | horizontal: 22.0, vertical: 14),
194 | child: GNav(
195 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 14),
196 | duration: Duration(milliseconds: 800),
197 | gap: 8.5,
198 | tabs: [
199 | GButton(
200 | iconActiveColor: Colors.purple,
201 | iconColor: Colors.black,
202 | textColor: Colors.purple,
203 | backgroundColor: Colors.purple.withOpacity(.2),
204 | iconSize: 24,
205 | icon: LineIcons.home,
206 | text: 'Home',
207 | ),
208 | GButton(
209 | iconActiveColor: Colors.pink,
210 | iconColor: Colors.black,
211 | textColor: Colors.pink,
212 | backgroundColor: Colors.pink.withOpacity(.2),
213 | iconSize: 24,
214 | icon: LineIcons.heart,
215 | text: 'Likes',
216 | ),
217 | GButton(
218 | iconActiveColor: Colors.amber[600],
219 | iconColor: Colors.black,
220 | textColor: Colors.amber[600],
221 | backgroundColor: Colors.amber[600]!.withOpacity(.2),
222 | iconSize: 24,
223 | icon: LineIcons.search,
224 | text: 'Search',
225 | ),
226 | GButton(
227 | iconActiveColor: Colors.teal,
228 | iconColor: Colors.black,
229 | textColor: Colors.teal,
230 | backgroundColor: Colors.teal.withOpacity(.2),
231 | iconSize: 24,
232 | icon: LineIcons.user,
233 | text: 'Profile',
234 | )
235 | ],
236 | selectedIndex: selectedIndex,
237 | onTabChange: _tabChanged,
238 | ),
239 | ),
240 | ),
241 | Container(
242 | decoration: BoxDecoration(color: Colors.white),
243 | child: Padding(
244 | padding: const EdgeInsets.symmetric(
245 | horizontal: 16.0, vertical: 22),
246 | child: GNav(
247 | tabBackgroundGradient: LinearGradient(
248 | begin: Alignment.topRight,
249 | end: Alignment.bottomLeft,
250 | colors: [Colors.lightBlue[100]!, Colors.cyan],
251 | ),
252 | gap: 8,
253 | tabBorderRadius: 15,
254 | color: Colors.grey[600],
255 | activeColor: Colors.white,
256 | iconSize: 16,
257 | textStyle: TextStyle(fontSize: 12, color: Colors.white),
258 | tabBackgroundColor: Colors.grey[800]!,
259 | padding:
260 | EdgeInsets.symmetric(horizontal: 20, vertical: 16.5),
261 | duration: Duration(milliseconds: 800),
262 | tabs: [
263 | GButton(
264 | icon: LineIcons.home,
265 | text: 'Home',
266 | ),
267 | GButton(
268 | icon: LineIcons.heart,
269 | text: 'Likes',
270 | ),
271 | GButton(
272 | icon: LineIcons.search,
273 | text: 'Search',
274 | ),
275 | GButton(
276 | icon: LineIcons.user,
277 | text: 'Profile',
278 | ),
279 | GButton(
280 | icon: LineIcons.cog,
281 | text: 'Settings',
282 | ),
283 | ],
284 | selectedIndex: selectedIndex,
285 | onTabChange: _tabChanged,
286 | ),
287 | ),
288 | ),
289 | ],
290 | ),
291 | ),
292 | ),
293 | );
294 | }
295 | }
296 |
--------------------------------------------------------------------------------
/example/lib/main_lite.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_nav_bar/google_nav_bar.dart';
3 | import 'package:line_icons/line_icons.dart';
4 |
5 | void main() => runApp(MyApp());
6 |
7 | class MyApp extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return MaterialApp(
11 | theme: ThemeData(
12 | primarySwatch: Colors.blue,
13 | ),
14 | home: MyHomePage(title: 'Flutter Demo Home Page'),
15 | );
16 | }
17 | }
18 |
19 | class MyHomePage extends StatefulWidget {
20 | const MyHomePage({Key? key, this.title}) : super(key: key);
21 |
22 | final String? title;
23 |
24 | @override
25 | _MyHomePageState createState() => _MyHomePageState();
26 | }
27 |
28 | class _MyHomePageState extends State {
29 | int selectedIndex = 0;
30 |
31 | List tabs = [];
32 | List colors = [
33 | Colors.purple,
34 | Colors.pink,
35 | Colors.amber[600]!,
36 | Colors.teal
37 | ];
38 |
39 | @override
40 | void initState() {
41 | super.initState();
42 | }
43 |
44 | @override
45 | Widget build(BuildContext context) {
46 | return Scaffold(
47 | backgroundColor: Colors.white,
48 | body: AnimatedContainer(
49 | duration: Duration(milliseconds: 300),
50 | color: colors[selectedIndex],
51 | child: Center(
52 | child: Container(
53 | decoration: BoxDecoration(
54 | color: Colors.white,
55 | boxShadow: [
56 | BoxShadow(
57 | spreadRadius: -10,
58 | blurRadius: 60,
59 | color: Colors.black.withOpacity(.20),
60 | offset: Offset(0, 15),
61 | )
62 | ],
63 | ),
64 | child: Padding(
65 | padding:
66 | const EdgeInsets.symmetric(horizontal: 16.0, vertical: 25),
67 | child: GNav(
68 | gap: 8,
69 | color: Colors.grey[800],
70 | activeColor: Colors.purple,
71 | iconSize: 24,
72 | tabBackgroundColor: Colors.purple.withOpacity(0.1),
73 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 14),
74 | duration: Duration(milliseconds: 1000),
75 | tabs: [
76 | GButton(
77 | icon: LineIcons.home,
78 | text: 'Home',
79 | ),
80 | GButton(
81 | icon: LineIcons.heart,
82 | text: 'Likes',
83 | ),
84 | GButton(
85 | icon: LineIcons.search,
86 | text: 'Search',
87 | ),
88 | GButton(
89 | icon: LineIcons.user,
90 | text: 'Profile',
91 | )
92 | ],
93 | selectedIndex: selectedIndex,
94 | onTabChange: (index) {
95 | setState(() {
96 | selectedIndex = index;
97 | });
98 | },
99 | ),
100 | ),
101 | ),
102 | ),
103 | ),
104 | );
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/example/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.8.1"
11 | badges:
12 | dependency: "direct main"
13 | description:
14 | name: badges
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.0.0-nullsafety.1"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.0"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.3.1"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.0"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.15.0"
53 | cupertino_icons:
54 | dependency: "direct main"
55 | description:
56 | name: cupertino_icons
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.0.2"
60 | fake_async:
61 | dependency: transitive
62 | description:
63 | name: fake_async
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.2.0"
67 | flutter:
68 | dependency: "direct main"
69 | description: flutter
70 | source: sdk
71 | version: "0.0.0"
72 | flutter_test:
73 | dependency: "direct dev"
74 | description: flutter
75 | source: sdk
76 | version: "0.0.0"
77 | google_nav_bar:
78 | dependency: "direct main"
79 | description:
80 | path: ".."
81 | relative: true
82 | source: path
83 | version: "5.0.7"
84 | line_icons:
85 | dependency: "direct main"
86 | description:
87 | name: line_icons
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "2.0.1"
91 | matcher:
92 | dependency: transitive
93 | description:
94 | name: matcher
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "0.12.10"
98 | meta:
99 | dependency: transitive
100 | description:
101 | name: meta
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "1.7.0"
105 | path:
106 | dependency: transitive
107 | description:
108 | name: path
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "1.8.0"
112 | sky_engine:
113 | dependency: transitive
114 | description: flutter
115 | source: sdk
116 | version: "0.0.99"
117 | source_span:
118 | dependency: transitive
119 | description:
120 | name: source_span
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "1.8.1"
124 | stack_trace:
125 | dependency: transitive
126 | description:
127 | name: stack_trace
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.10.0"
131 | stream_channel:
132 | dependency: transitive
133 | description:
134 | name: stream_channel
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "2.1.0"
138 | string_scanner:
139 | dependency: transitive
140 | description:
141 | name: string_scanner
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "1.1.0"
145 | term_glyph:
146 | dependency: transitive
147 | description:
148 | name: term_glyph
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.2.0"
152 | test_api:
153 | dependency: transitive
154 | description:
155 | name: test_api
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "0.4.2"
159 | typed_data:
160 | dependency: transitive
161 | description:
162 | name: typed_data
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "1.3.0"
166 | vector_math:
167 | dependency: transitive
168 | description:
169 | name: vector_math
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "2.1.0"
173 | sdks:
174 | dart: ">=2.12.0 <3.0.0"
175 | flutter: ">=0.2.5"
176 |
--------------------------------------------------------------------------------
/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: google_nav_bar_example
2 | description: A new Flutter project.
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.12.0 <4.0.0'
18 |
19 | publish_to: none
20 |
21 | dependencies:
22 | badges: ^2.0.0-nullsafety.1
23 | cupertino_icons: ^1.0.2
24 | flutter:
25 | sdk: flutter
26 | google_nav_bar:
27 | path: ../
28 | line_icons: ^2.0.1
29 |
30 | dev_dependencies:
31 | flutter_test:
32 | sdk: flutter
33 |
34 | # For information on the generic Dart part of this file, see the
35 | # following page: https://dart.dev/tools/pub/pubspec
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 | # To add assets to your application, add an assets section, like this:
44 | # assets:
45 | # - images/a_dot_burr.jpeg
46 | # - images/a_dot_ham.jpeg
47 | # An image asset can refer to one or more resolution-specific "variants", see
48 | # https://flutter.dev/assets-and-images/#resolution-aware.
49 | # For details regarding adding assets from package dependencies, see
50 | # https://flutter.dev/assets-and-images/#from-packages
51 | # To add custom fonts to your application, add a fonts section here,
52 | # in this "flutter" section. Each entry in this list should have a
53 | # "family" key with the font family name, and a "fonts" key with a
54 | # list giving the asset and other descriptors for the font. For
55 | # example:
56 | # fonts:
57 | # - family: Schyler
58 | # fonts:
59 | # - asset: fonts/Schyler-Regular.ttf
60 | # - asset: fonts/Schyler-Italic.ttf
61 | # style: italic
62 | # - family: Trajan Pro
63 | # fonts:
64 | # - asset: fonts/TrajanPro.ttf
65 | # - asset: fonts/TrajanPro_Bold.ttf
66 | # weight: 700
67 | #
68 | # For details regarding fonts from package dependencies,
69 | # see https://flutter.dev/custom-fonts/#from-packages
70 |
--------------------------------------------------------------------------------
/example/test/google_nav_bar_test.dart:
--------------------------------------------------------------------------------
1 | // // This is a basic Flutter widget test.
2 | // //
3 | // // To perform an interaction with a widget in your test, use the WidgetTester
4 | // // utility that Flutter provides. For example, you can send tap and scroll
5 | // // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | // import 'package:flutter/material.dart';
9 | // import 'package:flutter_test/flutter_test.dart';
10 |
11 | // // import 'package:example/main.dart';
12 |
13 | // void main() {
14 | // testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // // Build our app and trigger a frame.
16 | // await tester.pumpWidget(MyApp());
17 |
18 | // // Verify that our counter starts at 0.
19 | // expect(find.text('0'), findsOneWidget);
20 | // expect(find.text('1'), findsNothing);
21 |
22 | // // Tap the '+' icon and trigger a frame.
23 | // await tester.tap(find.byIcon(Icons.add));
24 | // await tester.pump();
25 |
26 | // // Verify that our counter has incremented.
27 | // expect(find.text('0'), findsNothing);
28 | // expect(find.text('1'), findsOneWidget);
29 | // });
30 | // }
31 |
--------------------------------------------------------------------------------
/lib/google_nav_bar.dart:
--------------------------------------------------------------------------------
1 | library google_nav_bar;
2 |
3 | export 'src/gnav.dart';
4 | export 'src/gbutton.dart';
5 |
--------------------------------------------------------------------------------
/lib/src/button.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math' show pow;
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:google_nav_bar/google_nav_bar.dart';
5 |
6 | class Button extends StatefulWidget {
7 | const Button({
8 | Key? key,
9 | this.icon,
10 | this.iconSize,
11 | this.leading,
12 | this.iconActiveColor,
13 | this.iconColor,
14 | this.text,
15 | this.gap,
16 | this.color,
17 | this.rippleColor,
18 | this.hoverColor,
19 | required this.onPressed,
20 | this.duration,
21 | this.curve,
22 | this.padding,
23 | this.margin,
24 | required this.active,
25 | this.debug,
26 | this.gradient,
27 | this.borderRadius,
28 | this.border,
29 | this.activeBorder,
30 | this.shadow,
31 | this.style = GnavStyle.google,
32 | this.textSize,
33 | }) : super(key: key);
34 |
35 | final IconData? icon;
36 | final double? iconSize;
37 | final Text? text;
38 | final Widget? leading;
39 | final Color? iconActiveColor;
40 | final Color? iconColor;
41 | final Color? color;
42 | final Color? rippleColor;
43 | final Color? hoverColor;
44 | final double? gap;
45 | final bool? active;
46 | final bool? debug;
47 | final VoidCallback onPressed;
48 | final EdgeInsetsGeometry? padding;
49 | final EdgeInsetsGeometry? margin;
50 | final Duration? duration;
51 | final Curve? curve;
52 | final Gradient? gradient;
53 | final BorderRadius? borderRadius;
54 | final Border? border;
55 | final Border? activeBorder;
56 | final List? shadow;
57 | final GnavStyle? style;
58 | final double? textSize;
59 |
60 | @override
61 | _ButtonState createState() => _ButtonState();
62 | }
63 |
64 | class _ButtonState extends State