diff --git a/CHANGELOG.md b/CHANGELOG.md index ac071598..06cf4071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ -## [0.0.1] - TODO: Add release date. +# Changelog -* TODO: Describe initial release. +## 0.0.1-pre.3 - 2014-01-14 + +### Fixed + +* Corrected warnings and hits + +### Added + +* Changelog and description + +## 14.0.0 - 2042-10-06 + +### Added + +* Introduced animals into the world, we believe they're going to be a neat addition. \ No newline at end of file diff --git a/LICENSE b/LICENSE index ba75c69f..b0042c59 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,5 @@ -TODO: Add your license here. +The MIT License (MIT) +Copyright (c) 2020 GetFlutter.dev +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index f77c16f7..ab1fe3fc 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,76 @@ -# ui_kit +

+ + Get Flutter + +

-A new Flutter package project. +[**GetFlutter**](https://www.getflutter.dev) is 100% open source UI library build to make flutter development easier than ever and reuse 1000+ pre-build widget in any Flutter Web or Mobile app development. -## Getting Started +[**NOTE**] Our library will also work on flutter web but still flutter web is in Beta release so some rendering problem may occur and hence we will update our library as flutter comes with stable release on Web. -This project is a starting point for a Dart -[package](https://flutter.dev/developing-packages/), -a library module containing code that can be shared easily across -multiple Flutter or Dart projects. +## Table of contents -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +- [Quick start](#quick-start) +- [Features](#features) +- [Screenshot](#screenshot) +- [Demo](#demo) +- [Contributing](#contributing) +- [Bugs and feature requests](#bugs-and-feature-requests) +- [Documentation](#documentation) +- [Copyright and license](#copyright-and-license) + +## Quick start + +Read the [Getting started page](https://docs.getflutter.dev) +Forum [Support and discussion ](https://forum.getflutter.dev) + +## Features +In this beta release we are going to launch the library with following components : + + #### Button | Badge | Avatar | Image | Card | Carousel | Tile | Tab | Typography + + + ## Screenshot +

+ + Get Flutter + + + + +

+ + ## Demo + + + ## Contributing + + GetFlutter is **100% free** and **open source**. We encourage and support an active, healthy community that accepts contributions from the public – including you! + + * If you are a developer, feel free to check out the source and submit pull requests. + * Dig into [**CONTRIBUTING.MD**](CONTRIBUTING.md), which covers submitting bugs, requesting new features, preparing your code for a pull request, etc. + * Please don't forget to **like**, **follow**, and **star our repo**! Join our growing [community](http://forum.getflutter.dev) to keep up to date with the latest Get Flutter development. + * Not sure what to work on? [**We've got lots ideas.**](https://roadmap.getflutter.dev) + + + ## Bugs-and-feature-requests + + + ## Documentation + + [**Installation Guide**](https://docs.getflutter.dev) + + +### Social Media + +Twitter: + +Facebook: + +Linkedin: + +Instagram: + + + ## Copyright-and-license + Code and documentation copyright 2017-2020 the [GETFLUTTER Authors](https://www.getflutter.dev) and [PIETECH SOLUTION PVT LTD.](https://pietechsolution.com) Code released under the [MIT License]. Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/). diff --git a/demo_app/.gitignore b/demo_app/.gitignore deleted file mode 100644 index ae1f1838..00000000 --- a/demo_app/.gitignore +++ /dev/null @@ -1,37 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Web related -lib/generated_plugin_registrant.dart - -# Exceptions to above rules. -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/demo_app/.metadata b/demo_app/.metadata deleted file mode 100644 index 361e1e4c..00000000 --- a/demo_app/.metadata +++ /dev/null @@ -1,10 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e - channel: beta - -project_type: app diff --git a/demo_app/README.md b/demo_app/README.md deleted file mode 100644 index ebae316f..00000000 --- a/demo_app/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# demo_app - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) - -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/demo_app/android/.gitignore b/demo_app/android/.gitignore deleted file mode 100644 index bc2100d8..00000000 --- a/demo_app/android/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java diff --git a/demo_app/android/app/build.gradle b/demo_app/android/app/build.gradle deleted file mode 100644 index 471f73aa..00000000 --- a/demo_app/android/app/build.gradle +++ /dev/null @@ -1,67 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion 28 - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - lintOptions { - disable 'InvalidPackage' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.demo_app" - minSdkVersion 16 - targetSdkVersion 28 - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test:runner:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' -} diff --git a/demo_app/android/app/src/debug/AndroidManifest.xml b/demo_app/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index cef74c20..00000000 --- a/demo_app/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/demo_app/android/app/src/main/AndroidManifest.xml b/demo_app/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 27b7e17a..00000000 --- a/demo_app/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - diff --git a/demo_app/android/app/src/main/kotlin/com/example/demo_app/MainActivity.kt b/demo_app/android/app/src/main/kotlin/com/example/demo_app/MainActivity.kt deleted file mode 100644 index c25730bf..00000000 --- a/demo_app/android/app/src/main/kotlin/com/example/demo_app/MainActivity.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.example.demo_app - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity -import io.flutter.embedding.engine.FlutterEngine -import io.flutter.plugins.GeneratedPluginRegistrant - -class MainActivity: FlutterActivity() { - override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { - GeneratedPluginRegistrant.registerWith(flutterEngine); - } -} diff --git a/demo_app/android/app/src/main/res/drawable/launch_background.xml b/demo_app/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f8..00000000 --- a/demo_app/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/demo_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/demo_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b..00000000 Binary files a/demo_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/demo_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/demo_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79..00000000 Binary files a/demo_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/demo_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/demo_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 09d43914..00000000 Binary files a/demo_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/demo_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/demo_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d3..00000000 Binary files a/demo_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/demo_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/demo_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372ee..00000000 Binary files a/demo_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/demo_app/android/app/src/main/res/values/styles.xml b/demo_app/android/app/src/main/res/values/styles.xml deleted file mode 100644 index 00fa4417..00000000 --- a/demo_app/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/demo_app/android/app/src/profile/AndroidManifest.xml b/demo_app/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index cef74c20..00000000 --- a/demo_app/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/demo_app/android/build.gradle b/demo_app/android/build.gradle deleted file mode 100644 index 3100ad2d..00000000 --- a/demo_app/android/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -buildscript { - ext.kotlin_version = '1.3.50' - repositories { - google() - jcenter() - } - - dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - jcenter() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/demo_app/android/gradle.properties b/demo_app/android/gradle.properties deleted file mode 100644 index 38c8d454..00000000 --- a/demo_app/android/gradle.properties +++ /dev/null @@ -1,4 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.enableR8=true -android.useAndroidX=true -android.enableJetifier=true diff --git a/demo_app/android/gradle/wrapper/gradle-wrapper.properties b/demo_app/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 296b146b..00000000 --- a/demo_app/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip diff --git a/demo_app/android/settings.gradle b/demo_app/android/settings.gradle deleted file mode 100644 index 5a2f14fb..00000000 --- a/demo_app/android/settings.gradle +++ /dev/null @@ -1,15 +0,0 @@ -include ':app' - -def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() - -def plugins = new Properties() -def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') -if (pluginsFile.exists()) { - pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } -} - -plugins.each { name, path -> - def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() - include ":$name" - project(":$name").projectDir = pluginDirectory -} diff --git a/demo_app/ios/.gitignore b/demo_app/ios/.gitignore deleted file mode 100644 index e96ef602..00000000 --- a/demo_app/ios/.gitignore +++ /dev/null @@ -1,32 +0,0 @@ -*.mode1v3 -*.mode2v3 -*.moved-aside -*.pbxuser -*.perspectivev3 -**/*sync/ -.sconsign.dblite -.tags* -**/.vagrant/ -**/DerivedData/ -Icon? -**/Pods/ -**/.symlinks/ -profile -xcuserdata -**/.generated/ -Flutter/App.framework -Flutter/Flutter.framework -Flutter/Flutter.podspec -Flutter/Generated.xcconfig -Flutter/app.flx -Flutter/app.zip -Flutter/flutter_assets/ -Flutter/flutter_export_environment.sh -ServiceDefinitions.json -Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!default.mode1v3 -!default.mode2v3 -!default.pbxuser -!default.perspectivev3 diff --git a/demo_app/ios/Flutter/AppFrameworkInfo.plist b/demo_app/ios/Flutter/AppFrameworkInfo.plist deleted file mode 100644 index 6b4c0f78..00000000 --- a/demo_app/ios/Flutter/AppFrameworkInfo.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 8.0 - - diff --git a/demo_app/ios/Flutter/Debug.xcconfig b/demo_app/ios/Flutter/Debug.xcconfig deleted file mode 100644 index 592ceee8..00000000 --- a/demo_app/ios/Flutter/Debug.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "Generated.xcconfig" diff --git a/demo_app/ios/Flutter/Release.xcconfig b/demo_app/ios/Flutter/Release.xcconfig deleted file mode 100644 index 592ceee8..00000000 --- a/demo_app/ios/Flutter/Release.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "Generated.xcconfig" diff --git a/demo_app/ios/Runner.xcodeproj/project.pbxproj b/demo_app/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index af5c5ea0..00000000 --- a/demo_app/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,518 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 3B80C3931E831B6300D905FE /* App.framework */, - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEBA1CF902C7004384FC /* Flutter.framework */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 97C146F11CF9000F007C117D /* Supporting Files */, - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, - ); - path = Runner; - sourceTree = ""; - }; - 97C146F11CF9000F007C117D /* Supporting Files */ = { - isa = PBXGroup; - children = ( - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - 9740EEB61CF901F6004384FC /* Run Script */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1020; - ORGANIZATIONNAME = "The Chromium Authors"; - TargetAttributes = { - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - LastSwiftMigration = 1100; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Thin Binary"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; - }; - 9740EEB61CF901F6004384FC /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 249021D3217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 249021D4217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.demoApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.demoApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.demoApp; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 249021D3217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 249021D4217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/demo_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/demo_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 1d526a16..00000000 --- a/demo_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/demo_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/demo_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index a28140cf..00000000 --- a/demo_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demo_app/ios/Runner.xcworkspace/contents.xcworkspacedata b/demo_app/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 1d526a16..00000000 --- a/demo_app/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/demo_app/ios/Runner/AppDelegate.swift b/demo_app/ios/Runner/AppDelegate.swift deleted file mode 100644 index 70693e4a..00000000 --- a/demo_app/ios/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import UIKit -import Flutter - -@UIApplicationMain -@objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? - ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - return super.application(application, didFinishLaunchingWithOptions: launchOptions) - } -} diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d36b1fab..00000000 --- a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted file mode 100644 index dc9ada47..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png deleted file mode 100644 index 28c6bf03..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted file mode 100644 index 2ccbfd96..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted file mode 100644 index f091b6b0..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted file mode 100644 index 4cde1211..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted file mode 100644 index d0ef06e7..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png deleted file mode 100644 index dcdc2306..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png deleted file mode 100644 index 2ccbfd96..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted file mode 100644 index c8f9ed8f..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png deleted file mode 100644 index a6d6b860..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted file mode 100644 index a6d6b860..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted file mode 100644 index 75b2d164..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png deleted file mode 100644 index c4df70d3..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png deleted file mode 100644 index 6a84f41e..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted file mode 100644 index d0e1f585..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted file mode 100644 index 0bedcf2f..00000000 --- a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted file mode 100644 index 9da19eac..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted file mode 100644 index 9da19eac..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted file mode 100644 index 9da19eac..00000000 Binary files a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ diff --git a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted file mode 100644 index 89c2725b..00000000 --- a/demo_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Launch Screen Assets - -You can customize the launch screen with your own desired assets by replacing the image files in this directory. - -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. \ No newline at end of file diff --git a/demo_app/ios/Runner/Base.lproj/LaunchScreen.storyboard b/demo_app/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f2e259c7..00000000 --- a/demo_app/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demo_app/ios/Runner/Base.lproj/Main.storyboard b/demo_app/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516..00000000 --- a/demo_app/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demo_app/ios/Runner/Info.plist b/demo_app/ios/Runner/Info.plist deleted file mode 100644 index 5d77f707..00000000 --- a/demo_app/ios/Runner/Info.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - demo_app - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - - diff --git a/demo_app/ios/Runner/Runner-Bridging-Header.h b/demo_app/ios/Runner/Runner-Bridging-Header.h deleted file mode 100644 index 7335fdf9..00000000 --- a/demo_app/ios/Runner/Runner-Bridging-Header.h +++ /dev/null @@ -1 +0,0 @@ -#import "GeneratedPluginRegistrant.h" \ No newline at end of file diff --git a/demo_app/lib/assets/icons/avatar.png b/demo_app/lib/assets/icons/avatar.png deleted file mode 100644 index 685ad1a3..00000000 Binary files a/demo_app/lib/assets/icons/avatar.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/back.png b/demo_app/lib/assets/icons/back.png deleted file mode 100644 index 6c90e89b..00000000 Binary files a/demo_app/lib/assets/icons/back.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/badge.png b/demo_app/lib/assets/icons/badge.png deleted file mode 100644 index 5d233517..00000000 Binary files a/demo_app/lib/assets/icons/badge.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/buttons.png b/demo_app/lib/assets/icons/buttons.png deleted file mode 100644 index d7cf8870..00000000 Binary files a/demo_app/lib/assets/icons/buttons.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/buttons.svg b/demo_app/lib/assets/icons/buttons.svg deleted file mode 100644 index 415c67d3..00000000 --- a/demo_app/lib/assets/icons/buttons.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/demo_app/lib/assets/icons/card.png b/demo_app/lib/assets/icons/card.png deleted file mode 100644 index 79543ea6..00000000 Binary files a/demo_app/lib/assets/icons/card.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/chips.png b/demo_app/lib/assets/icons/chips.png deleted file mode 100644 index 99b08372..00000000 Binary files a/demo_app/lib/assets/icons/chips.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/danger.svg b/demo_app/lib/assets/icons/danger.svg deleted file mode 100644 index dea91e14..00000000 --- a/demo_app/lib/assets/icons/danger.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/dark.svg b/demo_app/lib/assets/icons/dark.svg deleted file mode 100644 index a5e5eb1b..00000000 --- a/demo_app/lib/assets/icons/dark.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/dribble.svg b/demo_app/lib/assets/icons/dribble.svg deleted file mode 100644 index dbaca3b1..00000000 --- a/demo_app/lib/assets/icons/dribble.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/fb.svg b/demo_app/lib/assets/icons/fb.svg deleted file mode 100644 index e6078c98..00000000 --- a/demo_app/lib/assets/icons/fb.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/google.svg b/demo_app/lib/assets/icons/google.svg deleted file mode 100644 index d837859e..00000000 --- a/demo_app/lib/assets/icons/google.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/images.png b/demo_app/lib/assets/icons/images.png deleted file mode 100644 index b5e4cb02..00000000 Binary files a/demo_app/lib/assets/icons/images.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/info.svg b/demo_app/lib/assets/icons/info.svg deleted file mode 100644 index 21fd193c..00000000 --- a/demo_app/lib/assets/icons/info.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/items.png b/demo_app/lib/assets/icons/items.png deleted file mode 100644 index 1a495321..00000000 Binary files a/demo_app/lib/assets/icons/items.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/light.svg b/demo_app/lib/assets/icons/light.svg deleted file mode 100644 index bf6f73a6..00000000 --- a/demo_app/lib/assets/icons/light.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/link.svg b/demo_app/lib/assets/icons/link.svg deleted file mode 100644 index 9260d523..00000000 --- a/demo_app/lib/assets/icons/link.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/linkedin.svg b/demo_app/lib/assets/icons/linkedin.svg deleted file mode 100644 index 7adb1746..00000000 --- a/demo_app/lib/assets/icons/linkedin.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/lists.png b/demo_app/lib/assets/icons/lists.png deleted file mode 100644 index e3e93174..00000000 Binary files a/demo_app/lib/assets/icons/lists.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/menu.png b/demo_app/lib/assets/icons/menu.png deleted file mode 100644 index 0932d5f5..00000000 Binary files a/demo_app/lib/assets/icons/menu.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/next.png b/demo_app/lib/assets/icons/next.png deleted file mode 100644 index 8d3c89d9..00000000 Binary files a/demo_app/lib/assets/icons/next.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/pinterest.svg b/demo_app/lib/assets/icons/pinterest.svg deleted file mode 100644 index 7aa538e1..00000000 --- a/demo_app/lib/assets/icons/pinterest.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/primary.svg b/demo_app/lib/assets/icons/primary.svg deleted file mode 100644 index c2ad37e4..00000000 --- a/demo_app/lib/assets/icons/primary.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/secondary.svg b/demo_app/lib/assets/icons/secondary.svg deleted file mode 100644 index 56c06ebe..00000000 --- a/demo_app/lib/assets/icons/secondary.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/slack.svg b/demo_app/lib/assets/icons/slack.svg deleted file mode 100644 index ed08c2a0..00000000 --- a/demo_app/lib/assets/icons/slack.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/slider.png b/demo_app/lib/assets/icons/slider.png deleted file mode 100644 index 03fb809b..00000000 Binary files a/demo_app/lib/assets/icons/slider.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/success.svg b/demo_app/lib/assets/icons/success.svg deleted file mode 100644 index b06b4ae5..00000000 --- a/demo_app/lib/assets/icons/success.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/tabs.png b/demo_app/lib/assets/icons/tabs.png deleted file mode 100644 index 49678a20..00000000 Binary files a/demo_app/lib/assets/icons/tabs.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/toast.png b/demo_app/lib/assets/icons/toast.png deleted file mode 100644 index 44ee2d77..00000000 Binary files a/demo_app/lib/assets/icons/toast.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/toggle.png b/demo_app/lib/assets/icons/toggle.png deleted file mode 100644 index f33816f9..00000000 Binary files a/demo_app/lib/assets/icons/toggle.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/twitter.svg b/demo_app/lib/assets/icons/twitter.svg deleted file mode 100644 index ac962749..00000000 --- a/demo_app/lib/assets/icons/twitter.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/typo.png b/demo_app/lib/assets/icons/typo.png deleted file mode 100644 index 90592362..00000000 Binary files a/demo_app/lib/assets/icons/typo.png and /dev/null differ diff --git a/demo_app/lib/assets/icons/warning.svg b/demo_app/lib/assets/icons/warning.svg deleted file mode 100644 index aae2b731..00000000 --- a/demo_app/lib/assets/icons/warning.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/demo_app/lib/assets/icons/whatsapp.svg b/demo_app/lib/assets/icons/whatsapp.svg deleted file mode 100644 index 992ff345..00000000 --- a/demo_app/lib/assets/icons/whatsapp.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/icons/youtube.svg b/demo_app/lib/assets/icons/youtube.svg deleted file mode 100644 index b2503883..00000000 --- a/demo_app/lib/assets/icons/youtube.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/demo_app/lib/assets/logo/logo.png b/demo_app/lib/assets/logo/logo.png deleted file mode 100644 index 27e5cae0..00000000 Binary files a/demo_app/lib/assets/logo/logo.png and /dev/null differ diff --git a/demo_app/lib/main.dart b/demo_app/lib/main.dart deleted file mode 100644 index eea11a65..00000000 --- a/demo_app/lib/main.dart +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:flutter/material.dart'; -import 'screens/home.dart'; - - -void main() => runApp(MyApp()); - -class MyApp extends StatelessWidget { - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Flutter Demo', - debugShowCheckedModeBanner: false, - theme: ThemeData( - primarySwatch: Colors.blue, - ), - home: HomePage(), - ); - } -} diff --git a/demo_app/lib/screens/avatars.dart b/demo_app/lib/screens/avatars.dart deleted file mode 100644 index fecf6873..00000000 --- a/demo_app/lib/screens/avatars.dart +++ /dev/null @@ -1,295 +0,0 @@ -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/shape/gf_avatar_shape.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/colors/gf_color.dart'; - -class Avatars extends StatefulWidget { - @override - _AvatarsState createState() => _AvatarsState(); -} - -class _AvatarsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text('Avatar', style: TextStyle(fontSize: 14),), - ), - body: Container( - child: Column( - children: [ - GFCard( - content: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - GFTypography( - text: 'Circle Avatar', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFAvatar( - backgroundColor: getGFColor(GFColor.primary), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.secondary), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.success), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.info), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.danger), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - - - ], - ), - - SizedBox( - height: 15, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFAvatar( - backgroundColor: getGFColor(GFColor.warning), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.dark), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.light), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.alt), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.transparent), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.dark), - ), - - ], - ), - - ], - ), - ), - GFCard( - content: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - GFTypography( - text: 'Square Avatar', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFAvatar( - backgroundColor: getGFColor(GFColor.primary), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.secondary), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.success), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.info), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.danger), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - - - ], - ), - - SizedBox( - height: 15, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFAvatar( - backgroundColor: getGFColor(GFColor.warning), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.dark), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.light), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.alt), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.square, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.transparent), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.dark), - - ), - - ], - ), - ], - ), - ), - GFCard( - content: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - GFTypography( - text: 'Standard Avatar', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFAvatar( - backgroundColor: getGFColor(GFColor.primary), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.secondary), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.success), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.info), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.danger), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - - - ], - ), - - SizedBox( - height: 15, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFAvatar( - backgroundColor: getGFColor(GFColor.warning), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.dark), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.light), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.alt), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.white), - shape: GFAvatarShape.standard, - ), - GFAvatar( - backgroundColor: getGFColor(GFColor.transparent), - child: Icon(Icons.face), - foregroundColor: getGFColor(GFColor.dark), - - ), - - ], - ), - ], - ), - ), - ], - ), - ) - ); - } -} diff --git a/demo_app/lib/screens/badges.dart b/demo_app/lib/screens/badges.dart deleted file mode 100644 index 5beb7ca3..00000000 --- a/demo_app/lib/screens/badges.dart +++ /dev/null @@ -1,760 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/badge/gf_badge.dart'; -import 'package:ui_kit/components/badge/gf_button_badge.dart'; -import 'package:ui_kit/components/badge/gf_icon_badge.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/shape/gf_badge_shape.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/shape/gf_icon_button_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - -class Badges extends StatefulWidget { - @override - _BadgesState createState() => _BadgesState(); -} - -class _BadgesState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text( - 'Badges', - style: TextStyle(fontSize: 14), - ), - ), - body: GFTabs( - height: MediaQuery.of(context).size.height, - tabBarColor: Color(0xFFD3E9ED), - initialIndex: 0, - length: 3, - tabs: [ - Padding( - padding: EdgeInsets.only(top: 15, bottom: 15), - child: Text('Badge'), - ), - Text('Button Badge'), - Text('Icon Badge'), - ], - tabBarView: GFTabBarView( - children: [ - ListView( - children: [ - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Types of Badges', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFBadge( - text: '1', - shape: GFBadgeShape.circle, - color: GFColor.success, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.square, - color: GFColor.primary, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.pills, - color: GFColor.danger, - textColor: GFColor.white, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.standard, - color: GFColor.warning, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Circled Badges with different Sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFBadge( - text: '1', - shape: GFBadgeShape.circle, - size: GFSize.large, - color: GFColor.success, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.circle, - size: GFSize.medium, - color: GFColor.success, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.circle, - size: GFSize.small, - color: GFColor.success, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Squared Badges with different sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFBadge( - text: '1', - shape: GFBadgeShape.square, - size: GFSize.large, - color: GFColor.primary, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.square, - size: GFSize.medium, - color: GFColor.primary, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.square, - size: GFSize.small, - color: GFColor.primary, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Pills with different sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFBadge( - text: '1', - shape: GFBadgeShape.pills, - size: GFSize.large, - color: GFColor.danger, - textColor: GFColor.white, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.pills, - size: GFSize.medium, - textColor: GFColor.white, - color: GFColor.danger, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.pills, - size: GFSize.small, - textColor: GFColor.white, - color: GFColor.danger, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Standard Badges with different sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFBadge( - text: '1', - shape: GFBadgeShape.standard, - size: GFSize.large, - color: GFColor.warning, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.standard, - size: GFSize.medium, - color: GFColor.warning, - ), - GFBadge( - text: '1', - shape: GFBadgeShape.standard, - size: GFSize.small, - color: GFColor.warning, - ), - ], - ), - ], - ), - ) - ], - ), - ListView( - children: [ - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Types of Button Badges', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - shape: GFButtonShape.pills, - type: GFType.solid, - color: GFColor.info, - icon: GFBadge( - text: '12', - color: GFColor.warning, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Pills', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.square, - type: GFType.solid, - color: GFColor.warning, - icon: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - color: GFColor.info, - ), - onPressed: null, - text: 'Square', - ), - GFButtonBadge( - color: GFColor.success, - shape: GFButtonShape.standard, - type: GFType.solid, - icon: GFBadge( - text: '12', - textColor: GFColor.white, - color: GFColor.danger, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Standard', - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Positions of Button Badges', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - shape: GFButtonShape.pills, - type: GFType.solid, - color: GFColor.info, - icon: GFBadge( - text: '12', - color: GFColor.warning, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Pills', - position: GFPosition.start, - ), - GFButtonBadge( - shape: GFButtonShape.square, - type: GFType.solid, - color: GFColor.warning, - icon: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - color: GFColor.info, - ), - onPressed: null, - text: 'Square', - position: GFPosition.start, - ), - GFButtonBadge( - color: GFColor.success, - shape: GFButtonShape.standard, - type: GFType.solid, - icon: GFBadge( - text: '12', - textColor: GFColor.white, - color: GFColor.danger, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Standard', - position: GFPosition.start, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Pilled shape Button Badges with sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - shape: GFButtonShape.pills, - size: GFSize.large, - type: GFType.solid, - color: GFColor.info, - icon: GFBadge( - text: '12', - color: GFColor.warning, - size: GFSize.large, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Solid', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.pills, - size: GFSize.medium, - type: GFType.outline, - color: GFColor.info, - icon: GFBadge( - text: '12', - color: GFColor.warning, - size: GFSize.medium, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Outline', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.pills, - size: GFSize.small, - type: GFType.transparent, - color: GFColor.info, - icon: GFBadge( - text: '12', - color: GFColor.warning, - size: GFSize.small, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Transp', - position: GFPosition.end, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Squared shape Button Badges with sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - shape: GFButtonShape.square, - size: GFSize.large, - type: GFType.solid, - color: GFColor.warning, - icon: GFBadge( - text: '12', - color: GFColor.info, - size: GFSize.large, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Solid', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.square, - size: GFSize.medium, - type: GFType.outline, - color: GFColor.warning, - icon: GFBadge( - text: '12', - color: GFColor.info, - size: GFSize.medium, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Outline', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.square, - size: GFSize.small, - type: GFType.transparent, - color: GFColor.warning, - icon: GFBadge( - text: '12', - color: GFColor.info, - size: GFSize.small, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Transp', - position: GFPosition.end, - ), - ], - ), - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Standard Button Badges with sizes', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - shape: GFButtonShape.standard, - size: GFSize.large, - type: GFType.solid, - color: GFColor.primary, - icon: GFBadge( - text: '12', - color: GFColor.danger, - size: GFSize.large, - textColor: GFColor.white, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Solid', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.standard, - size: GFSize.medium, - type: GFType.outline, - color: GFColor.primary, - icon: GFBadge( - text: '12', - color: GFColor.danger, - textColor: GFColor.white, - size: GFSize.medium, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Outline', - position: GFPosition.end, - ), - GFButtonBadge( - shape: GFButtonShape.standard, - size: GFSize.small, - type: GFType.transparent, - color: GFColor.primary, - icon: GFBadge( - text: '12', - color: GFColor.danger, - textColor: GFColor.white, - size: GFSize.small, - shape: GFBadgeShape.circle, - ), - onPressed: null, - text: 'Transp', - position: GFPosition.end, - ), - ], - ), - ], - ), - ) - ], - ), - ListView( - children: [ - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Types of Icon Badges', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.pills, - color: GFColor.success, - type: GFType.solid, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.square, - color: GFColor.primary, - type: GFType.solid, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.pills, - color: GFColor.danger, - type: GFType.solid, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.standard, - type: GFType.solid, - color: GFColor.warning, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - ], - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Shapes of Icon Badges', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.pills, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.square, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - color: GFColor.dark, - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.pills, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - shape: GFIconButtonShape.standard, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - ), - ), - ], - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Sizes of Icon Badges', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconBadge( - child: GFIconButton( - size: GFSize.large, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - size: GFSize.medium, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - size: GFSize.small, - onPressed: null, - icon: Icon(Icons.mail), - ), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - ], - ) - ], - ), - ) - ], - ) - ], - ), - indicatorColor: getGFColor(GFColor.dark), - indicatorSize: TabBarIndicatorSize.label, - labelColor: getGFColor(GFColor.success), - unselectedLabelColor: Colors.black, - labelStyle: TextStyle( - fontWeight: FontWeight.w500, - fontSize: 13.0, - color: Colors.deepOrange, - fontFamily: 'OpenSansBold', - ), - unselectedLabelStyle: TextStyle( - fontWeight: FontWeight.w500, - fontSize: 13.0, - color: Colors.black, - fontFamily: 'OpenSansBold', - ), - ), - ); - } -} diff --git a/demo_app/lib/screens/badges/badges.dart b/demo_app/lib/screens/badges/badges.dart deleted file mode 100644 index 34ff7a15..00000000 --- a/demo_app/lib/screens/badges/badges.dart +++ /dev/null @@ -1,295 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/badge/gf_badge.dart'; -import 'package:ui_kit/components/badge/gf_button_badge.dart'; -import 'package:ui_kit/components/badge/gf_icon_badge.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/shape/gf_badge_shape.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - -class Badges extends StatefulWidget { - @override - _BadgesState createState() => _BadgesState(); -} - -class _BadgesState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text( - 'Badges', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), - body: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'With Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Primary', - ), - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Second', - color: GFColor.secondary, - ), - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Success', - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Warning', - color: GFColor.warning, - ), - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Danger', - color: GFColor.danger, - ), - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Info', - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Light', - color: GFColor.light, - ), - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Dark', - textStyle: TextStyle(color: getGFColor(GFColor.white)), - color: GFColor.dark, - ), - GFButtonBadge( - icon: GFBadge( - text: '6', - shape: GFBadgeShape.pills, - ), - onPressed: () {}, - text: 'Link', - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Icon with Badges', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - children: [ - SizedBox( - height: 20, - ), - Row( - children: [ - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/primary.svg', - color: getGFColor(GFColor.primary), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg', - color: getGFColor(GFColor.secondary), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/success.svg', - color: getGFColor(GFColor.success), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/warning.svg', - color: getGFColor(GFColor.warning), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/danger.svg', - color: getGFColor(GFColor.danger), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.circle, - size: GFSize.small, - )), - ], - ), - Row( - children: [ - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/info.svg', - color: getGFColor(GFColor.info), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.standard, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/light.svg', - color: getGFColor(GFColor.light), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.square, - size: GFSize.small, - )), - GFIconBadge( - child: GFIconButton( - type: GFType.transparent, - onPressed: () {}, - icon: SvgPicture.asset( - 'lib/assets/icons/dark.svg', - color: getGFColor(GFColor.dark), - )), - counterChild: GFBadge( - text: '12', - shape: GFBadgeShape.pills, - size: GFSize.small, - )), - ], - ) - ], - ), - ), - ], - ), - ); - } -} diff --git a/demo_app/lib/screens/button/button-types.dart b/demo_app/lib/screens/button/button-types.dart deleted file mode 100644 index a9ffb0bb..00000000 --- a/demo_app/lib/screens/button/button-types.dart +++ /dev/null @@ -1,237 +0,0 @@ -import 'package:demo_app/screens/avatars.dart'; -import 'package:demo_app/screens/button/shadow-buttons.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; - -import 'standard-buttons.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/cupertino.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/list_tile/gf_list_tile.dart'; -import 'pill-buttons.dart'; -import 'square-buttons.dart'; -import 'icon-buttons.dart'; -import 'social-buttons.dart'; - -class ButtonTypes extends StatefulWidget { - @override - _ButtonTypesState createState() => _ButtonTypesState(); -} - -class _ButtonTypesState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: (){ - Navigator.pop(context); - }, - child:Image.asset('lib/assets/icons/back.png') - ), - title: Text('Buttons', style: TextStyle(fontSize: 17),), - centerTitle: true, - ), - - body: ListView( - children: [ - SizedBox( - height: 20, - ), - GestureDetector( - onTap: (){ - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => StandardButtons() - ), - ); - }, - child:Container( - margin: EdgeInsets.only(left: 15, right: 15, top: 20), - padding: EdgeInsets.all(5), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(7)), - color: getGFColor(GFColor.dark), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ) - ] - ), - child: GFListTile( - color: getGFColor(GFColor.dark), - showDivider: false, - title: Text('Standard Buttons', style: TextStyle(color: getGFColor(GFColor.white)),), - icon: Image.asset('lib/assets/icons/next.png'), - - ), - ) - ), - - GestureDetector( - onTap: (){ - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => PillsButtons() - ), - ); - }, - child:Container( - margin: EdgeInsets.only(left: 15, right: 15, top: 20), - padding: EdgeInsets.all(5), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(7)), - color: getGFColor(GFColor.dark), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ) - ] - ), - child: GFListTile( - color: getGFColor(GFColor.dark), - showDivider: false, - title: Text('Pills Buttons', style: TextStyle(color: getGFColor(GFColor.white)),), - icon: Image.asset('lib/assets/icons/next.png') - ), - ) - ), - - - GestureDetector( - onTap: (){ - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => SquareButtons() - ), - ); - }, - child:Container( - margin: EdgeInsets.only(left: 15, right: 15, top: 20), - padding: EdgeInsets.all(5), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(7)), - color: getGFColor(GFColor.dark), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ) - ] - ), - child: GFListTile( - color: getGFColor(GFColor.dark), - showDivider: false, - title: Text('Square Buttons', style: TextStyle(color: getGFColor(GFColor.white)),), - icon: Image.asset('lib/assets/icons/next.png') - ), - ) - ), - - GestureDetector( - onTap: (){ - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => ShadowButtons() - ), - ); - }, - child:Container( - margin: EdgeInsets.only(left: 15, right: 15, top: 20), - padding: EdgeInsets.all(5), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(7)), - color: getGFColor(GFColor.dark), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ) - ] - ), - child: GFListTile( - color: getGFColor(GFColor.dark), - showDivider: false, - title: Text('Shadow Buttons', style: TextStyle(color: getGFColor(GFColor.white)),), - icon: Image.asset('lib/assets/icons/next.png') - ), - ) - ), - - GestureDetector( - onTap: (){ - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => IconButtons() - ), - ); - }, - child:Container( - margin: EdgeInsets.only(left: 15, right: 15, top: 20), - padding: EdgeInsets.all(5), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(7)), - color: getGFColor(GFColor.dark), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ) - ] - ), - child: GFListTile( - color: getGFColor(GFColor.dark), - showDivider: false, - title: Text('Icons Buttons', style: TextStyle(color: getGFColor(GFColor.white)),), - icon: Image.asset('lib/assets/icons/next.png') - ), - ) - ), - - GestureDetector( - onTap: (){ - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => SocialButtons() - ), - ); - }, - child:Container( - - margin: EdgeInsets.only(left: 15, right: 15, top: 20, bottom: 20), - padding: EdgeInsets.all(5), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(7)), - color: getGFColor(GFColor.dark), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ) - ] - ), - child: GFListTile( - color: getGFColor(GFColor.dark), - showDivider: false, - title: Text('Social Buttons', style: TextStyle(color: getGFColor(GFColor.white)),), - icon: Image.asset('lib/assets/icons/next.png') - ), - ) - ), - - - ], - ) - - ); - } -} diff --git a/demo_app/lib/screens/button/icon-buttons.dart b/demo_app/lib/screens/button/icon-buttons.dart deleted file mode 100644 index 80309f0b..00000000 --- a/demo_app/lib/screens/button/icon-buttons.dart +++ /dev/null @@ -1,1185 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class IconButtons extends StatefulWidget { - @override - _IconButtonsState createState() => _IconButtonsState(); -} - -class _IconButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: () { - Navigator.pop(context); - }, - child: Image.asset('lib/assets/icons/back.png')), - title: Text( - 'Icon Buttons', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), - body: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Solid Icons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), -// -// GFCard( -// content: Column( -// children: [ -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -//// GFIconButton( -//// onPressed: (){}, -//// icon: Icon(Icons.ac_unit), -////// iconSize: 12.0, -//// type: GFType.solid, -//// shape: GFButtonShape.pills, -//// size: GFSize.large, -////// buttonBoxShadow: true, -////// color: GFColor.primary, -////// boxShadow: BoxShadow( -////// color: Colors.pink, -////// blurRadius: 2.0, -////// spreadRadius: 1.0, -////// offset: Offset.zero, -////// ), -////// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -////// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), -//// ), -// -// -// ], -// ), -// ], -// ) -// ) - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Primary", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/primary.svg')), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text("Second"), - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg'), - color: GFColor.secondary, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - icon: - SvgPicture.asset('lib/assets/icons/success.svg'), - color: GFColor.success, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - icon: SvgPicture.asset('lib/assets/icons/warning.svg'), - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - icon: SvgPicture.asset('lib/assets/icons/danger.svg'), - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - icon: SvgPicture.asset('lib/assets/icons/info.svg'), - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - icon: SvgPicture.asset('lib/assets/icons/light.svg'), - type: GFType.solid, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - style: TextStyle(color: getGFColor(GFColor.white)), - ), - icon: SvgPicture.asset('lib/assets/icons/dark.svg'), - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - icon: SvgPicture.asset('lib/assets/icons/link.svg'), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Outline Icons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - onPressed: () {}, - type: GFType.outline, - child: Text( - "Primary", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/primary.svg', - color: getGFColor(GFColor.primary), - )), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text("Second"), - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg', - color: getGFColor(GFColor.secondary), - ), - color: GFColor.secondary, - type: GFType.outline, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/success.svg', - color: getGFColor(GFColor.success), - ), - color: GFColor.success, - type: GFType.outline, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/warning.svg', - color: getGFColor(GFColor.warning), - ), - color: GFColor.warning, - type: GFType.outline, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/danger.svg', - color: getGFColor(GFColor.danger), - ), - color: GFColor.danger, - type: GFType.outline, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/info.svg', - color: getGFColor(GFColor.info), - ), - color: GFColor.info, - type: GFType.outline, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/light.svg', - color: getGFColor(GFColor.light), - ), - type: GFType.outline, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/dark.svg', - color: getGFColor(GFColor.dark), - ), - color: GFColor.dark, - type: GFType.outline, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/link.svg', - color: getGFColor(GFColor.alt), - ), - color: GFColor.transparent, - type: GFType.outline, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Outline 2x Icons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - onPressed: () {}, - type: GFType.outline2x, - child: Text( - "Primary", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/primary.svg', - color: getGFColor(GFColor.primary), - )), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text("Second"), - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg', - color: getGFColor(GFColor.secondary), - ), - color: GFColor.secondary, - type: GFType.outline2x, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/success.svg', - color: getGFColor(GFColor.success), - ), - color: GFColor.success, - type: GFType.outline2x, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/warning.svg', - color: getGFColor(GFColor.warning), - ), - color: GFColor.warning, - type: GFType.outline2x, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/danger.svg', - color: getGFColor(GFColor.danger), - ), - color: GFColor.danger, - type: GFType.outline2x, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/info.svg', - color: getGFColor(GFColor.info), - ), - color: GFColor.info, - type: GFType.outline2x, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/light.svg', - color: getGFColor(GFColor.light), - ), - type: GFType.outline2x, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/dark.svg', - color: getGFColor(GFColor.dark), - ), - color: GFColor.dark, - type: GFType.outline2x, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/link.svg', - color: getGFColor(GFColor.alt), - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Square Icons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/primary.svg')), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text("Second"), - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg'), - color: GFColor.secondary, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - shape: GFButtonShape.square, - onPressed: () {}, - child: Text( - "Success", - ), - icon: - SvgPicture.asset('lib/assets/icons/success.svg'), - color: GFColor.success, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Warning", - ), - icon: SvgPicture.asset('lib/assets/icons/warning.svg'), - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Danger", - ), - icon: SvgPicture.asset('lib/assets/icons/danger.svg'), - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Info", - ), - icon: SvgPicture.asset('lib/assets/icons/info.svg'), - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Light", - ), - icon: SvgPicture.asset('lib/assets/icons/light.svg'), - type: GFType.solid, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Dark", - style: TextStyle(color: getGFColor(GFColor.white)), - ), - icon: SvgPicture.asset('lib/assets/icons/dark.svg'), - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Link", - ), - icon: SvgPicture.asset('lib/assets/icons/link.svg'), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Pills Icons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - icon: SvgPicture.asset( - 'lib/assets/icons/primary.svg')), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text("Second"), - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg'), - color: GFColor.secondary, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - shape: GFButtonShape.pills, - onPressed: () {}, - child: Text( - "Success", - ), - icon: - SvgPicture.asset('lib/assets/icons/success.svg'), - color: GFColor.success, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Warning", - ), - icon: SvgPicture.asset('lib/assets/icons/warning.svg'), - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Danger", - ), - icon: SvgPicture.asset('lib/assets/icons/danger.svg'), - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Info", - ), - icon: SvgPicture.asset('lib/assets/icons/info.svg'), - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Light", - ), - icon: SvgPicture.asset('lib/assets/icons/light.svg'), - type: GFType.solid, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Dark", - style: TextStyle(color: getGFColor(GFColor.white)), - ), - icon: SvgPicture.asset('lib/assets/icons/dark.svg'), - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Link", - ), - icon: SvgPicture.asset('lib/assets/icons/link.svg'), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Shadow Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Primary", - ), - icon: - SvgPicture.asset('lib/assets/icons/primary.svg'), - buttonBoxShadow: true, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text("Second"), - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg'), - color: GFColor.secondary, - buttonBoxShadow: true, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - icon: - SvgPicture.asset('lib/assets/icons/success.svg'), - color: GFColor.success, - buttonBoxShadow: true, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - icon: SvgPicture.asset('lib/assets/icons/warning.svg'), - color: GFColor.warning, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - icon: SvgPicture.asset('lib/assets/icons/danger.svg'), - color: GFColor.danger, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - icon: SvgPicture.asset('lib/assets/icons/info.svg'), - color: GFColor.info, - buttonBoxShadow: true, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - icon: SvgPicture.asset('lib/assets/icons/light.svg'), - type: GFType.solid, - color: GFColor.light, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - style: TextStyle(color: getGFColor(GFColor.white)), - ), - icon: SvgPicture.asset('lib/assets/icons/dark.svg'), - color: GFColor.dark, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - icon: SvgPicture.asset('lib/assets/icons/link.svg'), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text("Large", - style: TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - icon: SvgPicture.asset('lib/assets/icons/primary.svg'), - ), - GFButton( - onPressed: () {}, - child: Text("Normal", - style: TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - icon: - SvgPicture.asset('lib/assets/icons/secondary.svg'), - ), - GFButton( - onPressed: () {}, - child: Text("Small", - style: TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - icon: SvgPicture.asset('lib/assets/icons/info.svg'), - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - size: GFSize.large, - icon: SvgPicture.asset('lib/assets/icons/primary.svg'), - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - size: GFSize.medium, - icon: SvgPicture.asset('lib/assets/icons/secondary.svg'), - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - size: GFSize.small, - icon: SvgPicture.asset('lib/assets/icons/success.svg'), - ), - SizedBox( - height: 10, - ), - ], - ), - ), - - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Icons Only', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - icon: - SvgPicture.asset('lib/assets/icons/primary.svg'), - onPressed: () {}), - GFIconButton( - color: GFColor.secondary, - icon: SvgPicture.asset( - 'lib/assets/icons/secondary.svg'), - onPressed: () {}), - GFIconButton( - color: GFColor.success, - icon: - SvgPicture.asset('lib/assets/icons/success.svg'), - onPressed: () {}), - GFIconButton( - color: GFColor.warning, - icon: - SvgPicture.asset('lib/assets/icons/warning.svg'), - onPressed: () {}), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - color: GFColor.danger, - icon: SvgPicture.asset('lib/assets/icons/danger.svg'), - onPressed: () {}), - GFIconButton( - color: GFColor.info, - icon: SvgPicture.asset('lib/assets/icons/info.svg'), - onPressed: () {}), - GFIconButton( - color: GFColor.light, - icon: SvgPicture.asset('lib/assets/icons/light.svg'), - onPressed: () {}), - GFIconButton( - color: GFColor.dark, - icon: SvgPicture.asset('lib/assets/icons/dark.svg'), - onPressed: () {}), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - type: GFType.outline, - icon: Icon(Icons.settings), - onPressed: () {}), - GFIconButton( - type: GFType.outline, - color: GFColor.secondary, - icon: Icon(Icons.send), - onPressed: () {}), - GFIconButton( - type: GFType.outline, - color: GFColor.success, - icon: Icon(Icons.file_download), - onPressed: () {}), - GFIconButton( - type: GFType.outline, - color: GFColor.warning, - icon: Icon(Icons.warning), - onPressed: () {}), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - type: GFType.outline, - color: GFColor.danger, - icon: Icon(Icons.insert_drive_file), - onPressed: () {}), - GFIconButton( - type: GFType.outline, - color: GFColor.info, - icon: Icon(Icons.delete), - onPressed: () {}), - GFIconButton( - type: GFType.outline, - color: GFColor.light, - icon: Icon(Icons.info), - onPressed: () {}), - GFIconButton( - type: GFType.outline, - color: GFColor.dark, - icon: Icon(Icons.apps), - onPressed: () {}), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - )); - } -} diff --git a/demo_app/lib/screens/button/pill-buttons.dart b/demo_app/lib/screens/button/pill-buttons.dart deleted file mode 100644 index b994ecba..00000000 --- a/demo_app/lib/screens/button/pill-buttons.dart +++ /dev/null @@ -1,1189 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - -class PillsButtons extends StatefulWidget { - @override - _PillsButtonsState createState() => _PillsButtonsState(); -} - -class _PillsButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: () { - Navigator.pop(context); - }, - child: Image.asset('lib/assets/icons/back.png')), - title: Text( - 'Pills Buttons', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), - body: GFTabs( - height: MediaQuery.of(context).size.height, - tabBarColor: Color(0xFFD3E9ED), - initialIndex: 0, - length: 3, - indicatorColor: getGFColor(GFColor.info), - unselectedLabelColor: getGFColor(GFColor.danger), - labelColor: getGFColor(GFColor.warning), - tabs: [ - GFButton( - onPressed: null, - child: Text( - "Solid", - style: TextStyle(fontSize: 12), - ), - type: GFType.solid, - textColor: GFColor.white, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: null, - child: Text( - "Outline", - style: TextStyle(fontSize: 12), - ), - type: GFType.outline, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: null, - text: 'Outline 2x', - textStyle: TextStyle(fontSize: 12, color: getGFColor(GFColor.dark)), - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - ], - tabBarView: GFTabBarView( - children: [ - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - shape: GFButtonShape.pills, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - shape: GFButtonShape.pills, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - shape: GFButtonShape.pills, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - shape: GFButtonShape.pills, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - shape: GFButtonShape.pills, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - shape: GFButtonShape.pills, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - shape: GFButtonShape.pills, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - shape: GFButtonShape.pills, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - shape: GFButtonShape.pills, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - shape: GFButtonShape.pills, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - shape: GFButtonShape.pills, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - shape: GFButtonShape.pills, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - shape: GFButtonShape.pills, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - shape: GFButtonShape.pills, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text("Large", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text("Normal", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text("Small", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - shape: GFButtonShape.pills, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Large", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Normal", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Small", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - - //tab 2 - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - type: GFType.outline, - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - type: GFType.outline, - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.outline, - shape: GFButtonShape.pills, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - - //tab 3 - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - type: GFType.outline2x, - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.pills, - child: Text( - "Primary", - ), - type: GFType.outline2x, - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.outline2x, - shape: GFButtonShape.pills, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline2x, - shape: GFButtonShape.pills, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - ], - ), - ), - ); - } -} diff --git a/demo_app/lib/screens/button/shadow-buttons.dart b/demo_app/lib/screens/button/shadow-buttons.dart deleted file mode 100644 index 7724c422..00000000 --- a/demo_app/lib/screens/button/shadow-buttons.dart +++ /dev/null @@ -1,1048 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - -class ShadowButtons extends StatefulWidget { - @override - _ShadowButtonsState createState() => _ShadowButtonsState(); -} - -class _ShadowButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: () { - Navigator.pop(context); - }, - child: Image.asset('lib/assets/icons/back.png')), - title: Text( - 'Shadow Buttons', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), -// body: GFTabs( -// height: MediaQuery.of(context).size.height, -// tabBarColor: Color(0xFFD3E9ED), -// initialIndex: 0, -// length: 3, -// indicatorColor: getGFColor(GFColor.info), -// unselectedLabelColor: getGFColor(GFColor.danger), -// labelColor: getGFColor(GFColor.warning), -// tabs: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Solid", -// style: TextStyle(fontSize: 12), -// ), -// buttonBoxShadow: true, -// textColor: GFColor.white, -// ), -// GFButton( -// onPressed: null, -// child: Text( -// "Outline", -// style: TextStyle(fontSize: 12), -// ), -// type: GFType.outline, -// ), -// GFButton( -// onPressed: null, -// text: 'Outline 2x', -// textStyle: TextStyle(fontSize: 12, color: getGFColor(GFColor.dark)), -// type: GFType.outline2x, -// ), -// ], -// tabBarView: GFTabBarView( -// children: [ -// Container( -//// color: Colors.red, -// child: ListView( -// children: [ -// Padding(padding: EdgeInsets.only(left:15, top:30), -// child: GFTypography( -// text: 'Default', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// shape: GFButtonShape.standard, -// -// buttonBoxShadow: true, -// child: Text("Primary", -// ), -// -// color: GFColor.primary, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Secondary", -// ), -// -// color: GFColor.secondary, -// buttonBoxShadow: true, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Success", -// ), -// buttonBoxShadow: true, -// color: GFColor.success, -// ), -// ], -// ), -// -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Warning", -// ), -// buttonBoxShadow: true, -// color: GFColor.warning, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Danger", -// ), -// buttonBoxShadow: true, -// color: GFColor.danger, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Info", -// ), -// buttonBoxShadow: true, -// color: GFColor.info, -// ), -// ], -// ), -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Light", -// ), -// buttonBoxShadow: true, -// color: GFColor.light, -// ), -// -// GFButton( -// onPressed: (){}, -// child: Text( -// "Dark", -// style: -// TextStyle(color: getGFColor(GFColor.white)), -// ), -// buttonBoxShadow: true, -// color: GFColor.dark, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Link", -// ), -// buttonBoxShadow: false, -// color: GFColor.transparent, -// ), -// ], -// ), -//SizedBox( -// height: 10, -//) -// -// ], -// ), -// ), -// -// -// -// -// Padding(padding: EdgeInsets.only(left:15, top:10), -// child: GFTypography( -// text: 'Button Sizes', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// -// -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text("Large", -// ), -// color: GFColor.primary, -// size: GFSize.large, -// buttonBoxShadow: true, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Normal", -// ), -// color: GFColor.primary, -// size: GFSize.medium, -// buttonBoxShadow: true, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Small", -// ), -// color: GFColor.primary, -// size: GFSize.small, -// buttonBoxShadow: true, -// ), -// ], -// ), -// SizedBox( -// height: 10, -// ), -// -// ], -// ), -// ), -// -// -// Padding(padding: EdgeInsets.only(left:15, top:10), -// child: GFTypography( -// text: 'Block Buttons', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// -// -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Large", -// style: TextStyle( -// color: getGFColor(GFColor.white))), -// color: GFColor.primary, -// size: GFSize.large, -// buttonBoxShadow: true, -// ), -// -// SizedBox( -// height: 10, -// ), -// -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Normal", -// style: TextStyle( -// color: getGFColor(GFColor.white))), -// color: GFColor.primary, -// size: GFSize.medium, -// buttonBoxShadow: true, -// ), -// -// SizedBox( -// height: 10, -// ), -// -// -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Small", -// style: TextStyle( -// color: getGFColor(GFColor.white))), -// color: GFColor.primary, -// size: GFSize.small, -// buttonBoxShadow: true, -// ), -// SizedBox( -// height: 10, -// ), -// -// ], -// ), -// ), -// ], -// ), -// ), -// -// -// //tab 2 -// Container( -//// color: Colors.red, -// child: ListView( -// children: [ -// -// Padding(padding: EdgeInsets.only(left:15, top:30), -// child: GFTypography( -// text: 'Default', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Primary", -// -// ), -// -// type: GFType.outline, -// -// ), -// -// -// GFButton( -// onPressed: (){}, -// child: Text("Secondary"), -// type: GFType.outline, -// color: GFColor.secondary, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Success", -// ), -// type: GFType.outline, -// color: GFColor.success, -// ), -// ], -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Warning", -// ), -// type: GFType.outline, -// color: GFColor.warning, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Danger", -// ), -// type: GFType.outline, -// color: GFColor.danger, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Info", -// ), -// type: GFType.outline, -// color: GFColor.info, -// ), -// ], -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Light", -// ), -// type: GFType.outline, -// color: GFColor.light, -// ), -// -// GFButton( -// onPressed: (){}, -// child: Text( -// "Dark", -// ), -// type: GFType.outline, -// color: GFColor.dark, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Link", -// ), -// color: GFColor.transparent, -// ), -// ], -// ), -// ], -// ), -// ), -// -// -// -// Padding(padding: EdgeInsets.only(left:15, top:10), -// child: GFTypography( -// text: 'Button Sizes', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// -// -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text("Large", -// ), -// color: GFColor.primary, -// size: GFSize.large, -// type: GFType.outline, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Normal", -// ), -// color: GFColor.primary, -// size: GFSize.medium, -// type: GFType.outline, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Small", -// ), -// color: GFColor.primary, -// size: GFSize.small, -// type: GFType.outline, -// ), -// ], -// ), -// -// ], -// ), -// ), -// -// -// Padding(padding: EdgeInsets.only(left:15, top:10), -// child: GFTypography( -// text: 'Block Buttons', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// -// -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Large", -// ), -// color: GFColor.primary, -// size: GFSize.large, -// type: GFType.outline, -// ), -// -// SizedBox( -// height: 10, -// ), -// -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Normal", -// ), -// color: GFColor.primary, -// size: GFSize.medium, -// type: GFType.outline, -// ), -// -// SizedBox( -// height: 10, -// ), -// -// -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Small", -// ), -// color: GFColor.primary, -// size: GFSize.small, -// type: GFType.outline, -// ), -// -// ], -// ), -// ), -// -// ], -// ), -// ), -// -// -// //tab 3 -// Container( -//// color: Colors.red, -// child: ListView( -// children: [ -// -// Padding(padding: EdgeInsets.only(left:15, top:30), -// child: GFTypography( -// text: 'Default', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Primary", -// -// ), -// -// type: GFType.outline2x, -// -// ), -// -// -// GFButton( -// onPressed: (){}, -// child: Text("Secondary"), -// type: GFType.outline2x, -// color: GFColor.secondary, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Success", -// ), -// type: GFType.outline2x, -// color: GFColor.success, -// ), -// ], -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Warning", -// ), -// type: GFType.outline2x, -// color: GFColor.warning, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Danger", -// ), -// type: GFType.outline2x, -// color: GFColor.danger, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Info", -// ), -// type: GFType.outline2x, -// color: GFColor.info, -// ), -// ], -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text( -// "Light", -// ), -// type: GFType.outline2x, -// color: GFColor.light, -// ), -// -// GFButton( -// onPressed: (){}, -// child: Text( -// "Dark", -// ), -// type: GFType.outline2x, -// color: GFColor.dark, -// ), -// GFButton( -// onPressed: (){}, -// child: Text( -// "Link", -// ), -// -// color: GFColor.transparent, -// ), -// ], -// ), -// ], -// ), -// ), -// -// -// -// Padding(padding: EdgeInsets.only(left:15, top:10), -// child: GFTypography( -// text: 'Button Sizes', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// -// -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// Row( -// mainAxisAlignment: MainAxisAlignment.spaceBetween, -// children: [ -// GFButton( -// onPressed: (){}, -// child: Text("Large", -// ), -// color: GFColor.primary, -// size: GFSize.large, -// type: GFType.outline2x, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Normal", -// ), -// color: GFColor.primary, -// size: GFSize.medium, -// type: GFType.outline2x, -// ), -// GFButton( -// onPressed: (){}, -// child: Text("Small", -// ), -// color: GFColor.primary, -// size: GFSize.small, -// type: GFType.outline2x, -// ), -// ], -// ), -// -// ], -// ), -// ), -// -// -// Padding(padding: EdgeInsets.only(left:15, top:10), -// child: GFTypography( -// text: 'Block Buttons', -// type: GFTypographyType.typo5, -// dividerWidth: 25, -// dividerColor: Color(0xFF19CA4B), -// -// ), -// ), -// -// -// GFCard( -// content: Column( -// mainAxisAlignment: MainAxisAlignment.start, -// crossAxisAlignment: CrossAxisAlignment.start, -// children: [ -// SizedBox( -// height: 10, -// ), -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Large", -// ), -// color: GFColor.primary, -// size: GFSize.large, -// type: GFType.outline2x, -// ), -// -// SizedBox( -// height: 10, -// ), -// -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Normal", -// ), -// color: GFColor.primary, -// size: GFSize.medium, -// type: GFType.outline2x, -// ), -// -// SizedBox( -// height: 10, -// ), -// -// -// GFButton( -// onPressed: (){}, -// blockButton: true, -// child: Text("Small", -// ), -// color: GFColor.primary, -// size: GFSize.small, -// type: GFType.outline2x, -// ), -// -// ], -// ), -// ), -// -// ], -// ), -// ), -// ], -// ), -// ), - - body: Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.standard, - buttonBoxShadow: true, - child: Text( - "Primary", - ), - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - buttonBoxShadow: true, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - buttonBoxShadow: true, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - buttonBoxShadow: true, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - buttonBoxShadow: true, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - buttonBoxShadow: true, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - style: TextStyle(color: getGFColor(GFColor.white)), - ), - buttonBoxShadow: true, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - buttonBoxShadow: false, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ) - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - buttonBoxShadow: true, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Large", - style: TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - buttonBoxShadow: true, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Normal", - style: TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - buttonBoxShadow: true, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Small", - style: TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - buttonBoxShadow: true, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - ); - } -} diff --git a/demo_app/lib/screens/button/social-buttons.dart b/demo_app/lib/screens/button/social-buttons.dart deleted file mode 100644 index 0d8bf3ea..00000000 --- a/demo_app/lib/screens/button/social-buttons.dart +++ /dev/null @@ -1,331 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/shape/gf_icon_button_shape.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:flutter_svg/flutter_svg.dart'; - -class SocialButtons extends StatefulWidget { - @override - _SocialButtonsState createState() => _SocialButtonsState(); -} - -class _SocialButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: () { - Navigator.pop(context); - }, - child: Image.asset('lib/assets/icons/back.png')), - title: Text( - 'Social Buttons', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), - body: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Social Buttons Full', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GFButton( - buttonBoxShadow: true, - color: Color(0xFF3B5998), - onPressed: () {}, - child: Text( - "FB", - ), - icon: SvgPicture.asset('lib/assets/icons/fb.svg')), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text("Twitter"), - icon: SvgPicture.asset('lib/assets/icons/twitter.svg'), - color: Color(0xFF00ACEE), - buttonBoxShadow: true, - ), - ), - SizedBox( - width: 6, - ), - Expanded( - child: GFButton( - onPressed: () {}, - child: Text( - "Whatsap", - ), - icon: SvgPicture.asset('lib/assets/icons/whatsapp.svg'), - color: Color(0xFF25D366), - buttonBoxShadow: true, - ), - ) - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Google +", - ), - icon: SvgPicture.asset('lib/assets/icons/google.svg'), - color: Color(0xFFDD4B39), - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dribble", - ), - icon: SvgPicture.asset('lib/assets/icons/dribble.svg'), - color: Color(0xFFEA4C89), - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "LinkedIn", - ), - icon: SvgPicture.asset('lib/assets/icons/linkedin.svg'), - color: Color(0xFF0E76A8), - buttonBoxShadow: true, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Youtube", - ), - icon: SvgPicture.asset('lib/assets/icons/youtube.svg'), - color: Color(0xFFC4302B), - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Slack", - style: TextStyle(color: getGFColor(GFColor.white)), - ), - icon: SvgPicture.asset('lib/assets/icons/slack.svg'), - color: Color(0XFF2EB67D), - buttonBoxShadow: true, - ), - GFButton( - onPressed: () {}, - child: Text( - "Pinterest", - ), - icon: SvgPicture.asset('lib/assets/icons/pinterest.svg'), - color: Color(0XFFC8232C), - buttonBoxShadow: true, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Social Buttons Icons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - color: Color(0xFF3B5998), - icon: SvgPicture.asset('lib/assets/icons/fb.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFF00ACEE), - icon: SvgPicture.asset('lib/assets/icons/twitter.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFF25D366), - icon: SvgPicture.asset('lib/assets/icons/whatsapp.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFFDD4B39), - icon: SvgPicture.asset('lib/assets/icons/google.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFFEA4C89), - icon: SvgPicture.asset('lib/assets/icons/dribble.svg'), - onPressed: () {}), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - color: Color(0xFF0E76A8), - icon: SvgPicture.asset('lib/assets/icons/linkedin.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFFC4302B), - icon: SvgPicture.asset('lib/assets/icons/youtube.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0XFF2EB67D), - icon: SvgPicture.asset('lib/assets/icons/slack.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0XFFC8232C), - icon: - SvgPicture.asset('lib/assets/icons/pinterest.svg'), - onPressed: () {}), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Floating Social Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - color: Color(0xFF3B5998), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/fb.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFF00ACEE), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/twitter.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFF25D366), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/whatsapp.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFFDD4B39), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/google.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFFEA4C89), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/dribble.svg'), - onPressed: () {}), - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - color: Color(0xFF0E76A8), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/linkedin.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0xFFC4302B), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/youtube.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0XFF2EB67D), - shape: GFIconButtonShape.pills, - icon: SvgPicture.asset('lib/assets/icons/slack.svg'), - onPressed: () {}), - GFIconButton( - color: Color(0XFFC8232C), - shape: GFIconButtonShape.pills, - icon: - SvgPicture.asset('lib/assets/icons/pinterest.svg'), - onPressed: () {}), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ); - } -} diff --git a/demo_app/lib/screens/button/square-buttons.dart b/demo_app/lib/screens/button/square-buttons.dart deleted file mode 100644 index 6c875bd6..00000000 --- a/demo_app/lib/screens/button/square-buttons.dart +++ /dev/null @@ -1,1178 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - -class SquareButtons extends StatefulWidget { - @override - _SquareButtonsState createState() => _SquareButtonsState(); -} - -class _SquareButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: () { - Navigator.pop(context); - }, - child: Image.asset('lib/assets/icons/back.png')), - title: Text( - 'Square Buttons', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), - body: GFTabs( - height: MediaQuery.of(context).size.height, - tabBarColor: Color(0xFFD3E9ED), - initialIndex: 0, - length: 3, - indicatorColor: getGFColor(GFColor.info), - unselectedLabelColor: getGFColor(GFColor.danger), - labelColor: getGFColor(GFColor.warning), - tabs: [ - GFButton( - onPressed: null, - child: Text( - "Solid", - style: TextStyle(fontSize: 12), - ), - textColor: GFColor.white, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: null, - child: Text( - "Outline", - style: TextStyle(fontSize: 12), - ), - type: GFType.outline, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: null, - text: 'Outline 2x', - textStyle: TextStyle(fontSize: 12, color: getGFColor(GFColor.dark)), - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - ], - tabBarView: GFTabBarView( - children: [ - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - shape: GFButtonShape.square, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - shape: GFButtonShape.square, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - shape: GFButtonShape.square, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - shape: GFButtonShape.square, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - shape: GFButtonShape.square, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - shape: GFButtonShape.square, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - shape: GFButtonShape.square, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - shape: GFButtonShape.square, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - shape: GFButtonShape.square, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - shape: GFButtonShape.square, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - shape: GFButtonShape.square, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - shape: GFButtonShape.square, - color: GFColor.dark, - ), - GFButton( - onPressed: null, - child: Text( - "link", - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text("Large", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text("Normal", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text("Small", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - shape: GFButtonShape.square, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 20), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Large", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Normal", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Small", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - - //tab 2 - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - type: GFType.outline, - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - type: GFType.outline, - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - type: GFType.outline, - shape: GFButtonShape.square, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline, - shape: GFButtonShape.square, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - - //tab 3 - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - type: GFType.outline2x, - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.square, - child: Text( - "Primary", - ), - type: GFType.outline2x, - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text( - "Secondary", - ), - color: GFColor.secondary, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - type: GFType.outline2x, - shape: GFButtonShape.square, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline2x, - shape: GFButtonShape.square, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - ], - ), - ), - ); - } -} diff --git a/demo_app/lib/screens/button/standard-buttons.dart b/demo_app/lib/screens/button/standard-buttons.dart deleted file mode 100644 index 0f1e3b70..00000000 --- a/demo_app/lib/screens/button/standard-buttons.dart +++ /dev/null @@ -1,1213 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_toggle_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - -class StandardButtons extends StatefulWidget { - @override - _StandardButtonsState createState() => _StandardButtonsState(); -} - -class _StandardButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - leading: GestureDetector( - onTap: () { - Navigator.pop(context); - }, - child: Image.asset('lib/assets/icons/back.png')), - title: Text( - 'Standard Buttons', - style: TextStyle(fontSize: 17), - ), - centerTitle: true, - ), - body: GFTabs( - height: MediaQuery.of(context).size.height, - tabBarColor: Color(0xFFD3E9ED), - initialIndex: 0, - length: 3, - indicatorColor: getGFColor(GFColor.info), - unselectedLabelColor: getGFColor(GFColor.danger), - labelColor: getGFColor(GFColor.warning), - tabs: [ - GFButton( - onPressed: null, - child: Text( - "Solid", - style: TextStyle(fontSize: 12), - ), - type: GFType.solid, - textColor: GFColor.white, - ), - GFButton( - onPressed: null, - child: Text( - "Outline", - style: TextStyle(fontSize: 12), - ), - type: GFType.outline, - ), - GFButton( - onPressed: null, - text: 'Outline 2x', - textStyle: TextStyle(fontSize: 12, color: getGFColor(GFColor.dark)), - type: GFType.outline2x, - ), - ], - tabBarView: GFTabBarView( - children: [ - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - shape: GFButtonShape.standard, - child: Text("Primary", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text("Secondary", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.secondary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text("Danger", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - style: - TextStyle(color: getGFColor(GFColor.white)), - ), - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.solid, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - shape: GFButtonShape.standard, - child: Text("Primary", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - ), - GFButton( - onPressed: null, - child: Text("Secondary", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.secondary, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Warning", - ), - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text("Danger", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - style: - TextStyle(color: getGFColor(GFColor.white)), - ), - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.solid, - color: GFColor.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Transparent Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Primary", - ), - type: GFType.transparent, - textColor: GFColor.primary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Secondary", - ), - type: GFType.transparent, - textColor: GFColor.secondary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.transparent, - textColor: GFColor.success, - ), - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.transparent, - textColor: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.transparent, - textColor: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.transparent, - textColor: GFColor.info, - ), - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.transparent, - textColor: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.transparent, - textColor: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text("Large", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - ), - GFButton( - onPressed: () {}, - child: Text("Normal", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - ), - GFButton( - onPressed: () {}, - child: Text("Small", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - ), - SizedBox( - height: 10, - ), - ], - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Large", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Normal", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text("Small", - style: - TextStyle(color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - - //tab 2 - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Primary", - ), - type: GFType.outline, - ), - GFButton( - onPressed: () {}, - child: Text("Secondary"), - type: GFType.outline, - color: GFColor.secondary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.outline, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.outline, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.outline, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.outline, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.outline, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Primary", - ), - type: GFType.outline, - ), - GFButton( - onPressed: null, - child: Text("Secondary"), - type: GFType.outline, - color: GFColor.secondary, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - type: GFType.outline, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - type: GFType.outline, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - type: GFType.outline, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - type: GFType.outline, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - type: GFType.outline, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline, - ), - SizedBox( - height: 10, - ), - ], - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - - //tab 3 - Container( -// color: Colors.red, - child: ListView( - children: [ - Padding( - padding: EdgeInsets.only(left: 15, top: 30), - child: GFTypography( - text: 'Default', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Primary", - ), - type: GFType.outline2x, - ), - GFButton( - onPressed: () {}, - child: Text("Secondary"), - type: GFType.outline2x, - color: GFColor.secondary, - ), - GFButton( - onPressed: () {}, - child: Text( - "Success", - ), - type: GFType.outline2x, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline2x, - color: GFColor.warning, - ), - GFButton( - onPressed: () {}, - child: Text( - "Danger", - ), - type: GFType.outline2x, - color: GFColor.danger, - ), - GFButton( - onPressed: () {}, - child: Text( - "Info", - ), - type: GFType.outline2x, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Light", - ), - type: GFType.outline2x, - color: GFColor.light, - ), - GFButton( - onPressed: () {}, - child: Text( - "Dark", - ), - type: GFType.outline2x, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Disabled State', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Primary", - ), - type: GFType.outline2x, - ), - GFButton( - onPressed: null, - child: Text("Secondary"), - type: GFType.outline2x, - color: GFColor.secondary, - ), - GFButton( - onPressed: null, - child: Text( - "Success", - ), - type: GFType.outline2x, - color: GFColor.success, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Warning", - ), - type: GFType.outline2x, - color: GFColor.warning, - ), - GFButton( - onPressed: null, - child: Text( - "Danger", - ), - type: GFType.outline2x, - color: GFColor.danger, - ), - GFButton( - onPressed: null, - child: Text( - "Info", - ), - type: GFType.outline2x, - color: GFColor.info, - ), - ], - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text( - "Light", - ), - type: GFType.outline2x, - color: GFColor.light, - ), - GFButton( - onPressed: null, - child: Text( - "Dark", - ), - type: GFType.outline2x, - color: GFColor.dark, - ), - GFButton( - onPressed: () {}, - child: Text( - "Link", - ), - type: GFType.transparent, - ), - ], - ), - SizedBox( - height: 10, - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Button Sizes', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: () {}, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline2x, - ), - GFButton( - onPressed: () {}, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline2x, - ), - GFButton( - onPressed: () {}, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline2x, - ), - SizedBox( - height: 10, - ), - ], - ), - ], - ), - ), - Padding( - padding: EdgeInsets.only(left: 15, top: 10), - child: GFTypography( - text: 'Block Buttons', - type: GFTypographyType.typo5, - dividerWidth: 25, - dividerColor: Color(0xFF19CA4B), - ), - ), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Large", - ), - color: GFColor.primary, - size: GFSize.large, - type: GFType.outline2x, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Normal", - ), - color: GFColor.primary, - size: GFSize.medium, - type: GFType.outline2x, - ), - SizedBox( - height: 10, - ), - GFButton( - onPressed: () {}, - blockButton: true, - child: Text( - "Small", - ), - color: GFColor.primary, - size: GFSize.small, - type: GFType.outline2x, - ), - SizedBox( - height: 10, - ), - ], - ), - ), - ], - ), - ), - ], - ), - ), - ); - } -} diff --git a/demo_app/lib/screens/cards.dart b/demo_app/lib/screens/cards.dart deleted file mode 100644 index edc00409..00000000 --- a/demo_app/lib/screens/cards.dart +++ /dev/null @@ -1,303 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/list_tile/gf_list_tile.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/components/button/gf_button_bar.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -class Cards extends StatefulWidget { - @override - _CardsState createState() => _CardsState(); -} - -class _CardsState extends State { - @override - Widget build(BuildContext context) { - return - Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text('Cards', style: TextStyle(fontSize: 14),),), - body: ListView( - children: [ - Padding(padding: EdgeInsets.all(20), child: - GFTypography( - text: 'Basic Card', - type: GFTypographyType.typo6, - ),), - GFCard( - boxFit: BoxFit.cover, - colorFilter: new ColorFilter.mode( - Colors.black.withOpacity(0.67), BlendMode.darken), - image:Image.network('https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg'), -// imageOverlay: AssetImage("lib/assets/food.jpeg"), - titlePosition: GFPosition.end, - title: GFListTile( - avatar: GFAvatar( - child: Icon(Icons.insert_emoticon) - ), - title: Text( - 'title', - style: TextStyle(color: Colors.grey), - ), - subTitle: Text( - 'subtitle', - style: TextStyle(color: Colors.grey), - ), - ), - content: Text( - "Flutter " - "Flutter is Google's mobile UI framework for crafting" - " high-quality native interfaces on iOS and Android in " - "Flutter ", - style: TextStyle(color: Colors.grey), - ), - - ), - - Padding(padding: EdgeInsets.all(20), child: - GFTypography( - text: 'Basic Card 1', - type: GFTypographyType.typo6, - ),), - GFCard( - boxFit: BoxFit.cover, - colorFilter: new ColorFilter.mode( - Colors.black.withOpacity(0.67), BlendMode.darken), - image:Image.network('https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg'), -// imageOverlay: AssetImage("lib/assets/food.jpeg"), - titlePosition: GFPosition.end, - title: GFListTile( - avatar: GFAvatar( - child: Icon(Icons.insert_emoticon) - ), - title: Text( - 'title', - style: TextStyle(color: Colors.grey), - ), - subTitle: Text( - 'subtitle', - style: TextStyle(color: Colors.grey), - ), - icon: GFIconButton( - onPressed: null, - icon: Icon(Icons.favorite_border), - type: GFType.transparent, - ), - ), - content: Text( - "Flutter " - "Flutter is Google's mobile UI framework for crafting" - " high-quality native interfaces on iOS and Android in " - "Flutter ", - style: TextStyle(color: Colors.grey), - ), - - ), - - Padding(padding: EdgeInsets.all(20), child: - GFTypography( - text: 'Basic Card 2', - type: GFTypographyType.typo6, - ),), - GFCard( - boxFit: BoxFit.cover, - colorFilter: new ColorFilter.mode( - Colors.black.withOpacity(0.67), BlendMode.darken), - image:Image.network('https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg'), -// imageOverlay: AssetImage("lib/assets/food.jpeg"), - titlePosition: GFPosition.end, - title: GFListTile( - avatar: GFAvatar( - child: Icon(Icons.insert_emoticon) - ), - title: Text( - 'title', - style: TextStyle(color: Colors.grey), - ), - subTitle: Text( - 'subtitle', - style: TextStyle(color: Colors.grey), - ), - icon: GFIconButton( - onPressed: null, - icon: Icon(Icons.favorite_border), - type: GFType.transparent, - ), - ), - content: Text( - "Flutter " - "Flutter is Google's mobile UI framework for crafting" - " high-quality native interfaces on iOS and Android in " - "Flutter ", - style: TextStyle(color: Colors.grey), - ), - buttonBar: GFButtonBar( - mainAxisSize: MainAxisSize.min, - children: [ - GFButton( - onPressed: null, - child: Text("favorite"), - icon: Icon(Icons.favorite_border), - type: GFType.transparent, - ), - GFButton( - onPressed: null, - child: Text("share"), - icon: Icon(Icons.share), - type: GFType.outline, - ), - ], - ), - ), - - Padding(padding: EdgeInsets.all(20), child: - GFTypography( - text: 'Basic Card 3', - type: GFTypographyType.typo6, - ),), - GFCard( - boxFit: BoxFit.cover, - colorFilter: new ColorFilter.mode( - Colors.black.withOpacity(0.67), BlendMode.darken), - image:Image.network('https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg'), -// imageOverlay: AssetImage("lib/assets/food.jpeg"), - titlePosition: GFPosition.end, - title: GFListTile( - - title: Text( - 'title', - style: TextStyle(color: Colors.grey), - ), - subTitle: Text( - 'subtitle', - style: TextStyle(color: Colors.grey), - ), - icon: GFAvatar( - child: Icon(Icons.insert_emoticon) - ) - ), - content: Text( - "Flutter " - "Flutter is Google's mobile UI framework for crafting" - " high-quality native interfaces on iOS and Android in " - "Flutter ", - style: TextStyle(color: Colors.grey), - ), - buttonBar: GFButtonBar( - mainAxisSize: MainAxisSize.min, - children: [ - GFButton( - onPressed: null, - child: Text("favorite"), -// icon: Icon(Icons.favorite_border), - type: GFType.transparent, - ), - GFButton( - onPressed: null, - child: Text("share"), -// icon: Icon(Icons.share), - type: GFType.outline, - ), - GFButton( - onPressed: null, - child: Text("send", style: TextStyle(color: getGFColor(GFColor.white)),), -// icon: Icon(Icons.share), - type: GFType.solid, - ), - ], - ), - ), - Padding(padding: EdgeInsets.all(20), child: - GFTypography( - text: 'Basic Card 4', - type: GFTypographyType.typo6, - ),), - GFCard( - - title: GFListTile( - - title: Text( - 'title', - style: TextStyle(color: Colors.grey), - ), - subTitle: Text( - 'subtitle', - style: TextStyle(color: Colors.grey), - ), - icon: GFAvatar( - child: Icon(Icons.insert_emoticon) - ) - ), - content: Text( - "Flutter " - "Flutter is Google's mobile UI framework for crafting" - " high-quality native interfaces on iOS and Android in " - "Flutter ", - style: TextStyle(color: Colors.grey), - ), - buttonBar: GFButtonBar( - - alignment: MainAxisAlignment.spaceBetween, - children: [ - GFButton( - onPressed: null, - child: Text("favorite"), - icon: Icon(Icons.favorite_border), - type: GFType.transparent, - ), - GFButton( - onPressed: null, - child: Text("share"), - icon: Icon(Icons.share), - type: GFType.outline, - ), - GFIconButton(icon: Icon(Icons.send), onPressed: null) - ], - ), - ), - - Padding(padding: EdgeInsets.all(20), child: - GFTypography( - text: 'Basic Card 5', - type: GFTypographyType.typo6, - ),), - GFCard( - boxFit: BoxFit.cover, - colorFilter: new ColorFilter.mode( - Colors.black.withOpacity(0.67), BlendMode.darken), -// image:Image.network('https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg'), - imageOverlay: NetworkImage('https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg'), -// titlePosition: GFPosition.end, - title: GFListTile( - - title: Text( - 'title', - style: TextStyle(color: Colors.grey), - ), - subTitle: Text( - 'subtitle', - style: TextStyle(color: Colors.grey), - ), - icon: GFAvatar( - child: Icon(Icons.insert_emoticon) - ) - ), - content: Text( - "Flutter " - "Flutter is Google's mobile UI framework for crafting" - " high-quality native interfaces on iOS and Android in " - "Flutter ", - style: TextStyle(color: Colors.grey), - ), - - ), - ]), - ); - } -} diff --git a/demo_app/lib/screens/headers.dart b/demo_app/lib/screens/headers.dart deleted file mode 100644 index 2f1db46f..00000000 --- a/demo_app/lib/screens/headers.dart +++ /dev/null @@ -1,193 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; - -class Headers extends StatefulWidget { - @override - _HeadersState createState() => _HeadersState(); -} - -class _HeadersState extends State { - bool showToast = false; - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text( - 'Headers', - style: TextStyle(fontSize: 14), - ), - ), - body: Container( - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - GFCard( - content: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFTypography( - text: 'GF Header Typo1', - type: GFTypographyType.typo1, - backgroundImage: NetworkImage( - 'https://cdn.pixabay.com/photo/2019/12/25/16/49/happy-new-year-4718894_960_720.png'), - ), - SizedBox( - height: 40, - ), - GFTypography( - icon: GFAvatar(), - text: 'GF Header Typo2', - type: GFTypographyType.typo2, - dividerColor: GFColor.primary, - dividerAlignment: Alignment.center, - ), - SizedBox( - height: 40, - ), - GFTypography( - icon: Icon(Icons.insert_emoticon), - text: 'GF Header Typo3', - type: GFTypographyType.typo3, - dividerWidth: 150, - dividerColor: GFColor.warning, - dividerBorderRadius: BorderRadius.all(Radius.circular(0)), - ), - SizedBox( - height: 40, - ), - GFTypography( - text: 'GF Header Typo4', - type: GFTypographyType.typo4, - dividerWidth: 345, - icon: Image.network( - 'https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg', - width: 50, - )), - SizedBox( - height: 40, - ), - GFTypography( - text: 'GF Header Typo5', - type: GFTypographyType.typo5, - dividerColor: GFColor.alt, - ), - SizedBox( - height: 40, - ), - GFTypography( - text: 'GF Header Typo6', - type: GFTypographyType.typo6, - dividerWidth: 20, - ), - ], - )), - ], - ), - ), - -// body: -// -// Container( -// child: ListView( -// children: [ -// GFToast( -//// width: 70, -// text: 'Happy New Year', -// button: GFButton(onPressed: null, -// text: 'OK', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ), -// -// -// GFFloatingWidget( -//// horizontalPosition: 150, -// child: showToast? GFToast( -// width: 200, -// text: 'Happy New Year', -// button: GFButton(onPressed: null, -// text: 'OK', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ):Container(), -// body: Column( -// crossAxisAlignment: CrossAxisAlignment.center, -// children: [ -// Container( -// -// margin: EdgeInsets.only(top:80, bottom: 10), -// alignment: Alignment.center, -// child: GFButton(onPressed: (){ -// setState(() { -// showToast = !showToast; -// }); -// }, -// text: 'Click to View the toast', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ) -// ], -// ) -// ) -// ], -// ), -// ), -// -// body: -// -// ListView( -// children: [ -// GFToast( -// width: 340, -// text: 'Happy New Year', -// button: GFButton(onPressed: null, -// text: 'OK', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ), -// GFFloatingWidget( -// horizontalPosition: 80, -// child: showToast? GFToast( -// width: 250, -// text: 'Happy New Year', -// button: GFButton(onPressed: null, -// text: 'OK', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ):Container(), -// body: Column( -// crossAxisAlignment: CrossAxisAlignment.center, -// children: [ -// Container( -// -// margin: EdgeInsets.only(top:0, bottom: 10, right: 40), -// alignment: Alignment.center, -// child: GFButton(onPressed: (){ -// setState(() { -// showToast = !showToast; -// }); -// }, -// text: 'Click to View the toast', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ) -// ], -// ) -// ) -// ], -// ), - ); - } -} diff --git a/demo_app/lib/screens/home.dart b/demo_app/lib/screens/home.dart deleted file mode 100644 index 2f3add5e..00000000 --- a/demo_app/lib/screens/home.dart +++ /dev/null @@ -1,690 +0,0 @@ -import 'package:demo_app/screens/button/button-types.dart'; -import 'package:demo_app/screens/cards.dart'; -import 'package:demo_app/screens/icon-button.dart'; -import 'package:demo_app/screens/list-tiles.dart'; -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'avatars.dart'; -import 'toggles.dart'; -import 'headers.dart'; -import 'toasts.dart'; -import '../screens/badges/badges.dart'; -import 'package:flutter_svg/flutter_svg.dart'; -import '../screens/button/standard-buttons.dart'; - -class HomePage extends StatefulWidget { - @override - _HomePageState createState() => _HomePageState(); -} - -class _HomePageState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Image.asset('lib/assets/logo/logo.png'), - centerTitle: true, - ), - body: Container( - margin: EdgeInsets.only(left: 15, right: 15), - child: ListView( - children: [ - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => ButtonTypes()), - ); - }, - child: Container( - height: 160, - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/buttons.png'), - Text( - 'Buttons', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 23, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => Cards()), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/card.png'), -// SvgPicture.asset('lib/assets/icons/buttons.svg', color: getGFColor(GFColor.success),), - Text( - 'Cards', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - )) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/chips.png'), - Text( - 'Chips', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 23, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/items.png'), -// SvgPicture.asset('lib/assets/icons/buttons.svg', color: getGFColor(GFColor.success),), - Text( - 'Items', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - )) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/lists.png'), - Text( - 'Lists', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 23, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/menu.png'), -// SvgPicture.asset('lib/assets/icons/buttons.svg', color: getGFColor(GFColor.success),), - Text( - 'Menu', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - )) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/slider.png'), - Text( - 'Sliders', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 23, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Image.asset('lib/assets/icons/tabs.png'), -// SvgPicture.asset('lib/assets/icons/buttons.svg', color: getGFColor(GFColor.success),), - Text( - 'Tabs', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - )) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/toast.png'), - Text( - 'Toasts', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 23, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Image.asset('lib/assets/icons/toggle.png'), -// SvgPicture.asset('lib/assets/icons/buttons.svg', color: getGFColor(GFColor.success),), - Text( - 'Toggle', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - )) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => Badges() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/badge.png'), - Text( - 'Badges', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 23, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Buttons() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Image.asset('lib/assets/icons/avatar.png'), -// SvgPicture.asset('lib/assets/icons/buttons.svg', color: getGFColor(GFColor.success),), - Text( - 'Avatars', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - )) - ], - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => Headers()), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/typo.png'), - Text( - 'Typography', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ), - SizedBox( - width: 20, - ), - Expanded( - child: GestureDetector( - onTap: () { - Navigator.push( - context, - MaterialPageRoute( -// builder: (BuildContext context) => Headers() - ), - ); - }, - child: Container( - margin: EdgeInsets.only(top: 23), - decoration: BoxDecoration( -// color:getGFColor( GFColor.dark,), - color: Color(0xFF333333), - borderRadius: BorderRadius.all(Radius.circular(7)), - boxShadow: [ - new BoxShadow( - color: Colors.black.withOpacity(0.61), - blurRadius: 8.0, - spreadRadius: 0.0), - ]), - height: 160, - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox( - height: 10, - ), - Image.asset('lib/assets/icons/images.png'), - Text( - 'Images', - style: TextStyle( - fontSize: 20, - color: getGFColor( - GFColor.white, - )), - ) - ], - ), - ), - ), - ) - ], - ), - SizedBox( - height: 20, - ), - ], - ), - )); - } -} diff --git a/demo_app/lib/screens/icon-button.dart b/demo_app/lib/screens/icon-button.dart deleted file mode 100644 index 4a7d8738..00000000 --- a/demo_app/lib/screens/icon-button.dart +++ /dev/null @@ -1,240 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/size/gf_size.dart'; - -class IconButtons extends StatefulWidget { - @override - _IconButtonsState createState() => _IconButtonsState(); -} - -class _IconButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text( - 'Icon Button', - style: TextStyle(fontSize: 14), - ), - ), - body: ListView( - children: [ - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Solid Icon Button', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 15.0, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.solid, - size: GFSize.large, - buttonBoxShadow: true, - color: GFColor.primary, -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.solid, - size: GFSize.medium, - - color: GFColor.warning, -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.solid, - size: GFSize.small, - buttonBoxShadow: true, - color: GFColor.success, -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - ], - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Outline Icon Button', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 15.0, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.outline, - size: GFSize.large, - -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - size: GFSize.medium, - type: GFType.outline, -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.outline, - size: GFSize.small, - -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - ], - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Transparent Icon Button', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 15.0, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.transparent, - size: GFSize.large, - -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - size: GFSize.medium, - type: GFType.transparent, -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - GFIconButton( - onPressed: null, - icon: Icon(Icons.ac_unit), -// iconSize: 12.0, - - type: GFType.transparent, - size: GFSize.small, - -// boxShadow: BoxShadow( -// color: Colors.pink, -// blurRadius: 2.0, -// spreadRadius: 1.0, -// offset: Offset.zero, -// ), -// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), -// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), - ), - ], - ) - ], - ), - ) - ], - ), - ); - } -} diff --git a/demo_app/lib/screens/list-tiles.dart b/demo_app/lib/screens/list-tiles.dart deleted file mode 100644 index 7adc8f33..00000000 --- a/demo_app/lib/screens/list-tiles.dart +++ /dev/null @@ -1,111 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/list_tile/gf_list_tile.dart'; -import 'package:ui_kit/shape/gf_avatar_shape.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; - -class ListTiles extends StatefulWidget { - @override - _ListTilesState createState() => _ListTilesState(); -} - -class _ListTilesState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text( - 'List Tile', - style: TextStyle(fontSize: 14), - ), - ), - body: ListView( - children: [ - GFCard( - content: GFListTile( - title: GFTypography( - text: 'List tile', - type: GFTypographyType.typo5, - showDivider: false, - ), - subTitle: Text( - 'Lorem ipsum', - style: TextStyle(color: getGFColor(GFColor.dark)), - ), - showDivider: false, - ), - ), - GFCard( - content: GFListTile( - avatar: GFAvatar( - shape: GFAvatarShape.standard, - ), - title: GFTypography( - text: 'List tile', - type: GFTypographyType.typo5, - showDivider: false, - ), - subTitle: Text( - 'Lorem ipsum', - style: TextStyle(color: getGFColor(GFColor.dark)), - ), - description: Text( - 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', - style: TextStyle( - fontSize: 13, color: getGFColor(GFColor.secondary))), - showDivider: false, - ), - ), - GFCard( - content: GFListTile( - title: GFTypography( - text: 'List tile', - type: GFTypographyType.typo5, - showDivider: false, - ), - subTitle: Text( - 'Lorem ipsum', - style: TextStyle(color: getGFColor(GFColor.dark)), - ), - description: Text( - 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', - style: TextStyle( - fontSize: 13, color: getGFColor(GFColor.secondary))), - icon: GFAvatar( - shape: GFAvatarShape.circle, - ), - showDivider: false, - ), - ), - GFCard( - content: GFListTile( - avatar: GFAvatar( - shape: GFAvatarShape.square, - ), - title: GFTypography( - text: 'List tile', - type: GFTypographyType.typo5, - showDivider: false, - ), - subTitle: Text( - 'Lorem ipsum', - style: TextStyle(color: getGFColor(GFColor.dark)), - ), - description: Text( - 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', - style: TextStyle( - fontSize: 13, color: getGFColor(GFColor.secondary))), - icon: GFIconButton(icon: Icon(Icons.share), onPressed: null), - showDivider: false, - ), - ) - ], - ), - ); - } -} diff --git a/demo_app/lib/screens/toasts.dart b/demo_app/lib/screens/toasts.dart deleted file mode 100644 index 8b02503a..00000000 --- a/demo_app/lib/screens/toasts.dart +++ /dev/null @@ -1,96 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/toast/gf_toast.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_type.dart'; - -class Toasts extends StatefulWidget { - @override - _ToastsState createState() => _ToastsState(); -} - -class _ToastsState extends State { - bool showToast = false; - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text( - 'Toast', - style: TextStyle(fontSize: 14), - ), - ), - body: ListView( - children: [ - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Toast', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - GFToast( - text: 'Happy New Year', - button: GFButton( - onPressed: null, - text: 'OK', - type: GFType.outline, - color: GFColor.warning, - ), - ), - ], - ), - ), - -// GFCard( -// content: Column( -// children: [ -// GFHeader( -// text: 'Floating Toast', -// type: GFHeadingType.typo6, -// ), -// GFFloatingWidget( -// horizontalPosition: 80, -// child: showToast? GFToast( -// width: 300, -// text: 'Happy New Year', -// button: GFButton(onPressed: null, -// text: 'OK', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ):Container(), -// body: Column( -// crossAxisAlignment: CrossAxisAlignment.center, -// children: [ -// Container( -// -// margin: EdgeInsets.only(top:0, bottom: 10, right: 40), -// alignment: Alignment.center, -// child: GFButton(onPressed: (){ -// setState(() { -// showToast = !showToast; -// }); -// }, -// text: 'Click to View the toast', -// type: GFType.outline, -// color: GFColor.warning, -// ), -// ) -// ], -// ) -// ) -// ], -// ), -// ) - ], - )); - } -} diff --git a/demo_app/lib/screens/toggles.dart b/demo_app/lib/screens/toggles.dart deleted file mode 100644 index 691795dd..00000000 --- a/demo_app/lib/screens/toggles.dart +++ /dev/null @@ -1,125 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/painting.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/components/toggle/gf_toggle.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; -import 'package:ui_kit/types/gf_toggle_type.dart'; -import 'package:ui_kit/colors/gf_color.dart'; - -class Toggles extends StatefulWidget { - @override - _TogglesState createState() => _TogglesState(); -} - -class _TogglesState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - backgroundColor: getGFColor(GFColor.dark), - title: Text('Toggle', style: TextStyle(fontSize: 14),), - ), - body: Container( - margin: EdgeInsets.all(20), - child: Column( - children: [ - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Android', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - GFToggle(onChanged: null, value: null, - type: GFToggleType.android, - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'IOS', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - GFToggle(onChanged: null, value: null, - type: GFToggleType.ios, - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Square', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - GFToggle(onChanged: null, value: null, - type: GFToggleType.square, - ) - ], - ), - ), - GFCard( - content: Column( - children: [ - GFTypography( - text: 'Custom', - type: GFTypographyType.typo6, - ), - SizedBox( - height: 10, - ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFToggle(onChanged: null, value: null, - type: GFToggleType.custom, - ), - GFToggle(onChanged: null, value: null, - type: GFToggleType.android, - boxShape: BoxShape.rectangle, - enabledTrackColor: getGFColor(GFColor.warning), - - ), - GFToggle(onChanged: null, value: null, - type: GFToggleType.ios, - boxShape: BoxShape.rectangle, - enabledTrackColor: getGFColor(GFColor.info), - - - borderRadius: BorderRadius.all(Radius.circular(0)), - ), - GFToggle(onChanged: null, value: null, - type: GFToggleType.ios, - boxShape: BoxShape.rectangle, - enabledText: 'ON', - disabledText: 'OFF', - enabledTrackColor: getGFColor(GFColor.danger), - borderRadius: BorderRadius.all(Radius.circular(0)), - ) - ], - ), - - ], - ), - ), - - ], - ), - ), - ); - } -} diff --git a/demo_app/pubspec.lock b/demo_app/pubspec.lock deleted file mode 100644 index 91263cf1..00000000 --- a/demo_app/pubspec.lock +++ /dev/null @@ -1,224 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - archive: - dependency: transitive - description: - name: archive - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.11" - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.2" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.2" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.14.11" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.3" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.3" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_svg: - dependency: "direct main" - description: - name: flutter_svg - url: "https://pub.dartlang.org" - source: hosted - version: "0.15.0" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - image: - dependency: transitive - description: - name: image - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.6" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.8" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.6.4" - path_drawing: - dependency: transitive - description: - name: path_drawing - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.1" - path_parsing: - dependency: transitive - description: - name: path_parsing - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.4" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0+1" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.0" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.5" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.5" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.3" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.11" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.6" - ui_kit: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.8" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.dartlang.org" - source: hosted - version: "3.5.0" -sdks: - dart: ">=2.4.0 <3.0.0" - flutter: ">=1.5.9-pre.94 <2.0.0" diff --git a/demo_app/pubspec.yaml b/demo_app/pubspec.yaml deleted file mode 100644 index 95424a34..00000000 --- a/demo_app/pubspec.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: demo_app -description: A new Flutter project. -version: 1.0.0+1 - -environment: - sdk: ">=2.1.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - ui_kit: - path: ../ - - cupertino_icons: ^0.1.2 - flutter_svg: ^0.15.0 - -dev_dependencies: - flutter_test: - sdk: flutter - -flutter: - uses-material-design: true - - assets: - - lib/assets/logo/logo.png - - lib/assets/icons/buttons.png - - lib/assets/icons/buttons.svg - - lib/assets/icons/avatar.png - - lib/assets/icons/badge.png - - lib/assets/icons/card.png - - lib/assets/icons/chips.png - - lib/assets/icons/items.png - - lib/assets/icons/lists.png - - lib/assets/icons/menu.png - - lib/assets/icons/slider.png - - lib/assets/icons/tabs.png - - lib/assets/icons/toast.png - - lib/assets/icons/toggle.png - - lib/assets/icons/typo.png - - lib/assets/icons/images.png - - lib/assets/icons/back.png - - lib/assets/icons/next.png - - lib/assets/icons/primary.svg - - lib/assets/icons/secondary.svg - - lib/assets/icons/success.svg - - lib/assets/icons/warning.svg - - lib/assets/icons/danger.svg - - lib/assets/icons/info.svg - - lib/assets/icons/dark.svg - - lib/assets/icons/link.svg - - lib/assets/icons/light.svg - - lib/assets/icons/fb.svg - - lib/assets/icons/twitter.svg - - lib/assets/icons/whatsapp.svg - - lib/assets/icons/google.svg - - lib/assets/icons/dribble.svg - - lib/assets/icons/youtube.svg - - lib/assets/icons/slack.svg - - lib/assets/icons/pinterest.svg - - lib/assets/icons/linkedin.svg - - diff --git a/demo_app/test/widget_test.dart b/demo_app/test/widget_test.dart deleted file mode 100644 index 98c3ecc4..00000000 --- a/demo_app/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -//import 'package:flutter/material.dart'; -//import 'package:flutter_test/flutter_test.dart'; -// -//import 'package:demo_app/main.dart'; -// -//void main() { -// testWidgets('Counter increments smoke test', (WidgetTester tester) async { -// // Build our app and trigger a frame. -// await tester.pumpWidget(MyApp()); -// -// // Verify that our counter starts at 0. -// expect(find.text('0'), findsOneWidget); -// expect(find.text('1'), findsNothing); -// -// // Tap the '+' icon and trigger a frame. -// await tester.tap(find.byIcon(Icons.add)); -// await tester.pump(); -// -// // Verify that our counter has incremented. -// expect(find.text('0'), findsNothing); -// expect(find.text('1'), findsOneWidget); -// }); -//} diff --git a/demo_app/web/index.html b/demo_app/web/index.html deleted file mode 100644 index 3a82fe25..00000000 --- a/demo_app/web/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - demo_app - - - - - diff --git a/example/README.md b/example/README.md index ee3b8d2c..e9446893 100644 --- a/example/README.md +++ b/example/README.md @@ -1,4 +1,4 @@ -# ui_kit_example +# getflutter_example A new Flutter project. diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 29db49b0..7e689f26 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -38,7 +38,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.ui_kit_example" + applicationId "com.example.getflutter_example" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index b340dd4e..b442902c 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.example.getflutter_example"> diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 093e7a15..15c1ba65 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.example.getflutter_example"> + package="com.example.getflutter_example"> diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 33ec484b..2ea12e65 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -11,7 +11,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - ui_kit_example + getflutter_example CFBundlePackageType APPL CFBundleShortVersionString diff --git a/example/lib/assets/img.png b/example/lib/assets/img.png new file mode 100644 index 00000000..11c0e7ef Binary files /dev/null and b/example/lib/assets/img.png differ diff --git a/example/lib/main.dart b/example/lib/main.dart index d79cb9f1..308f4568 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,37 +1,40 @@ import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/components/badge/gf_button_badge.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; -import 'package:ui_kit/components/badge/gf_badge.dart'; -import 'package:ui_kit/components/list/gf_list.dart'; -import 'package:ui_kit/components/tabs/gf_segment_tabs.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/shape/gf_badge_shape.dart'; +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/components/button/gf_button.dart'; +import 'package:getflutter/components/badge/gf_button_badge.dart'; +import 'package:getflutter/components/avatar/gf_avatar.dart'; +import 'package:getflutter/components/badge/gf_badge.dart'; +// import 'package:getflutter/components/list/gf_list.dart'; +import 'package:getflutter/components/tabs/gf_segment_tabs.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/types/gf_type.dart'; +import 'package:getflutter/shape/gf_button_shape.dart'; +import 'package:getflutter/shape/gf_badge_shape.dart'; import 'package:flutter/cupertino.dart'; -import 'package:ui_kit/components/tabs/gf_tabs.dart'; -import 'package:ui_kit/components/drawer/gf_drawer.dart'; -import 'package:ui_kit/components/drawer/gf_drawer_header.dart'; -import 'package:ui_kit/components/toast/gf_toast.dart'; -import 'package:ui_kit/components/appbar/gf_appbar.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; -import 'package:ui_kit/components/button/gf_social_button.dart'; -import 'package:ui_kit/components/carousel/gf_carousel.dart'; -import 'package:ui_kit/components/carousel/gf_items_carousel.dart'; -import 'package:ui_kit/shape/gf_avatar_shape.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/components/image/gf_image_overlay.dart'; -import 'package:ui_kit/components/list_tile/gf_list_tile.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/components/button/gf_button_bar.dart'; -import 'package:ui_kit/components/badge/gf_icon_badge.dart'; -import 'package:ui_kit/shape/gf_icon_button_shape.dart'; -import 'package:ui_kit/components/tabs/gf_tabBar.dart'; -import 'package:ui_kit/components/typography/gf_typography.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; +import 'package:getflutter/components/tabs/gf_tabs.dart'; +import 'package:getflutter/components/drawer/gf_drawer.dart'; +import 'package:getflutter/components/drawer/gf_drawer_header.dart'; +import 'package:getflutter/components/toast/gf_toast.dart'; +import 'package:getflutter/components/appbar/gf_appbar.dart'; +import 'package:getflutter/components/tabs/gf_tabBarView.dart'; +import 'package:getflutter/components/button/gf_icon_button.dart'; +import 'package:getflutter/components/button/gf_social_button.dart'; +import 'package:getflutter/components/carousel/gf_carousel.dart'; +import 'package:getflutter/components/carousel/gf_items_carousel.dart'; +import 'package:getflutter/shape/gf_avatar_shape.dart'; +import 'package:getflutter/components/card/gf_card.dart'; +import 'package:getflutter/components/image/gf_image_overlay.dart'; +import 'package:getflutter/components/list_tile/gf_list_tile.dart'; +import 'package:getflutter/position/gf_position.dart'; +import 'package:getflutter/components/button/gf_button_bar.dart'; +import 'package:getflutter/components/badge/gf_icon_badge.dart'; +import 'package:getflutter/shape/gf_icon_button_shape.dart'; +import 'package:getflutter/components/tabs/gf_tabBar.dart'; +import 'package:getflutter/components/typography/gf_typography.dart'; +import 'package:getflutter/types/gf_typography_type.dart'; +import 'package:getflutter/components/toast/gf_floating_widget.dart'; +import 'package:getflutter/components/toggle/gf_toggle.dart'; +import 'package:getflutter/types/gf_toggle_type.dart'; final List imageList = [ "https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg", @@ -48,12 +51,12 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'UI_KIT_EXAMPLE', + title: 'getflutter_EXAMPLE', theme: ThemeData( primarySwatch: Colors.blue, ), debugShowCheckedModeBanner: false, - home: MyHomePage(title: 'UI_KIT_EXAMPLE'), + home: MyHomePage(title: 'getflutter_EXAMPLE'), ); } } @@ -84,6 +87,7 @@ class _MyHomePageState extends State } bool switchValue = true; + bool showToast = false; @override Widget build(BuildContext context) { @@ -150,29 +154,6 @@ class _MyHomePageState extends State backgroundColor: Colors.tealAccent, centerTitle: true, title: Text("UI KIT"), -// GFSegmentTabs( -// tabController: tabController, -// initialIndex: 0, -// length: 3, -// tabs: [ -// Tab( -// child: Text( -// "cream", -// ), -// ), -// Tab( -// child: Text( -// "serum", -// ), -// ), -// Tab( -// child: Text( -// "toner", -// ), -// ), -// ], -//// borderRadius: BorderRadius.circular(50.0), -// ), // trailing: [ // GFIconButton(icon: Icon(Icons.directions_bus), onPressed: null) // ], @@ -192,104 +173,158 @@ class _MyHomePageState extends State mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ + Container( + height: 130.0, + width: 105.0, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8.0), + gradient: LinearGradient( + begin: FractionalOffset.bottomLeft, + end: FractionalOffset.topRight, + colors: [ + const Color(0x5a0b486b), + const Color(0xFFF56217), + ])), + ), + GFCard( content: Column( children: [ GFTypography( - text: 'GF Header Typo1', - type: GFTypographyType.typo1, - showDivider: false, - ), - GFTypography( - text: 'GF Header Typo2', - type: GFTypographyType.typo2, - showDivider: false, - ), - GFTypography( - text: 'GF Header Typo3', - type: GFTypographyType.typo3, - showDivider: false, - ), - GFTypography( - text: 'GF Header Typo4', - type: GFTypographyType.typo4, - showDivider: false, - ), - GFTypography( - text: 'GF Header Typo5', - type: GFTypographyType.typo5, - showDivider: false, - ), - GFTypography( - text: 'GF Header Typo6', + text: 'IOS', type: GFTypographyType.typo6, - showDivider: false, ), + SizedBox( + height: 10, + ), + GFToggle( + onChanged: null, + value: null, + type: GFToggleType.ios, + ) ], ), ), - GFCard( - content: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GFTypography( - text: 'GF Header Typo1', - type: GFTypographyType.typo1, - backgroundImage: NetworkImage( - 'https://cdn.pixabay.com/photo/2019/12/25/16/49/happy-new-year-4718894_960_720.png'), - ), - SizedBox( - height: 40, - ), - GFTypography( - icon: GFAvatar(), - text: 'GF Header Typo2', - type: GFTypographyType.typo2, - dividerColor: GFColor.primary, - dividerAlignment: Alignment.center, - ), - SizedBox( - height: 40, - ), - GFTypography( - icon: Icon(Icons.insert_emoticon), - text: 'GF Header Typo3', - type: GFTypographyType.typo3, - dividerWidth: 150, - dividerColor: GFColor.warning, - dividerBorderRadius: BorderRadius.all(Radius.circular(0)), - ), - SizedBox( - height: 40, - ), - GFTypography( - text: 'GF Header Typo4', - type: GFTypographyType.typo4, - dividerWidth: 345, - icon: Image.network( - 'https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg', - width: 50, - )), - SizedBox( - height: 40, - ), - GFTypography( - text: 'GF Header Typo5', - type: GFTypographyType.typo5, - dividerColor: GFColor.alt, - ), - SizedBox( - height: 40, - ), - GFTypography( - text: 'GF Header Typo6', - type: GFTypographyType.typo6, - dividerWidth: 20, - ), - ], - )), +// GFCard( +// content: Container( +// height: 300.0, +// child: new Stack( //if fit not specified then, it aligns to top left.... +// fit: StackFit.expand, +// children: [ +// Column( +// children: [ + GFTypography( + text: 'GF Header Typo1', + type: GFTypographyType.typo1, +// showDivider: false, + ), +// GFTypography( +// text: 'GF Header Typo2', +// type: GFTypographyType.typo2, +// showDivider: false, +// ), +// GFTypography( +// text: 'GF Header Typo3', +// type: GFTypographyType.typo3, +// showDivider: false, +// ), +// GFTypography( +// text: 'GF Header Typo4', +// type: GFTypographyType.typo4, +// showDivider: false, +// ), +// GFTypography( +// text: 'GF Header Typo5', +// type: GFTypographyType.typo5, +// showDivider: false, +// ), +// GFTypography( +// text: 'GF Header Typo6', +// type: GFTypographyType.typo6, +// showDivider: false, +// ), +// ], +// ), +// new DecoratedBox( +// decoration: new BoxDecoration( +// //color: Colors.lightGreen +// gradient: new LinearGradient( +// begin: FractionalOffset.bottomLeft, +// end: FractionalOffset.topRight, +// colors: [ +// const Color(0x5a0b486b), +// const Color(0xFFF56217), +// ] +// ) +// ), +// ), +// ], +// ), +// ), +// ), +// +// GFCard( +// content: Column( +// crossAxisAlignment: CrossAxisAlignment.center, +// mainAxisAlignment: MainAxisAlignment.spaceBetween, +// children: [ +// GFTypography( +// text: 'GF Header Typo1', +// type: GFTypographyType.typo1, +// backgroundImage: NetworkImage( +// 'https://cdn.pixabay.com/photo/2019/12/25/16/49/happy-new-year-4718894_960_720.png'), +// ), +// SizedBox( +// height: 40, +// ), +// GFTypography( +// icon: GFAvatar(), +// text: 'GF Header Typo2', +// type: GFTypographyType.typo2, +// dividerColor: GFColor.primary, +// dividerAlignment: Alignment.center, +// ), +// SizedBox( +// height: 40, +// ), +// GFTypography( +// icon: Icon(Icons.insert_emoticon), +// text: 'GF Header Typo3', +// type: GFTypographyType.typo3, +// dividerWidth: 150, +// dividerColor: GFColor.warning, +// dividerBorderRadius: BorderRadius.all(Radius.circular(0)), +// ), +// SizedBox( +// height: 40, +// ), +// GFTypography( +// text: 'GF Header Typo4', +// type: GFTypographyType.typo4, +// dividerWidth: 345, +// icon: Image.network( +// 'https://cdn.pixabay.com/photo/2016/12/15/03/27/cocoa-1908020_960_720.jpg', +// width: 50, +// )), +// SizedBox( +// height: 40, +// ), +// GFTypography( +// text: 'GF Header Typo5', +// type: GFTypographyType.typo5, +// dividerColor: GFColor.alt, +// ), +// SizedBox( +// height: 40, +// ), +// GFTypography( +// text: 'GF Header Typo6', +// type: GFTypographyType.typo6, +// dividerWidth: 20, +// ), +// ], +// )), // GFButton( // onPressed: (){}, @@ -302,109 +337,114 @@ class _MyHomePageState extends State // icon: Icon(Icons.directions_bike), // ), - GFListTile( -// padding: EdgeInsets.all(8.0), -// color: Colors.redAccent, -// avatar: GFAvatar( -// child: Text("tb"), -// ), - title: Text('title'), -// subTitle: Text('subtitle'), - icon: Text("99"), -// dividerColor: Colors.blue, -// dividerEndIndent: 20.0, -// dividerHeight: 2.0, -// dividerIndent: 30.0, -// dividerThickness: 5.0, +// GFListTile( +//// padding: EdgeInsets.all(8.0), +//// color: Colors.redAccent, +//// avatar: GFAvatar( +//// child: Text("tb"), +//// ), +// title: Text('title'), +//// subTitle: Text('subtitle'), +// icon: Text("99"), +//// dividerColor: Colors.blue, +//// dividerEndIndent: 20.0, +//// dividerHeight: 2.0, +//// dividerIndent: 30.0, +//// dividerThickness: 5.0, // showDivider: false, - ), - - GFListTile( - avatar: GFAvatar( - shape: GFAvatarShape.standard, - ), - title: GFTypography( - text: 'List tile', - type: GFTypographyType.typo5, - showDivider: false, - ), - subTitle: Text( - 'Lorem ipsum', - style: TextStyle(color: getGFColor(GFColor.dark)), - ), - description: Text( - 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ' - 'sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', - style: TextStyle( - fontSize: 13, color: getGFColor(GFColor.secondary))), - showDivider: true, - icon: GFIconButton( - onPressed: null, - type: GFType.transparent, - icon: Icon(Icons.favorite_border), - ), - ), - - GFCard( - content: GFListTile( - avatar: GFAvatar( - shape: GFAvatarShape.standard, - ), - title: GFTypography( - text: 'List tile', - type: GFTypographyType.typo5, - showDivider: false, - ), - subTitle: Text( - 'Lorem ipsum', - style: TextStyle(color: getGFColor(GFColor.dark)), - ), - description: Text( - 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', - style: TextStyle( - fontSize: 13, color: getGFColor(GFColor.secondary))), - showDivider: false, - ), - ), +// ), +// GFListTile( +// avatar: GFAvatar( +// shape: GFAvatarShape.standard, +// ), +// title: GFTypography( +// text: 'List tile', +// type: GFTypographyType.typo5, +// showDivider: false, +// ), +// subTitle: Text( +// 'Lorem ipsum', +// style: TextStyle(color: getGFColor(GFColor.dark)), +// ), +// description: Text( +// 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ' +// 'sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', +// style: TextStyle( +// fontSize: 13, color: getGFColor(GFColor.secondary))), +// showDivider: true, +// icon: GFIconButton( +// onPressed: null, +// type: GFType.transparent, +// icon: Icon(Icons.favorite_border), +// ), +// ), +// +// GFCard( +// content: GFListTile( +// avatar: GFAvatar( +// shape: GFAvatarShape.standard, +// ), +// title: GFTypography( +// text: 'List tile', +// type: GFTypographyType.typo5, +// showDivider: false, +// ), +// subTitle: Text( +// 'Lorem ipsum', +// style: TextStyle(color: getGFColor(GFColor.dark)), +// ), +// description: Text( +// 'Dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ', +// style: TextStyle( +// fontSize: 13, color: getGFColor(GFColor.secondary))), +// showDivider: false, +// ), +// ), +// GFCard( content: GFImageOverlay( height: 200.0, - width: MediaQuery.of(context).size.width, - child: Text("Dcs"), -// color: color ?? cardTheme.color ?? Theme.of(context).cardColor, + width: 200.0, image: AssetImage("lib/assets/food.jpeg"), boxFit: BoxFit.fill, colorFilter: new ColorFilter.mode( Colors.black.withOpacity(0.67), BlendMode.darken), -// border: border, -// borderRadius: borderRadius ?? BorderRadius.all(Radius.circular(4.0)), + shape: BoxShape.circle, ), ), - - GFCard( - content: Container( - width: 190.0, - height: 190.0, - decoration: new BoxDecoration( - shape: BoxShape.circle, - image: new DecorationImage( - fit: BoxFit.fill, - image: AssetImage( - "lib/assets/food.jpeg", - ), - ))), - ), +// +// GFCard( +// content: Container( +// width: 190.0, +// height: 190.0, +// decoration: new BoxDecoration( +// shape: BoxShape.circle, +// image: new DecorationImage( +// fit: BoxFit.fill, +// image: AssetImage( +// "lib/assets/food.jpeg", +// ), +// ))), +// ), GFButtonBadge( +// boxShadow: BoxShadow( +// color: Colors.pink, +// blurRadius: 2.0, +// spreadRadius: 1.0, +// offset: Offset.zero, +// ), +// badgeBoxShadow: true, onPressed: () {}, -// position: GFPosition.end, +// position: GFPosition.start, // borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), // borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), text: 'goodiesdxs', -// color: GFColor.success, -// shape: GFButtonShape.pills, -// type: GFType.outline2x, + color: GFColor.success, + textColor: GFColor.dark, + shape: GFButtonShape.pills, + type: GFType.outline2x, // size: GFSize.small, icon: GFBadge( child: Text("12"), @@ -506,41 +546,43 @@ class _MyHomePageState extends State // radius: 80.0, // backgroundImage: NetworkImage("https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg"), // ), -// - GFSegmentTabs( - tabController: tabController, -// height: 38.0, -// width: 180.0, - initialIndex: 0, - length: 3, - tabs: [ - Text( - "Gelatin", - ), - Tab( - child: Text( - "Donuts", - ), - ), - Tab( - child: Text( - "Pastry", - ), - ), - ], -// tabBarColor: Colors.pink.withOpacity(0.6), + +// GFSegmentTabs( +// tabController: tabController, +// height: 36.0, +//// width: 180.0, +// initialIndex: 0, +// length: 3, +// tabs: [ +// Text( +// "Gelatin", +// ), +// Tab( +// child: Text( +// "Donuts", +// ), +// ), +// Tab( +// child: Text( +// "Pastry", +// ), +// ), +// ], +// tabBarColor: Colors.grey, // indicatorSize: TabBarIndicatorSize.tab, -// indicatorColor: Colors.tealAccent, +// indicatorColor: Colors.greenAccent, +// labelColor: Colors.greenAccent, +// unselectedLabelColor: Colors.white, // indicator: BoxDecoration( -// color: Colors.pink, -// border: Border.all(color: Colors.green, width: 1.0), -// borderRadius: BorderRadius.circular(50.0) +// color: Colors.black, +// border: Border(bottom: BorderSide(color: Colors.greenAccent, width: 2.0,),), +//// borderRadius: BorderRadius.circular(2.0) // ), // indicatorPadding: EdgeInsets.all(8.0), // indicatorWeight: 2.0, -// border: Border.all(color: Colors.orange, width: 2.0), -// borderRadius: BorderRadius.circular(50.0) - ), +// border: Border.all(color: Colors.white, width: 2.0), +// borderRadius: BorderRadius.circular(2.0) +// ), // // GFTabBarView( // controller: tabController, @@ -551,39 +593,36 @@ class _MyHomePageState extends State // Container(color: Colors.blue) // ] // ), -// -// GFItemsCarousel( -// rowCount: 3, -// children: imageList.map( -// (url) { -// return Container( -// margin: EdgeInsets.all(5.0), -// child: ClipRRect( -// borderRadius: BorderRadius.all(Radius.circular(5.0)), -// child: Image.network( -// url, -// fit: BoxFit.cover, -// width: 1000.0 -// ), -// ), -// ); -// }, -// ).toList(), -// ), + + GFItemsCarousel( + rowCount: 3, + children: imageList.map( + (url) { + return Container( + margin: EdgeInsets.all(5.0), + child: ClipRRect( + borderRadius: BorderRadius.all(Radius.circular(5.0)), + child: + Image.network(url, fit: BoxFit.cover, width: 1000.0), + ), + ); + }, + ).toList(), + ), // // GFCarousel( -//// pagerSize: 12.0, -//// activeIndicator: Colors.pink, -//// passiveIndicator: Colors.pink.withOpacity(0.4), -//// viewportFraction: 1.0, -//// aspectRatio: 2.0, -//// autoPlay: true, -//// enlargeMainPage: true, -//// pagination: true, +// pagerSize: 12.0, +// activeIndicator: Colors.pink, +// passiveIndicator: Colors.pink.withOpacity(0.4), +// viewportFraction: 1.0, +//// aspectRatio: 1.0, +// autoPlay: true, +// enlargeMainPage: true, +// pagination: true, // items: imageList.map( // (url) { // return Container( -// margin: EdgeInsets.all(5.0), +// margin: EdgeInsets.only(bottom: 25.0, left: 12.0, right: 12.0, top: 12.0), // child: ClipRRect( // borderRadius: BorderRadius.all(Radius.circular(5.0)), // child: Image.network( @@ -666,22 +705,22 @@ class _MyHomePageState extends State // Icon(Icons.directions_transit), // ], // ), -//// indicatorColor: Colors.teal, -//// indicatorSize: TabBarIndicatorSize.label, -//// labelColor: Colors.lightGreen, -//// unselectedLabelColor: Colors.black, -//// labelStyle: TextStyle( -//// fontWeight: FontWeight.w500, -//// fontSize: 13.0, -//// color: Colors.deepOrange, -//// fontFamily: 'OpenSansBold', -//// ), -//// unselectedLabelStyle: TextStyle( -//// fontWeight: FontWeight.w500, -//// fontSize: 13.0, -//// color: Colors.black, -//// fontFamily: 'OpenSansBold', -//// ), +// indicatorColor: Colors.teal, +// indicatorSize: TabBarIndicatorSize.label, +// labelColor: Colors.lightGreen, +// unselectedLabelColor: Colors.black, +// labelStyle: TextStyle( +// fontWeight: FontWeight.w500, +// fontSize: 13.0, +// color: Colors.deepOrange, +// fontFamily: 'OpenSansBold', +// ), +// unselectedLabelStyle: TextStyle( +// fontWeight: FontWeight.w500, +// fontSize: 13.0, +// color: Colors.black, +// fontFamily: 'OpenSansBold', +// ), // ), // // GFCarousel( @@ -709,35 +748,41 @@ class _MyHomePageState extends State // }); // }, // ), -// GFCard( -// boxFit: BoxFit.fill, -// colorFilter: new ColorFilter.mode(Colors.black.withOpacity(0.67), BlendMode.darken), -//// image: Image.asset("lib/assets/food.jpeg",), + + GFCard( + boxFit: BoxFit.fill, + colorFilter: new ColorFilter.mode( + Colors.black.withOpacity(0.67), BlendMode.darken), + image: Image.asset( + "lib/assets/img.png", + fit: BoxFit.fitWidth, + width: 400.0, + ), // imageOverlay: AssetImage("lib/assets/food.jpeg"), -// titlePosition: GFPosition.end, -// title: GFListTile( -// avatar: GFAvatar( -// child: Text("tb"), -// ), -// title: Text( -// 'title', -// style: TextStyle(color: Colors.grey), -// ), -// subTitle: Text( -// 'subtitle', -// style: TextStyle(color: Colors.grey), -// ), -// icon: GFIconButton( -// onPressed: null, -// icon: Icon(Icons.favorite_border), -// type: GFType.transparent, -// ), -// ), -// content: Text( -// "Flutter Flutter is Google's mobile UI framework for crafting" -// "Flutter Flutter is Google's mobile UI framework for crafting", -// style: TextStyle(color: Colors.grey), -// ), + titlePosition: GFPosition.end, + title: GFListTile( + avatar: GFAvatar( + child: Text("tb"), + ), + title: Text( + 'title', + style: TextStyle(color: Colors.grey), + ), + subTitle: Text( + 'subtitle', + style: TextStyle(color: Colors.grey), + ), + icon: GFIconButton( + onPressed: null, + icon: Icon(Icons.favorite_border), + type: GFType.transparent, + ), + ), + content: Text( + "Flutter Flutter is Google's mobile UI framework for crafting" + "Flutter Flutter is Google's mobile UI framework for crafting", + style: TextStyle(color: Colors.grey), + ), // buttonBar: GFButtonBar( // mainAxisSize: MainAxisSize.min, // children: [ @@ -755,7 +800,8 @@ class _MyHomePageState extends State // ), // ], // ), -// ), + ), + // GFButtonBar( // mainAxisSize: MainAxisSize.min, // children: [ @@ -888,11 +934,11 @@ class _MyHomePageState extends State // // foregroundColor: Colors.deepOrangeAccent, // -// shape: GFAvatarShape.circle, +// shape: GFAvatarShape.square, // -// size: GFSize.medium, +// size: GFSize.large, // -// borderRadius: BorderRadius.circular(20.0), +// borderRadius: BorderRadius.circular(10.0), ), GFIconBadge( child: @@ -970,12 +1016,12 @@ class _MyHomePageState extends State //// textColor: GFColor.secondary, //// icon: Icon(Icons.error, color: Colors.white,), //// position: GFIconPosition.start, -//// boxShadow: BoxShadow( -//// color: Colors.pink, -//// blurRadius: 2.0, -//// spreadRadius: 1.0, -//// offset: Offset.zero, -//// ), +// boxShadow: BoxShadow( +// color: Colors.pink, +// blurRadius: 2.0, +// spreadRadius: 1.0, +// offset: Offset.zero, +// ), //// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid), //// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero), // ), @@ -1005,6 +1051,24 @@ class _MyHomePageState extends State ), ), ], + indicatorColor: Colors.teal, +// indicatorSize: TabBarIndicatorSize.label, + labelColor: Colors.lightGreen, + labelPadding: EdgeInsets.all(8.0), + tabBarColor: Colors.blueGrey, + unselectedLabelColor: Colors.black, + labelStyle: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 13.0, + color: Colors.deepOrange, + fontFamily: 'OpenSansBold', + ), + unselectedLabelStyle: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 13.0, + color: Colors.black, + fontFamily: 'OpenSansBold', + ), ), ); } diff --git a/example/pubspec.lock b/example/pubspec.lock index 57c5df30..ecbfb026 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -74,6 +74,13 @@ packages: description: flutter source: sdk version: "0.0.0" + getflutter: + dependency: "direct main" + description: + path: ".." + relative: true + source: path + version: "0.0.1-pre.3" image: dependency: transitive description: @@ -177,13 +184,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.6" - ui_kit: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" vector_math: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 4ebcc8a4..c4708b13 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - ui_kit: + getflutter: path: ../ cupertino_icons: ^0.1.2 @@ -21,4 +21,5 @@ dev_dependencies: flutter: uses-material-design: true assets: - - lib/assets/food.jpeg \ No newline at end of file + - lib/assets/food.jpeg + - lib/assets/img.png diff --git a/example/web/index.html b/example/web/index.html index 6b8b893c..01c86d07 100644 --- a/example/web/index.html +++ b/example/web/index.html @@ -2,7 +2,7 @@ - ui_kit_example + getflutter_example diff --git a/gf_web/.gitignore b/gf_web/.gitignore deleted file mode 100644 index ae1f1838..00000000 --- a/gf_web/.gitignore +++ /dev/null @@ -1,37 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Web related -lib/generated_plugin_registrant.dart - -# Exceptions to above rules. -!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/gf_web/.metadata b/gf_web/.metadata deleted file mode 100644 index 361e1e4c..00000000 --- a/gf_web/.metadata +++ /dev/null @@ -1,10 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e - channel: beta - -project_type: app diff --git a/gf_web/README.md b/gf_web/README.md deleted file mode 100644 index f4f9b0c6..00000000 --- a/gf_web/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# gf_web - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) - -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/gf_web/android/.gitignore b/gf_web/android/.gitignore deleted file mode 100644 index bc2100d8..00000000 --- a/gf_web/android/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java diff --git a/gf_web/android/app/build.gradle b/gf_web/android/app/build.gradle deleted file mode 100644 index 0c927f7f..00000000 --- a/gf_web/android/app/build.gradle +++ /dev/null @@ -1,67 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion 28 - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - lintOptions { - disable 'InvalidPackage' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.gf_web" - minSdkVersion 16 - targetSdkVersion 28 - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test:runner:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' -} diff --git a/gf_web/android/app/src/debug/AndroidManifest.xml b/gf_web/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index 56702152..00000000 --- a/gf_web/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/gf_web/android/app/src/main/AndroidManifest.xml b/gf_web/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 048a3923..00000000 --- a/gf_web/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - diff --git a/gf_web/android/app/src/main/kotlin/com/example/gf_web/MainActivity.kt b/gf_web/android/app/src/main/kotlin/com/example/gf_web/MainActivity.kt deleted file mode 100644 index 2735dc9f..00000000 --- a/gf_web/android/app/src/main/kotlin/com/example/gf_web/MainActivity.kt +++ /dev/null @@ -1,12 +0,0 @@ -package com.example.gf_web - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity -import io.flutter.embedding.engine.FlutterEngine -import io.flutter.plugins.GeneratedPluginRegistrant - -class MainActivity: FlutterActivity() { - override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { - GeneratedPluginRegistrant.registerWith(flutterEngine); - } -} diff --git a/gf_web/android/app/src/main/res/drawable/launch_background.xml b/gf_web/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f8..00000000 --- a/gf_web/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/gf_web/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/gf_web/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b..00000000 Binary files a/gf_web/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/gf_web/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/gf_web/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79..00000000 Binary files a/gf_web/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/gf_web/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/gf_web/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 09d43914..00000000 Binary files a/gf_web/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/gf_web/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/gf_web/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d3..00000000 Binary files a/gf_web/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/gf_web/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/gf_web/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372ee..00000000 Binary files a/gf_web/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/gf_web/android/app/src/main/res/values/styles.xml b/gf_web/android/app/src/main/res/values/styles.xml deleted file mode 100644 index 00fa4417..00000000 --- a/gf_web/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/gf_web/android/app/src/profile/AndroidManifest.xml b/gf_web/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index 56702152..00000000 --- a/gf_web/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/gf_web/android/build.gradle b/gf_web/android/build.gradle deleted file mode 100644 index 3100ad2d..00000000 --- a/gf_web/android/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -buildscript { - ext.kotlin_version = '1.3.50' - repositories { - google() - jcenter() - } - - dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - jcenter() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/gf_web/android/gradle.properties b/gf_web/android/gradle.properties deleted file mode 100644 index 38c8d454..00000000 --- a/gf_web/android/gradle.properties +++ /dev/null @@ -1,4 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.enableR8=true -android.useAndroidX=true -android.enableJetifier=true diff --git a/gf_web/android/gradle/wrapper/gradle-wrapper.properties b/gf_web/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 296b146b..00000000 --- a/gf_web/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip diff --git a/gf_web/android/settings.gradle b/gf_web/android/settings.gradle deleted file mode 100644 index 5a2f14fb..00000000 --- a/gf_web/android/settings.gradle +++ /dev/null @@ -1,15 +0,0 @@ -include ':app' - -def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() - -def plugins = new Properties() -def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') -if (pluginsFile.exists()) { - pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } -} - -plugins.each { name, path -> - def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() - include ":$name" - project(":$name").projectDir = pluginDirectory -} diff --git a/gf_web/ios/.gitignore b/gf_web/ios/.gitignore deleted file mode 100644 index e96ef602..00000000 --- a/gf_web/ios/.gitignore +++ /dev/null @@ -1,32 +0,0 @@ -*.mode1v3 -*.mode2v3 -*.moved-aside -*.pbxuser -*.perspectivev3 -**/*sync/ -.sconsign.dblite -.tags* -**/.vagrant/ -**/DerivedData/ -Icon? -**/Pods/ -**/.symlinks/ -profile -xcuserdata -**/.generated/ -Flutter/App.framework -Flutter/Flutter.framework -Flutter/Flutter.podspec -Flutter/Generated.xcconfig -Flutter/app.flx -Flutter/app.zip -Flutter/flutter_assets/ -Flutter/flutter_export_environment.sh -ServiceDefinitions.json -Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!default.mode1v3 -!default.mode2v3 -!default.pbxuser -!default.perspectivev3 diff --git a/gf_web/ios/Flutter/AppFrameworkInfo.plist b/gf_web/ios/Flutter/AppFrameworkInfo.plist deleted file mode 100644 index 6b4c0f78..00000000 --- a/gf_web/ios/Flutter/AppFrameworkInfo.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 8.0 - - diff --git a/gf_web/ios/Flutter/Debug.xcconfig b/gf_web/ios/Flutter/Debug.xcconfig deleted file mode 100644 index 592ceee8..00000000 --- a/gf_web/ios/Flutter/Debug.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "Generated.xcconfig" diff --git a/gf_web/ios/Flutter/Release.xcconfig b/gf_web/ios/Flutter/Release.xcconfig deleted file mode 100644 index 592ceee8..00000000 --- a/gf_web/ios/Flutter/Release.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "Generated.xcconfig" diff --git a/gf_web/ios/Runner.xcodeproj/project.pbxproj b/gf_web/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 6cd9af51..00000000 --- a/gf_web/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,518 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 3B80C3931E831B6300D905FE /* App.framework */, - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEBA1CF902C7004384FC /* Flutter.framework */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 97C146F11CF9000F007C117D /* Supporting Files */, - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, - ); - path = Runner; - sourceTree = ""; - }; - 97C146F11CF9000F007C117D /* Supporting Files */ = { - isa = PBXGroup; - children = ( - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - 9740EEB61CF901F6004384FC /* Run Script */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1020; - ORGANIZATIONNAME = "The Chromium Authors"; - TargetAttributes = { - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - LastSwiftMigration = 1100; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Thin Binary"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; - }; - 9740EEB61CF901F6004384FC /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 249021D3217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 249021D4217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.gfWeb; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.gfWeb; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Flutter", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.gfWeb; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 249021D3217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 249021D4217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/gf_web/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/gf_web/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 1d526a16..00000000 --- a/gf_web/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/gf_web/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/gf_web/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index a28140cf..00000000 --- a/gf_web/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gf_web/ios/Runner.xcworkspace/contents.xcworkspacedata b/gf_web/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 1d526a16..00000000 --- a/gf_web/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/gf_web/ios/Runner/AppDelegate.swift b/gf_web/ios/Runner/AppDelegate.swift deleted file mode 100644 index 70693e4a..00000000 --- a/gf_web/ios/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import UIKit -import Flutter - -@UIApplicationMain -@objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? - ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - return super.application(application, didFinishLaunchingWithOptions: launchOptions) - } -} diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d36b1fab..00000000 --- a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted file mode 100644 index dc9ada47..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png deleted file mode 100644 index 28c6bf03..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted file mode 100644 index 2ccbfd96..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted file mode 100644 index f091b6b0..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted file mode 100644 index 4cde1211..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted file mode 100644 index d0ef06e7..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png deleted file mode 100644 index dcdc2306..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png deleted file mode 100644 index 2ccbfd96..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted file mode 100644 index c8f9ed8f..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png deleted file mode 100644 index a6d6b860..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted file mode 100644 index a6d6b860..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted file mode 100644 index 75b2d164..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png deleted file mode 100644 index c4df70d3..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png deleted file mode 100644 index 6a84f41e..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted file mode 100644 index d0e1f585..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted file mode 100644 index 0bedcf2f..00000000 --- a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted file mode 100644 index 9da19eac..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted file mode 100644 index 9da19eac..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted file mode 100644 index 9da19eac..00000000 Binary files a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ diff --git a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted file mode 100644 index 89c2725b..00000000 --- a/gf_web/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Launch Screen Assets - -You can customize the launch screen with your own desired assets by replacing the image files in this directory. - -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. \ No newline at end of file diff --git a/gf_web/ios/Runner/Base.lproj/LaunchScreen.storyboard b/gf_web/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f2e259c7..00000000 --- a/gf_web/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gf_web/ios/Runner/Base.lproj/Main.storyboard b/gf_web/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516..00000000 --- a/gf_web/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/gf_web/ios/Runner/Info.plist b/gf_web/ios/Runner/Info.plist deleted file mode 100644 index f80a85cd..00000000 --- a/gf_web/ios/Runner/Info.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - gf_web - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - - diff --git a/gf_web/ios/Runner/Runner-Bridging-Header.h b/gf_web/ios/Runner/Runner-Bridging-Header.h deleted file mode 100644 index 7335fdf9..00000000 --- a/gf_web/ios/Runner/Runner-Bridging-Header.h +++ /dev/null @@ -1 +0,0 @@ -#import "GeneratedPluginRegistrant.h" \ No newline at end of file diff --git a/gf_web/lib/assets/icons/avatar.png b/gf_web/lib/assets/icons/avatar.png deleted file mode 100644 index 685ad1a3..00000000 Binary files a/gf_web/lib/assets/icons/avatar.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/back.png b/gf_web/lib/assets/icons/back.png deleted file mode 100644 index 6c90e89b..00000000 Binary files a/gf_web/lib/assets/icons/back.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/badge.png b/gf_web/lib/assets/icons/badge.png deleted file mode 100644 index 5d233517..00000000 Binary files a/gf_web/lib/assets/icons/badge.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/buttons.png b/gf_web/lib/assets/icons/buttons.png deleted file mode 100644 index d7cf8870..00000000 Binary files a/gf_web/lib/assets/icons/buttons.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/buttons.svg b/gf_web/lib/assets/icons/buttons.svg deleted file mode 100644 index 415c67d3..00000000 --- a/gf_web/lib/assets/icons/buttons.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/gf_web/lib/assets/icons/card.png b/gf_web/lib/assets/icons/card.png deleted file mode 100644 index 79543ea6..00000000 Binary files a/gf_web/lib/assets/icons/card.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/chips.png b/gf_web/lib/assets/icons/chips.png deleted file mode 100644 index 99b08372..00000000 Binary files a/gf_web/lib/assets/icons/chips.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/danger.svg b/gf_web/lib/assets/icons/danger.svg deleted file mode 100644 index dea91e14..00000000 --- a/gf_web/lib/assets/icons/danger.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/dark.svg b/gf_web/lib/assets/icons/dark.svg deleted file mode 100644 index a5e5eb1b..00000000 --- a/gf_web/lib/assets/icons/dark.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/dribble.svg b/gf_web/lib/assets/icons/dribble.svg deleted file mode 100644 index dbaca3b1..00000000 --- a/gf_web/lib/assets/icons/dribble.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/fb.svg b/gf_web/lib/assets/icons/fb.svg deleted file mode 100644 index e6078c98..00000000 --- a/gf_web/lib/assets/icons/fb.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/google.svg b/gf_web/lib/assets/icons/google.svg deleted file mode 100644 index d837859e..00000000 --- a/gf_web/lib/assets/icons/google.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/images.png b/gf_web/lib/assets/icons/images.png deleted file mode 100644 index b5e4cb02..00000000 Binary files a/gf_web/lib/assets/icons/images.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/info.svg b/gf_web/lib/assets/icons/info.svg deleted file mode 100644 index 21fd193c..00000000 --- a/gf_web/lib/assets/icons/info.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/items.png b/gf_web/lib/assets/icons/items.png deleted file mode 100644 index 1a495321..00000000 Binary files a/gf_web/lib/assets/icons/items.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/light.svg b/gf_web/lib/assets/icons/light.svg deleted file mode 100644 index bf6f73a6..00000000 --- a/gf_web/lib/assets/icons/light.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/link.svg b/gf_web/lib/assets/icons/link.svg deleted file mode 100644 index 9260d523..00000000 --- a/gf_web/lib/assets/icons/link.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/linkedin.svg b/gf_web/lib/assets/icons/linkedin.svg deleted file mode 100644 index 7adb1746..00000000 --- a/gf_web/lib/assets/icons/linkedin.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/lists.png b/gf_web/lib/assets/icons/lists.png deleted file mode 100644 index e3e93174..00000000 Binary files a/gf_web/lib/assets/icons/lists.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/menu.png b/gf_web/lib/assets/icons/menu.png deleted file mode 100644 index 0932d5f5..00000000 Binary files a/gf_web/lib/assets/icons/menu.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/next.png b/gf_web/lib/assets/icons/next.png deleted file mode 100644 index 8d3c89d9..00000000 Binary files a/gf_web/lib/assets/icons/next.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/pinterest.svg b/gf_web/lib/assets/icons/pinterest.svg deleted file mode 100644 index 7aa538e1..00000000 --- a/gf_web/lib/assets/icons/pinterest.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/primary.svg b/gf_web/lib/assets/icons/primary.svg deleted file mode 100644 index c2ad37e4..00000000 --- a/gf_web/lib/assets/icons/primary.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/secondary.svg b/gf_web/lib/assets/icons/secondary.svg deleted file mode 100644 index 56c06ebe..00000000 --- a/gf_web/lib/assets/icons/secondary.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/slack.svg b/gf_web/lib/assets/icons/slack.svg deleted file mode 100644 index ed08c2a0..00000000 --- a/gf_web/lib/assets/icons/slack.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/slider.png b/gf_web/lib/assets/icons/slider.png deleted file mode 100644 index 03fb809b..00000000 Binary files a/gf_web/lib/assets/icons/slider.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/success.svg b/gf_web/lib/assets/icons/success.svg deleted file mode 100644 index b06b4ae5..00000000 --- a/gf_web/lib/assets/icons/success.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/tabs.png b/gf_web/lib/assets/icons/tabs.png deleted file mode 100644 index 49678a20..00000000 Binary files a/gf_web/lib/assets/icons/tabs.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/toast.png b/gf_web/lib/assets/icons/toast.png deleted file mode 100644 index 44ee2d77..00000000 Binary files a/gf_web/lib/assets/icons/toast.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/toggle.png b/gf_web/lib/assets/icons/toggle.png deleted file mode 100644 index f33816f9..00000000 Binary files a/gf_web/lib/assets/icons/toggle.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/twitter.svg b/gf_web/lib/assets/icons/twitter.svg deleted file mode 100644 index ac962749..00000000 --- a/gf_web/lib/assets/icons/twitter.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/typo.png b/gf_web/lib/assets/icons/typo.png deleted file mode 100644 index 90592362..00000000 Binary files a/gf_web/lib/assets/icons/typo.png and /dev/null differ diff --git a/gf_web/lib/assets/icons/warning.svg b/gf_web/lib/assets/icons/warning.svg deleted file mode 100644 index aae2b731..00000000 --- a/gf_web/lib/assets/icons/warning.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/gf_web/lib/assets/icons/whatsapp.svg b/gf_web/lib/assets/icons/whatsapp.svg deleted file mode 100644 index 992ff345..00000000 --- a/gf_web/lib/assets/icons/whatsapp.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/icons/youtube.svg b/gf_web/lib/assets/icons/youtube.svg deleted file mode 100644 index b2503883..00000000 --- a/gf_web/lib/assets/icons/youtube.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/gf_web/lib/assets/logo.png b/gf_web/lib/assets/logo.png deleted file mode 100644 index 27e5cae0..00000000 Binary files a/gf_web/lib/assets/logo.png and /dev/null differ diff --git a/gf_web/lib/assets/screen.png b/gf_web/lib/assets/screen.png deleted file mode 100644 index 54aed019..00000000 Binary files a/gf_web/lib/assets/screen.png and /dev/null differ diff --git a/gf_web/lib/main.dart b/gf_web/lib/main.dart deleted file mode 100644 index c06d0f7f..00000000 --- a/gf_web/lib/main.dart +++ /dev/null @@ -1,110 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:gf_web/screens/pages/home.dart'; -import 'screens/layout/routes.dart'; - - -void main() => runApp(MyApp()); - -class MyApp extends StatelessWidget { - // This widget is the root of your application. - - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Flutter Demo', - debugShowCheckedModeBanner: false, - - theme: ThemeData( - primarySwatch: Colors.blue, - ), - home: HomePage(), - - initialRoute: "/", -routes: routes, - ); - } -} - - -class FirstScreen extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text('First Screen'), - ), - body: Center( - child: RaisedButton( - child: Text('Launch screen'), - onPressed: () { - // Navigate to the second screen using a named route. - Navigator.pushNamed(context, '/second'); - }, - ), - ), - ); - } -} - -class SecondScreen extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text("Second Screen"), - ), - body: Center( - child: RaisedButton( - onPressed: () { - // Navigate back to the first screen by popping the current route - // off the stack. - Navigator.pushNamed(context, '/third'); - }, - child: Text('Third!'), - ), - ), - ); - } -} - -class ThirdScreen extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text("3 Screen"), - ), - body: Center( - child: RaisedButton( - onPressed: () { - // Navigate back to the first screen by popping the current route - // off the stack. - Navigator.pushNamed(context, '/fourth'); - }, - child: Text('Fourth!'), - ), - ), - ); - } -} - -class FourthScreen extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text("4 Screen"), - ), - body: Center( - child: RaisedButton( - onPressed: () { - // Navigate back to the first screen by popping the current route - // off the stack. - Navigator.pushNamed(context, '/'); - }, - child: Text('Go back!'), - ), - ), - ); - } -} \ No newline at end of file diff --git a/gf_web/lib/screens/buttons/standard-buttons.dart b/gf_web/lib/screens/buttons/standard-buttons.dart deleted file mode 100644 index a6d8eac3..00000000 --- a/gf_web/lib/screens/buttons/standard-buttons.dart +++ /dev/null @@ -1,442 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:gf_web/screens/layout/layout.dart'; -import '../../styles/styles.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/components/card/gf_card.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/size/gf_size.dart'; - -class StandardButtons extends StatefulWidget { - @override - _StandardButtonsState createState() => _StandardButtonsState(); -} - -class _StandardButtonsState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - body: Layout( - body: ListView( - children: [ - Text('Standard Buttons', style: hintStyleTextblackbolder(),), - SizedBox( - height: 20, - ), - Text('Buttons of type Standard which comes in different sizes that can be used in forms, alerts, and more...', style: hintStyleTextblackdull(),), - SizedBox( - height: 30, - ), - Text('Solid Buttons', style: hintStyleTextblackbold(),), - GFCard( - content: Column( - children: [ - Row( - children: [ - Expanded(child: GFButton( - onPressed: (){}, - text: 'Primary', - textColor: Colors.white, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Primary', - textColor: Colors.white, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Primary', - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Secondary', - color: GFColor.secondary, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Success', - color: GFColor.success, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Warning', - color: GFColor.warning, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'danger', - color: GFColor.danger, - )) - ], - ), -SizedBox( - height: 20, -), - Row( - children: [ - Expanded(child: GFButton( - onPressed: (){}, - text: 'Info', - color: GFColor.info, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Light', - color: GFColor.light, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Dark', - color: GFColor.dark, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Link', - color: GFColor.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: Text('')) - - ], - ), - - ], - ), - ), - SizedBox( - height: 20, - ), - - Text('Disabled Buttons', style: hintStyleTextblackbold(),), - GFCard( - content: Column( - children: [ - Row( - children: [ - Expanded(child: GFButton( - onPressed:null, - text: 'Primary', - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Secondary', - color: GFColor.secondary, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Success', - color: GFColor.success, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Warning', - color: GFColor.warning, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'danger', - color: GFColor.danger, - )) - ], - ), - SizedBox( - height: 20, - ), - Row( - children: [ - Expanded(child: GFButton( - onPressed:null, - text: 'Info', - color: GFColor.info, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Light', - color: GFColor.light, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Dark', - color: GFColor.dark, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Link', - color: GFColor.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: Text('')) - - ], - ), - - ], - ), - ), - - SizedBox( - height: 20, - ), - - Text('Transparent Buttons', style: hintStyleTextblackbold(),), - GFCard( - content: Column( - children: [ - Row( - children: [ - Expanded(child: GFButton( - onPressed:null, - text: 'Primary', - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Secondary', - color: GFColor.secondary, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Success', - color: GFColor.success, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Warning', - color: GFColor.warning, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'danger', - color: GFColor.danger, - type: GFType.transparent, - )) - ], - ), - SizedBox( - height: 20, - ), - Row( - children: [ - Expanded(child: GFButton( - onPressed:null, - text: 'Info', - color: GFColor.info, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Light', - color: GFColor.light, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed:null, - text: 'Dark', - color: GFColor.dark, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: GFButton( - onPressed: (){}, - text: 'Link', - color: GFColor.transparent, - type: GFType.transparent, - )), - SizedBox( - width: 10, - ), - Expanded(child: Text('')) - - ], - ), - - ], - ), - ), - SizedBox( - height: 20, - ), - - Text(' Button Sizes', style: hintStyleTextblackbold(),), - GFCard( - content: Column( - children: [ - Row( - children: [ - Expanded(child:GFButton( - onPressed: (){}, - child: Text("Large", - ), - - size: GFSize.large, - ), - ), - SizedBox( - width: 10, - ), - Expanded(child:GFButton( - onPressed: (){}, - child: Text("Medium", - ), - size: GFSize.medium, - ), - ), - SizedBox( - width: 10, - ), - Expanded(child:GFButton( - onPressed: (){}, - child: Text("Small", - ), - size: GFSize.small, - ), - ), - - ], - ), - - - ], - ), - ), - - SizedBox( - height: 20, - ), - - Text(' Block Buttons', style: hintStyleTextblackbold(),), - GFCard( - content: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - SizedBox( - height: 10, - ), - GFButton( - onPressed: (){}, - blockButton: true, - child: Text("Large", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.large, - ), - - SizedBox( - height: 10, - ), - - GFButton( - onPressed: (){}, - blockButton: true, - child: Text("Normal", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.medium, - ), - - SizedBox( - height: 10, - ), - - - GFButton( - onPressed: (){}, - blockButton: true, - child: Text("Small", - style: TextStyle( - color: getGFColor(GFColor.white))), - color: GFColor.primary, - size: GFSize.small, - ), - SizedBox( - height: 10, - ), - - ], - ), - - ) - ], - ), - ), - ); - } -} diff --git a/gf_web/lib/screens/layout/body.dart b/gf_web/lib/screens/layout/body.dart deleted file mode 100644 index f56ad48a..00000000 --- a/gf_web/lib/screens/layout/body.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:flutter/material.dart'; - -class Body extends StatefulWidget { - @override - _BodyState createState() => _BodyState(); -} - -class _BodyState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - backgroundColor: Colors.white, - body:Container( - margin: EdgeInsets.only(left: 40, top: 20), - child: ListView( - children: [ - Text('dfcghyjunkm') - ], - ), - ) - ); - } -} diff --git a/gf_web/lib/screens/layout/header.dart b/gf_web/lib/screens/layout/header.dart deleted file mode 100644 index c9797ff1..00000000 --- a/gf_web/lib/screens/layout/header.dart +++ /dev/null @@ -1,45 +0,0 @@ -import 'package:flutter/material.dart'; - -class Header extends StatefulWidget { - @override - _HeaderState createState() => _HeaderState(); -} - -class _HeaderState extends State
{ - @override - Widget build(BuildContext context) { - return Scaffold( - backgroundColor: Colors.white, - body: Container( - color: Colors.black, - width: MediaQuery.of(context).size.width, - height: 100, - child: Row( -// mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Flexible( - fit: FlexFit.tight, - flex: 6, -// child: Image.asset('lib/assets/logo.png') - child: Image.network('https://ik.imagekit.io/ionicfirebaseapp/get-flutter-logo_FAN-82xCG.png', height: 40.0,), - ), - Flexible( - fit: FlexFit.tight, - flex: 8, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Text('Home', style: TextStyle(fontSize: 17, color: Colors.white, fontWeight: FontWeight.w600),), - Text('Features', style: TextStyle(fontSize: 17, color: Colors.white, fontWeight: FontWeight.w600),), - Text('Docs', style: TextStyle(fontSize: 17, color: Colors.white, fontWeight: FontWeight.w600),), - Text('Blog', style: TextStyle(fontSize: 17, color: Colors.white, fontWeight: FontWeight.w600),), - Text('Contact', style: TextStyle(fontSize: 17, color: Colors.white, fontWeight: FontWeight.w600),) - ], - )) - ], - ), - - ), - ); - } -} diff --git a/gf_web/lib/screens/layout/layout.dart b/gf_web/lib/screens/layout/layout.dart deleted file mode 100644 index bfdf59d2..00000000 --- a/gf_web/lib/screens/layout/layout.dart +++ /dev/null @@ -1,53 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:gf_web/screens/layout/mobile-demo.dart'; -import 'sidebar.dart'; -import 'header.dart'; -import 'body.dart'; - -class Layout extends StatefulWidget { - final Widget body; - const Layout ({Key key, - this.body, - }):super(key:key); - - @override - _LayoutState createState() => _LayoutState(); -} - -class _LayoutState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - backgroundColor: Colors.white, - body: Column( - children: [ - Container( - height: 70, - child: Header(), - ), - Row( - children: [ - Container( - height: MediaQuery.of(context).size.height-70, - width: 300, - child: Sidebar(), - ), - Container( - padding: EdgeInsets.only(top: 20, left: 20, right: 20), - height:MediaQuery.of(context).size.height -70, - width: MediaQuery.of(context).size.width -730, - child: widget.body - ), - Container( - width: 430, -// color: Colors.red, - height: 600, - child: MobileDemo(), - ) - ], - ) - ], - ), - ); - } -} diff --git a/gf_web/lib/screens/layout/mobile-demo.dart b/gf_web/lib/screens/layout/mobile-demo.dart deleted file mode 100644 index e7e0c21a..00000000 --- a/gf_web/lib/screens/layout/mobile-demo.dart +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:flutter/material.dart'; - -class MobileDemo extends StatefulWidget { - @override - _MobileDemoState createState() => _MobileDemoState(); -} - -class _MobileDemoState extends State { - @override - Widget build(BuildContext context) { - return Container( - height: 300, - child: Image.asset('lib/assets/screen.png'), - ); - } -} diff --git a/gf_web/lib/screens/layout/routes.dart b/gf_web/lib/screens/layout/routes.dart deleted file mode 100644 index a2ef37f1..00000000 --- a/gf_web/lib/screens/layout/routes.dart +++ /dev/null @@ -1,15 +0,0 @@ - - - -import 'package:gf_web/screens/buttons/standard-buttons.dart'; -import 'package:gf_web/screens/pages/home.dart'; - - -//Map route = Map(); - -final routes = - { - '/gf-buttons/standard-button': (context) => StandardButtons(), -// '/third': (context) => ThirdScreen(), -// '/fourth':(context) => FourthScreen() - }; diff --git a/gf_web/lib/screens/layout/sidebar.dart b/gf_web/lib/screens/layout/sidebar.dart deleted file mode 100644 index b3dc8934..00000000 --- a/gf_web/lib/screens/layout/sidebar.dart +++ /dev/null @@ -1,236 +0,0 @@ -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; -import 'package:gf_web/styles/styles.dart'; - -class Sidebar extends StatefulWidget { - @override - _SidebarState createState() => _SidebarState(); -} - -class _SidebarState extends State with TickerProviderStateMixin { - Animation animation; - AnimationController animationController; - AnimationController controller; - Animation offset; - - - @override - void initState() { - super.initState(); - animationController = AnimationController(duration: Duration(seconds: 2), vsync: this); - controller = AnimationController(vsync: this, duration: Duration(milliseconds: 300)); - offset = Tween(begin: Offset.zero, end: Offset(0.0, 0.1),).animate(controller); -// animation = Tween(begin: 1.0, end: 0.0).animate(CurvedAnimation(parent: animationController, curve: Curves.fastLinearToSlowEaseIn)); - } - - - - bool showButtonTypes = false; - @override - Widget build(BuildContext context) { - return Scaffold( - body: Container( -margin: EdgeInsets.only(right: 10,), - padding: EdgeInsets.only(left:60, right: 20, top:30), - width: 300, - height: MediaQuery.of(context).size.height, - decoration: BoxDecoration( - border: Border.all( - color: Colors.black.withOpacity(0.30) - ), - color: Colors.white, - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40), - blurRadius: 5.0 - ), - ] - ), - child: ListView( - children: [ - - Text('COMPONENTS', style: hintStyleTextblack(),), - SizedBox( - height: 25, - ), - GestureDetector( - onTap: (){ - setState(() { - switch (controller.status) { - case AnimationStatus.completed: - controller.forward(from: 0); - break; - case AnimationStatus.dismissed: - controller.forward(); - break; - default: - } - showButtonTypes = !showButtonTypes; - }); - - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text('GF Buttons', style: hintStyleTextblackdull()), - showButtonTypes? Icon(Icons.keyboard_arrow_down): Icon(Icons.keyboard_arrow_right) - ], - ) - ), - showButtonTypes? - SlideTransition( - position: offset, - child: Container( - height: 200, - decoration: BoxDecoration( - color: Colors.white, - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.40) - ) - ] - ), - padding: EdgeInsets.only(top:0, bottom: 30, left: 25, right: 20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GestureDetector( - onTap: (){ - Navigator.pushNamed(context, '/gf-buttons/standard-button'); - }, - child: Text('Standard Buttons'), - ), - Text('Pills Buttons'), - Text('Square Buttons'), - Text('Shadow Buttons'), - Text('Icon Buttons'), - Text('Social Buttons') - ], - ), - ), - ):Container(), - - SizedBox( - height: 20, - ), - - Text('GF Badge', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Avatar', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Image', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Card', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Slider', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Tile', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Tab', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Typography', style: hintStyleTextblackdull()), - SizedBox( - height: 30, - ), - Text('COMING SOON', style: hintStyleTextblack(),), - SizedBox( - height: 25, - ), - Text('GF Forms', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Chip', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - - Text('GF List', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Spinner', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Header', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Footer', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Toggle', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Drawer', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Accordian', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Toast', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Alert', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Model', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Action Sheet', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Floating Button', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Popover', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Recorder', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Infinite Scroll', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Searchbar', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - Text('GF Refresher', style: hintStyleTextblackdull()), - SizedBox( - height: 20, - ), - ], - ), - ), - ); - } -} diff --git a/gf_web/lib/screens/pages/home.dart b/gf_web/lib/screens/pages/home.dart deleted file mode 100644 index c26544f9..00000000 --- a/gf_web/lib/screens/pages/home.dart +++ /dev/null @@ -1,33 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:gf_web/screens/layout/layout.dart'; - - -class HomePage extends StatefulWidget { - @override - _HomePageState createState() => _HomePageState(); -} - -class _HomePageState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - backgroundColor: Colors.white, - body: Layout( - body: Column( - children: [ - Text('Introduction', style: TextStyle(fontSize: 20),), - SizedBox( - height: 20, - ), - Text('GetFlutter is UI libraries for building flutter app.', style: TextStyle(fontSize: 20),), - SizedBox( - height: 20, - ), - Image.network('https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LvKegU8SBuWnETMfqrz%2F-LxtgL3yw3epnXU4dni3%2F-LxtgsMugSV2jttI5pTC%2FButtons%403x.png?alt=media&token=54a7ad05-716d-4cd2-84f7-78e2697fbdec', - height: 600,) - ], - ) - ) - ); - } -} \ No newline at end of file diff --git a/gf_web/lib/styles/styles.dart b/gf_web/lib/styles/styles.dart deleted file mode 100644 index 7490beba..00000000 --- a/gf_web/lib/styles/styles.dart +++ /dev/null @@ -1,42 +0,0 @@ -import 'package:flutter/material.dart'; - -final primary = const Color(0xff19CA4B); -final secondary = const Color(0xFFFF7644); -final blacktext = const Color(0xFF0D0D0D); -final blackdull = const Color(0xFFbababa); - - - -//.............................................RalewayRegular................................................................................... - -TextStyle hintStyleTextblackdull() { - return TextStyle( - fontWeight: FontWeight.w500, - fontSize: 16.0, - color: blacktext.withOpacity(0.60), - ); -} - -TextStyle hintStyleTextblack() { - return TextStyle( - fontWeight: FontWeight.w500, - fontSize: 17.0, - color: blacktext, - ); -} - -TextStyle hintStyleTextblackbold() { - return TextStyle( - fontWeight: FontWeight.w600, - fontSize: 23.0, - color: blacktext, - ); -} - -TextStyle hintStyleTextblackbolder() { - return TextStyle( - fontWeight: FontWeight.w600, - fontSize: 26.0, - color: blacktext, - ); -} \ No newline at end of file diff --git a/gf_web/pubspec.lock b/gf_web/pubspec.lock deleted file mode 100644 index c6869e31..00000000 --- a/gf_web/pubspec.lock +++ /dev/null @@ -1,202 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - archive: - dependency: transitive - description: - name: archive - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.11" - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.2" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.2" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.14.11" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.1" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.3" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.3" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - image: - dependency: transitive - description: - name: image - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.6" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.8" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.6.4" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0+1" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.0" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.5" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.5.5" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.3" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.0" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.11" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.6" - ui_kit: - dependency: "direct dev" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.8" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.dartlang.org" - source: hosted - version: "3.5.0" -sdks: - dart: ">=2.4.0 <3.0.0" diff --git a/gf_web/pubspec.yaml b/gf_web/pubspec.yaml deleted file mode 100644 index 7f4c2c0d..00000000 --- a/gf_web/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: gf_web -description: A new Flutter project. - -version: 1.0.0+1 - -environment: - sdk: ">=2.1.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - cupertino_icons: ^0.1.2 - -dev_dependencies: - flutter_test: - sdk: flutter - ui_kit: - path: ../ - -flutter: - uses-material-design: true - - assets: - - lib/assets/logo.png - - lib/assets/icons/next.png - - lib/assets/screen.png diff --git a/gf_web/test/widget_test.dart b/gf_web/test/widget_test.dart deleted file mode 100644 index e89b8c9e..00000000 --- a/gf_web/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:gf_web/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/gf_web/web/index.html b/gf_web/web/index.html deleted file mode 100644 index 3f15ee61..00000000 --- a/gf_web/web/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - gf_web - - - - - diff --git a/lib/colors/gf_color.dart b/lib/colors/gf_color.dart index 149d5e6c..ba9d651c 100644 --- a/lib/colors/gf_color.dart +++ b/lib/colors/gf_color.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; - enum GFColor { primary, secondary, @@ -16,10 +15,9 @@ enum GFColor { transparent } - const PRIMARY = Color(0xff3880FF); const SECONDARY = Color(0xffAA66CC); -const SUCCESS =Color(0xff10DC60); +const SUCCESS = Color(0xff10DC60); const INFO = Color(0xff33B5E5); const WARNING = Color(0xffFFBB33); const DANGER = Color(0xffF04141); diff --git a/lib/components/appbar/gf_appbar.dart b/lib/components/appbar/gf_appbar.dart index 5b1f87d2..c3cfb533 100644 --- a/lib/components/appbar/gf_appbar.dart +++ b/lib/components/appbar/gf_appbar.dart @@ -5,141 +5,10 @@ import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -const double _kLeadingWidth = - kToolbarHeight; // So the leading button is square. - -// Bottom justify the kToolbarHeight child which may overflow the top. -class _ToolbarContainerLayout extends SingleChildLayoutDelegate { - const _ToolbarContainerLayout(); - - @override - BoxConstraints getConstraintsForChild(BoxConstraints constraints) { - return constraints.tighten(height: kToolbarHeight); - } - - @override - Size getSize(BoxConstraints constraints) { - return Size(constraints.maxWidth, kToolbarHeight); - } - - @override - Offset getPositionForChild(Size size, Size childSize) { - return Offset(0.0, size.height - childSize.height); - } - - @override - bool shouldRelayout(_ToolbarContainerLayout oldDelegate) => false; -} - -/// A material design app bar. -/// /// An app bar consists of a toolbar and potentially other widgets, such as a -/// [TabBar] and a [FlexibleSpaceBar]. App bars typically expose one or more -/// common [actions] with [IconButton]s which are optionally followed by a -/// [PopupMenuButton] for less common operations (sometimes called the "overflow -/// menu"). -/// -/// App bars are typically used in the [Scaffold.appBar] property, which places -/// the app bar as a fixed-height widget at the top of the screen. For a scrollable -/// app bar, see [SliverGFAppBar], which embeds an [GFAppBar] in a sliver for use in -/// a [CustomScrollView]. -/// -/// When not used as [Scaffold.appBar], or when wrapped in a [Hero], place the app -/// bar in a [MediaQuery] to take care of the padding around the content of the -/// app bar if needed, as the padding will not be handled by [Scaffold]. -/// +/// [GFTabBar][TabBar] and a [FlexibleSpaceBar]. /// The GFAppBar displays the toolbar widgets, [leading], [title], and [actions], -/// above the [bottom] (if any). The [bottom] is usually used for a [TabBar]. If -/// a [flexibleSpace] widget is specified then it is stacked behind the toolbar -/// and the bottom widget. The following diagram shows where each of these slots -/// appears in the toolbar when the writing language is left-to-right (e.g. -/// English): -/// -/// ![The leading widget is in the top left, the actions are in the top right, -/// the title is between them. The bottom is, naturally, at the bottom, and the -/// flexibleSpace is behind all of them.](https://flutter.github.io/assets-for-api-docs/assets/material/app_bar.png) -/// -/// If the [leading] widget is omitted, but the [GFAppBar] is in a [Scaffold] with -/// a [Drawer], then a button will be inserted to open the drawer. Otherwise, if -/// the nearest [Navigator] has any previous routes, a [BackButton] is inserted -/// instead. This behavior can be turned off by setting the [automaticallyImplyLeading] -/// to false. In that case a null leading widget will result in the middle/title widget -/// stretching to start. -/// -/// {@tool dartpad --template=stateless_widget_material} -/// -/// This sample shows an [GFAppBar] with two simple actions. The first action -/// opens a [SnackBar], while the second action navigates to a new page. -/// -/// ```dart preamble -/// final GlobalKey scaffoldKey = GlobalKey(); -/// final SnackBar snackBar = const SnackBar(content: Text('Showing Snackbar')); -/// -/// void openPage(BuildContext context) { -/// Navigator.push(context, MaterialPageRoute( -/// builder: (BuildContext context) { -/// return Scaffold( -/// appBar: GFAppBar( -/// title: const Text('Next page'), -/// ), -/// body: const Center( -/// child: Text( -/// 'This is the next page', -/// style: TextStyle(fontSize: 24), -/// ), -/// ), -/// ); -/// }, -/// )); -/// } -/// ``` -/// -/// ```dart -/// Widget build(BuildContext context) { -/// return Scaffold( -/// key: scaffoldKey, -/// appBar: GFAppBar( -/// title: const Text('GFAppBar Demo'), -/// actions: [ -/// IconButton( -/// icon: const Icon(Icons.add_alert), -/// tooltip: 'Show Snackbar', -/// onPressed: () { -/// scaffoldKey.currentState.showSnackBar(snackBar); -/// }, -/// ), -/// IconButton( -/// icon: const Icon(Icons.navigate_next), -/// tooltip: 'Next page', -/// onPressed: () { -/// openPage(context); -/// }, -/// ), -/// ], -/// ), -/// body: const Center( -/// child: Text( -/// 'This is the home page', -/// style: TextStyle(fontSize: 24), -/// ), -/// ), -/// ); -/// } -/// ``` -/// {@end-tool} -/// -/// See also: -/// -/// * [Scaffold], which displays the [GFAppBar] in its [Scaffold.appBar] slot. -/// * [SliverGFAppBar], which uses [GFAppBar] to provide a flexible app bar that -/// can be used in a [CustomScrollView]. -/// * [TabBar], which is typically placed in the [bottom] slot of the [GFAppBar] -/// if the screen has multiple pages arranged in tabs. -/// * [IconButton], which is used with [actions] to show buttons on the app bar. -/// * [PopupMenuButton], to show a popup menu on the app bar, via [actions]. -/// * [FlexibleSpaceBar], which is used with [flexibleSpace] when the app bar -/// can expand and collapse. -/// * +/// above the [bottom] (if any). The [bottom] is usually used for a [TabBar]. class GFAppBar extends StatefulWidget implements PreferredSizeWidget { /// Creates a material design app bar. /// @@ -184,44 +53,6 @@ class GFAppBar extends StatefulWidget implements PreferredSizeWidget { super(key: key); /// A widget to display before the [title]. - /// - /// If this is null and [automaticallyImplyLeading] is set to true, the - /// [GFAppBar] will imply an appropriate widget. For example, if the [GFAppBar] is - /// in a [Scaffold] that also has a [Drawer], the [Scaffold] will fill this - /// widget with an [IconButton] that opens the drawer (using [Icons.menu]). If - /// there's no [Drawer] and the parent [Navigator] can go back, the [GFAppBar] - /// will use a [BackButton] that calls [Navigator.maybePop]. - /// - /// {@tool sample} - /// - /// The following code shows how the drawer button could be manually specified - /// instead of relying on [automaticallyImplyLeading]: - /// - /// ```dart - /// GFAppBar( - /// leading: Builder( - /// builder: (BuildContext context) { - /// return IconButton( - /// icon: const Icon(Icons.menu), - /// onPressed: () { Scaffold.of(context).openDrawer(); }, - /// tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, - /// ); - /// }, - /// ), - /// ) - /// ``` - /// {@end-tool} - /// - /// The [Builder] is used in this example to ensure that the `context` refers - /// to that part of the subtree. That way this code snippet can be used even - /// inside the very code that is creating the [Scaffold] (in which case, - /// without the [Builder], the `context` wouldn't be able to see the - /// [Scaffold], since it would refer to an ancestor of that widget). - /// - /// See also: - /// - /// * [Scaffold.appBar], in which an [GFAppBar] is usually placed. - /// * [Scaffold.drawer], in which the [Drawer] is usually placed. final Widget leading; /// Controls whether we should try to imply the leading widget if null. @@ -641,6 +472,30 @@ class _FloatingGFAppBarState extends State<_FloatingGFAppBar> { Widget build(BuildContext context) => widget.child; } +const double _kLeadingWidth = kToolbarHeight; + +class _ToolbarContainerLayout extends SingleChildLayoutDelegate { + const _ToolbarContainerLayout(); + + @override + BoxConstraints getConstraintsForChild(BoxConstraints constraints) { + return constraints.tighten(height: kToolbarHeight); + } + + @override + Size getSize(BoxConstraints constraints) { + return Size(constraints.maxWidth, kToolbarHeight); + } + + @override + Offset getPositionForChild(Size size, Size childSize) { + return Offset(0.0, size.height - childSize.height); + } + + @override + bool shouldRelayout(_ToolbarContainerLayout oldDelegate) => false; +} + class _SliverGFAppBarDelegate extends SliverPersistentHeaderDelegate { _SliverGFAppBarDelegate({ @required this.leading, @@ -817,65 +672,6 @@ class _SliverGFAppBarDelegate extends SliverPersistentHeaderDelegate { /// [actions], above the [bottom] (if any). If a [flexibleSpace] widget is /// specified then it is stacked behind the toolbar and the bottom widget. /// -/// {@tool sample} -/// -/// This is an example that could be included in a [CustomScrollView]'s -/// [CustomScrollView.slivers] list: -/// -/// ```dart -/// SliverGFAppBar( -/// expandedHeight: 150.0, -/// flexibleSpace: const FlexibleSpaceBar( -/// title: Text('Available seats'), -/// ), -/// actions: [ -/// IconButton( -/// icon: const Icon(Icons.add_circle), -/// tooltip: 'Add new entry', -/// onPressed: () { /* ... */ }, -/// ), -/// ] -/// ) -/// ``` -/// {@end-tool} -/// -/// ## Animated Examples -/// -/// The following animations show how app bars with different configurations -/// behave when a user scrolls up and then down again. -/// -/// * App bar with [floating]: false, [pinned]: false, [snap]: false: -/// {@animation 476 400 https://flutter.github.io/assets-for-api-docs/assets/material/app_bar.mp4} -/// -/// * App bar with [floating]: true, [pinned]: false, [snap]: false: -/// {@animation 476 400 https://flutter.github.io/assets-for-api-docs/assets/material/app_bar_floating.mp4} -/// -/// * App bar with [floating]: true, [pinned]: false, [snap]: true: -/// {@animation 476 400 https://flutter.github.io/assets-for-api-docs/assets/material/app_bar_floating_snap.mp4} -/// -/// * App bar with [floating]: true, [pinned]: true, [snap]: false: -/// {@animation 476 400 https://flutter.github.io/assets-for-api-docs/assets/material/app_bar_pinned_floating.mp4} -/// -/// * App bar with [floating]: true, [pinned]: true, [snap]: true: -/// {@animation 476 400 https://flutter.github.io/assets-for-api-docs/assets/material/app_bar_pinned_floating_snap.mp4} -/// -/// * App bar with [floating]: false, [pinned]: true, [snap]: false: -/// {@animation 476 400 https://flutter.github.io/assets-for-api-docs/assets/material/app_bar_pinned.mp4} -/// -/// The property [snap] can only be set to true if [floating] is also true. -/// -/// See also: -/// -/// * [CustomScrollView], which integrates the [SliverGFAppBar] into its -/// scrolling. -/// * [GFAppBar], which is a fixed-height app bar for use in [Scaffold.appBar]. -/// * [TabBar], which is typically placed in the [bottom] slot of the [GFAppBar] -/// if the screen has multiple pages arranged in tabs. -/// * [IconButton], which is used with [actions] to show buttons on the app bar. -/// * [PopupMenuButton], to show a popup menu on the app bar, via [actions]. -/// * [FlexibleSpaceBar], which is used with [flexibleSpace] when the app bar -/// can expand and collapse. -/// * class SliverGFAppBar extends StatefulWidget { /// Creates a material design app bar that can be placed in a [CustomScrollView]. /// diff --git a/lib/components/avatar/gf_avatar.dart b/lib/components/avatar/gf_avatar.dart index 26cbfcca..1b969e3d 100644 --- a/lib/components/avatar/gf_avatar.dart +++ b/lib/components/avatar/gf_avatar.dart @@ -1,8 +1,10 @@ import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/shape/gf_avatar_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/colors/gf_color.dart'; +import 'package:getflutter/shape/gf_avatar_shape.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/colors/gf_color.dart'; +export 'package:getflutter/shape/gf_avatar_shape.dart'; +export 'package:getflutter/size/gf_size.dart'; class GFAvatar extends StatelessWidget { /// Typically a [Text] widget. If the [CircleAvatar] is to have an image, use [backgroundImage] instead. @@ -26,7 +28,7 @@ class GFAvatar extends StatelessWidget { /// The maximum size of the avatar, expressed as the radius (half the diameter). final double maxRadius; - /// size of avatar like [double] or [GFSize] i.e, 1.2, small, medium, large etc. + /// size of avatar like [GFSize] i.e, 1.2, small, medium, large etc. final dynamic size; /// shape of avatar [GFAvatarShape] i.e, standard, circle, square @@ -51,12 +53,10 @@ class GFAvatar extends StatelessWidget { this.maxRadius, this.borderRadius, this.shape = GFAvatarShape.circle, - this.size = GFSize.medium - }) + this.size = GFSize.medium}) : assert(radius == null || (minRadius == null && maxRadius == null)), super(key: key); - double get _minDiameter { if (radius == null && minRadius == null && maxRadius == null) { return 1.5 * getGFSize(size); diff --git a/lib/components/badge/gf_badge.dart b/lib/components/badge/gf_badge.dart index ed667b1b..3802d2e9 100644 --- a/lib/components/badge/gf_badge.dart +++ b/lib/components/badge/gf_badge.dart @@ -1,16 +1,19 @@ import 'package:flutter/material.dart'; -import 'package:ui_kit/shape/gf_badge_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/colors/gf_color.dart'; +import 'package:getflutter/shape/gf_badge_shape.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/colors/gf_color.dart'; +export 'package:getflutter/shape/gf_badge_shape.dart'; +export 'package:getflutter/size/gf_size.dart'; +export 'package:getflutter/colors/gf_color.dart'; class GFBadge extends StatefulWidget { - /// The border side for the button's [Material]. + /// The border side for the badge's [Material]. final BorderSide border; - /// Typically the counter button's shape. + /// Typically the counter badge's shape. final ShapeBorder borderShape; - /// Counter type of [GFBadgeShape] i.e, standard, pills, square, + /// Counter type of [GFBadgeShape] i.e, standard, pills, square, circle final GFBadgeShape shape; /// Pass [GFColor] or [Color] diff --git a/lib/components/badge/gf_button_badge.dart b/lib/components/badge/gf_button_badge.dart index 39c6a0c6..49de906f 100644 --- a/lib/components/badge/gf_button_badge.dart +++ b/lib/components/badge/gf_button_badge.dart @@ -2,15 +2,19 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/colors/gf_color.dart'; +import 'package:getflutter/components/button/gf_button.dart'; +import 'package:getflutter/shape/gf_button_shape.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/types/gf_type.dart'; +import 'package:getflutter/position/gf_position.dart'; +import 'package:getflutter/colors/gf_color.dart'; +export 'package:getflutter/position/gf_position.dart'; +export 'package:getflutter/shape/gf_button_shape.dart'; +export 'package:getflutter/size/gf_size.dart'; +export 'package:getflutter/types/gf_type.dart'; +export 'package:getflutter/colors/gf_color.dart'; class GFButtonBadge extends GFButton { - /// Called when the button is tapped or otherwise activated. final VoidCallback onPressed; @@ -20,52 +24,52 @@ class GFButtonBadge extends GFButton { /// Defines the default text style, with [Material.textStyle], for the button's [child]. final TextStyle textStyle; - /// The border side for the button's [Material]. + /// The border side for the badge's [Material]. final BorderSide borderSide; - /// The box shadow for the button's [Material]. + /// The box shadow for the badge's [Material]. final BoxShadow boxShadow; - /// Pass [GFColor] or [Color]. The color for the button's [Material] when it has the input focus. + /// Pass [GFColor] or [Color]. The color for the badge's [Material] when it has the input focus. final dynamic focusColor; - /// Pass [GFColor] or [Color]. The color for the button's [Material] when a pointer is hovering over it. + /// Pass [GFColor] or [Color]. The color for the badge's [Material] when a pointer is hovering over it. final dynamic hoverColor; - /// Pass [GFColor] or [Color]. The highlight color for the button's [InkWell]. + /// Pass [GFColor] or [Color]. The highlight color for the badge's [InkWell]. final dynamic highlightColor; - /// Pass [GFColor] or [Color]. The splash color for the button's [InkWell]. + /// Pass [GFColor] or [Color]. The splash color for the badge's [InkWell]. final dynamic splashColor; - /// The elevation for the button's [Material] when the button is [enabled] but not pressed. + /// The elevation for the badge's [Material] when the badge is [enabled] but not pressed. final double elevation; - /// The elevation for the button's [Material] when the button is [enabled] and a pointer is hovering over it. + /// The elevation for the badge's [Material] when the badge is [enabled] and a pointer is hovering over it. final double hoverElevation; - /// The elevation for the button's [Material] when the button is [enabled] and has the input focus. + /// The elevation for the badge's [Material] when the badge is [enabled] and has the input focus. final double focusElevation; - /// The elevation for the button's [Material] when the button is [enabled] and pressed. + /// The elevation for the badge's [Material] when the badge is [enabled] and pressed. final double highlightElevation; - /// The elevation for the button's [Material] when the button is not [enabled]. + /// The elevation for the badge's [Material] when the badge is not [enabled]. final double disabledElevation; - /// The internal padding for the button's [child]. + /// The internal padding for the badge's [child]. final EdgeInsetsGeometry padding; - /// Defines the button's size. + /// Defines the badge's size. final BoxConstraints constraints; - /// The shape of the button's [Material]. + /// The shape of the badge's [Material]. final ShapeBorder borderShape; /// Defines the duration of animated changes for [shape] and [elevation]. final Duration animationDuration; - /// Whether the button is enabled or disabled. + /// Whether the badge is enabled or disabled. bool get enabled => onPressed != null; /// Configures the minimum size of the tap target. @@ -89,23 +93,23 @@ class GFButtonBadge extends GFButton { /// Pass [GFColor] or [Color] final dynamic color; - /// The fill color of the button when the button is disabled. + /// The fill color of the badge when the badge is disabled. /// /// The default value of this color is the theme's disabled color, /// [ThemeData.disabledColor]. /// /// See also: /// - /// * [color] - the fill color of the button when the button is [enabled]. + /// * [color] - the fill color of the badge when the badge is [enabled]. final dynamic disabledColor; /// Pass [GFColor] or [Color] final dynamic textColor; - /// The color to use for this button's text when the button is disabled. + /// The color to use for this badge's text when the badge is disabled. /// - /// The button's [Material.textStyle] will be the current theme's button - /// text style, [ThemeData.textTheme.button], configured with this color. + /// The badge's [Material.textStyle] will be the current theme's badge + /// text style, [ThemeData.textTheme.badge], configured with this color. /// /// The default value is the theme's disabled color, /// [ThemeData.disabledColor]. @@ -115,7 +119,7 @@ class GFButtonBadge extends GFButton { /// /// See also: /// - /// * [textColor] - The color to use for this button's text when the button is [enabled]. + /// * [textColor] - The color to use for this badge's text when the badge is [enabled]. final dynamic disabledTextColor; /// size of [double] or [GFSize] i.e, 1.2, small, medium, large etc. @@ -127,24 +131,24 @@ class GFButtonBadge extends GFButton { /// icon type of [GFIconPosition] i.e, start, end final GFPosition position; - /// on true state blockButton gives block size button + /// on true state blockButton gives block size badge final bool blockButton; - /// on true state full width Button gives full width button + /// on true state full width Button gives full width badge final bool fullWidthButton; - /// on true state default box shadow appears around button - final bool buttonBoxShadow; + /// on true state default box shadow appears around badge, if GFButtonType is solid + final bool badgeBoxShadow; - /// A set of thirteen colors that can be used to derive the button theme's + /// A set of thirteen colors that can be used to derive the badge theme's /// colors. /// /// This property was added much later than the theme's set of highly - /// specific colors, like [ThemeData.buttonColor], [ThemeData.highlightColor], + /// specific colors, like [ThemeData.badgeColor], [ThemeData.highlightColor], /// [ThemeData.splashColor] etc. /// - /// The colors for new button classes can be defined exclusively in terms - /// of [colorScheme]. When it's possible, the existing buttons will + /// The colors for new badge classes can be defined exclusively in terms + /// of [colorScheme]. When it's possible, the existing badges will /// (continue to) gradually migrate to it. final ColorScheme colorScheme; @@ -158,62 +162,61 @@ class GFButtonBadge extends GFButton { /// * [Feedback] for providing platform-specific feedback to certain actions. final bool enableFeedback; - /// Called when the button is long-pressed. + /// Called when the badge is long-pressed. /// - /// If this callback and [onPressed] are null, then the button will be disabled. + /// If this callback and [onPressed] are null, then the badge will be disabled. /// /// See also: /// - /// * [enabled], which is true if the button is enabled. + /// * [enabled], which is true if the badge is enabled. final VoidCallback onLongPress; - /// Can be used to display [GFCounter], [Icons] inside button design + /// Can be used to display [GFCounter], [Icons] inside badge design final Widget icon; - /// Create buttons badges of all types. check out [GFIconButton] for icon buttons, and [GFBadge] for badges - const GFButtonBadge( - {Key key, - @required this.onPressed, - this.onHighlightChanged, - this.textStyle, - this.boxShadow, - this.buttonBoxShadow, - this.focusColor, - this.hoverColor, - this.highlightColor, - this.splashColor, - this.elevation = 0.0, - this.focusElevation = 4.0, - this.hoverElevation = 4.0, - this.highlightElevation = 1.0, - this.disabledElevation = 0.0, - this.padding = const EdgeInsets.symmetric(horizontal: 8.0), - this.constraints, - this.borderShape, - this.animationDuration = kThemeChangeDuration, - this.clipBehavior = Clip.none, - this.focusNode, - this.autofocus = false, - MaterialTapTargetSize materialTapTargetSize, - this.type = GFType.solid, - this.shape = GFButtonShape.standard, - this.color = GFColor.primary, - this.textColor, - this.position = GFPosition.end, - this.size = GFSize.medium, - this.borderSide, - this.text, - this.blockButton, - this.fullWidthButton, - this.colorScheme, - this.enableFeedback, - this.onLongPress, - this.disabledColor, - this.disabledTextColor, - this.icon, - }) - : materialTapTargetSize = - materialTapTargetSize ?? MaterialTapTargetSize.padded, + /// Create badges badges of all types. check out [GFIconButton] for icon badges, and [GFBadge] for badges + const GFButtonBadge({ + Key key, + @required this.onPressed, + this.onHighlightChanged, + this.textStyle, + this.boxShadow, + this.badgeBoxShadow, + this.focusColor, + this.hoverColor, + this.highlightColor, + this.splashColor, + this.elevation = 0.0, + this.focusElevation = 4.0, + this.hoverElevation = 4.0, + this.highlightElevation = 1.0, + this.disabledElevation = 0.0, + this.padding = const EdgeInsets.symmetric(horizontal: 8.0), + this.constraints, + this.borderShape, + this.animationDuration = kThemeChangeDuration, + this.clipBehavior = Clip.none, + this.focusNode, + this.autofocus = false, + MaterialTapTargetSize materialTapTargetSize, + this.type = GFType.solid, + this.shape = GFButtonShape.standard, + this.color = GFColor.primary, + this.textColor, + this.position = GFPosition.end, + this.size = GFSize.medium, + this.borderSide, + this.text, + this.blockButton, + this.fullWidthButton, + this.colorScheme, + this.enableFeedback, + this.onLongPress, + this.disabledColor, + this.disabledTextColor, + this.icon, + }) : materialTapTargetSize = + materialTapTargetSize ?? MaterialTapTargetSize.padded, assert(shape != null, 'Button shape can not be null'), // assert(elevation != null && elevation >= 0.0), assert(focusElevation != null && focusElevation >= 0.0), @@ -225,10 +228,7 @@ class GFButtonBadge extends GFButton { assert(clipBehavior != null), assert(autofocus != null); - - @override Widget build(BuildContext context) { - return ConstrainedBox( constraints: BoxConstraints(minHeight: 26.0, minWidth: 98.0), child: Container( @@ -238,29 +238,29 @@ class GFButtonBadge extends GFButton { onHighlightChanged: onHighlightChanged, textStyle: textStyle, boxShadow: boxShadow, - buttonBoxShadow: buttonBoxShadow, + buttonBoxShadow: badgeBoxShadow, focusColor: focusColor, hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, - elevation: elevation, + elevation: elevation, focusElevation: focusElevation, hoverElevation: hoverElevation, - highlightElevation:highlightElevation, + highlightElevation: highlightElevation, disabledElevation: disabledElevation, constraints: constraints, borderShape: borderShape, animationDuration: animationDuration, clipBehavior: clipBehavior, focusNode: focusNode, - autofocus : autofocus , + autofocus: autofocus, // child: child, - type : type, - shape : shape, - color : color, + type: type, + shape: shape, + color: color, textColor: textColor, - position : position, - size : getGFSize(size), + position: position, + size: getGFSize(size), borderSide: borderSide, text: text, icon: icon, @@ -274,15 +274,11 @@ class GFButtonBadge extends GFButton { } } - - - - //class GFButtonBadge extends StatefulWidget { // /// Called when the badge is tapped or otherwise activated. // final VoidCallback onPressed; // -// /// Defines the default text style, with [Material.textStyle], for the button's [child]. +// /// Defines the default text style, with [Material.textStyle], for the badge's [child]. // final TextStyle textStyle; // // /// The border side for the badge's [Material]. diff --git a/lib/components/badge/gf_icon_badge.dart b/lib/components/badge/gf_icon_badge.dart index f0329c2f..a7575555 100644 --- a/lib/components/badge/gf_icon_badge.dart +++ b/lib/components/badge/gf_icon_badge.dart @@ -1,8 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; +import 'package:getflutter/components/button/gf_icon_button.dart'; class GFIconBadge extends StatefulWidget { - /// child of type [GFIconButton] is used to show icon. /// Use [Icon] widget for compatibility. final Widget child; diff --git a/lib/components/button/gf_button.dart b/lib/components/button/gf_button.dart index 890d16b8..d96f9e25 100644 --- a/lib/components/button/gf_button.dart +++ b/lib/components/button/gf_button.dart @@ -4,11 +4,16 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/colors/gf_color.dart'; +import 'package:getflutter/shape/gf_button_shape.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/types/gf_type.dart'; +import 'package:getflutter/position/gf_position.dart'; +import 'package:getflutter/colors/gf_color.dart'; +export 'package:getflutter/position/gf_position.dart'; +export 'package:getflutter/shape/gf_button_shape.dart'; +export 'package:getflutter/size/gf_size.dart'; +export 'package:getflutter/types/gf_type.dart'; +export 'package:getflutter/colors/gf_color.dart'; class GFButton extends StatefulWidget { /// Called when the button is tapped or otherwise activated. @@ -23,7 +28,7 @@ class GFButton extends StatefulWidget { /// The border side for the button's [Material]. final BorderSide borderSide; - /// The box shadow for the button's [Material]. + /// The box shadow for the button's [Material], if GFButtonType is solid final BoxShadow boxShadow; /// Pass [GFColor] or [Color]. The color for the button's [Material] when it has the input focus. @@ -139,7 +144,7 @@ class GFButton extends StatefulWidget { /// on true state full width Button gives full width button final bool fullWidthButton; - /// on true state default box shadow appears around button + /// on true state default box shadow appears around button, if GFButtonType is solid final bool buttonBoxShadow; /// A set of thirteen colors that can be used to derive the button theme's @@ -174,50 +179,49 @@ class GFButton extends StatefulWidget { final VoidCallback onLongPress; /// Create buttons of all types. check out [GFIconButton] for icon buttons, and [GFBadge] for badges - const GFButton( - {Key key, - @required this.onPressed, - this.onHighlightChanged, - this.textStyle, - this.boxShadow, - this.buttonBoxShadow, - this.focusColor, - this.hoverColor, - this.highlightColor, - this.splashColor, - this.elevation = 0.0, - this.focusElevation = 4.0, - this.hoverElevation = 4.0, - this.highlightElevation = 1.0, - this.disabledElevation = 0.0, - this.padding = const EdgeInsets.symmetric(horizontal: 8.0), - this.constraints, - this.borderShape, - this.animationDuration = kThemeChangeDuration, - this.clipBehavior = Clip.none, - this.focusNode, - this.autofocus = false, - MaterialTapTargetSize materialTapTargetSize, - this.child, - this.type = GFType.solid, - this.shape = GFButtonShape.standard, - this.color = GFColor.primary, - this.textColor, - this.position = GFPosition.start, - this.size = GFSize.medium, - this.borderSide, - this.text, - this.icon, - this.blockButton, - this.fullWidthButton, - this.colorScheme, - this.enableFeedback, - this.onLongPress, - this.disabledColor, - this.disabledTextColor, - }) - : materialTapTargetSize = - materialTapTargetSize ?? MaterialTapTargetSize.padded, + const GFButton({ + Key key, + @required this.onPressed, + this.onHighlightChanged, + this.textStyle, + this.boxShadow, + this.buttonBoxShadow, + this.focusColor, + this.hoverColor, + this.highlightColor, + this.splashColor, + this.elevation = 0.0, + this.focusElevation = 4.0, + this.hoverElevation = 4.0, + this.highlightElevation = 1.0, + this.disabledElevation = 0.0, + this.padding = const EdgeInsets.symmetric(horizontal: 8.0), + this.constraints, + this.borderShape, + this.animationDuration = kThemeChangeDuration, + this.clipBehavior = Clip.none, + this.focusNode, + this.autofocus = false, + MaterialTapTargetSize materialTapTargetSize, + this.child, + this.type = GFType.solid, + this.shape = GFButtonShape.standard, + this.color = GFColor.primary, + this.textColor, + this.position = GFPosition.start, + this.size = GFSize.medium, + this.borderSide, + this.text, + this.icon, + this.blockButton, + this.fullWidthButton, + this.colorScheme, + this.enableFeedback, + this.onLongPress, + this.disabledColor, + this.disabledTextColor, + }) : materialTapTargetSize = + materialTapTargetSize ?? MaterialTapTargetSize.padded, assert(shape != null, 'Button shape can not be null'), // assert(elevation != null && elevation >= 0.0), assert(focusElevation != null && focusElevation >= 0.0), @@ -269,7 +273,7 @@ class _GFButtonState extends State { } bool get _hovered => _states.contains(MaterialState.hovered); - bool get _focused => _states.contains(MaterialState.focused); + bool get _focused => _states.contains(MaterialState.focused); bool get _pressed => _states.contains(MaterialState.pressed); bool get _disabled => _states.contains(MaterialState.disabled); @@ -306,13 +310,13 @@ class _GFButtonState extends State { } } - void _handleFocusedChanged(bool value) { - if (_focused != value) { - setState(() { - _updateState(MaterialState.focused, value); - }); - } - } + void _handleFocusedChanged(bool value) { + if (_focused != value) { + setState(() { + _updateState(MaterialState.focused, value); + }); + } + } @override void didUpdateWidget(GFButton oldWidget) { @@ -345,28 +349,29 @@ class _GFButtonState extends State { return widget.elevation; } - @override Widget build(BuildContext context) { ShapeBorder shape; Color getBorderColor() { - if(widget.enabled){ - final Color fillColor = this.color == null ? getGFColor(GFColor.primary) : this.color; - if (fillColor != null) - return fillColor; - }else{ + if (widget.enabled) { + final Color fillColor = + this.color == null ? getGFColor(GFColor.primary) : this.color; + if (fillColor != null) return fillColor; + } else { if (this.disabledColor != null) return this.disabledColor; else { return this.color.withOpacity(0.48); } } + return this.color == null ? getGFColor(GFColor.primary) : this.color; } Color getDisabledFillColor() { - if (widget.type == GFType.transparent || widget.type == GFType.outline || widget.type == GFType.outline2x) - return Colors.transparent; + if (widget.type == GFType.transparent || + widget.type == GFType.outline || + widget.type == GFType.outline2x) return Colors.transparent; if (this.disabledColor != null) return this.disabledColor; else { @@ -375,41 +380,45 @@ class _GFButtonState extends State { } Color getColor() { - if (widget.type == GFType.transparent || widget.type == GFType.outline || widget.type == GFType.outline2x) - return Colors.transparent; - else{ - final Color fillColor = this.color == null ? getGFColor(GFColor.primary) : this.color; - if (fillColor != null) - return fillColor; - } + if (widget.type == GFType.transparent || + widget.type == GFType.outline || + widget.type == GFType.outline2x) return Colors.transparent; + final Color fillColor = + this.color == null ? getGFColor(GFColor.primary) : this.color; + return fillColor; } Color getDisabledTextColor() { - if (this.disabledTextColor != null) return this.disabledTextColor; - else if (widget.type == GFType.outline || widget.type == GFType.outline2x || widget.type == GFType.transparent){ + else if (widget.type == GFType.outline || + widget.type == GFType.outline2x || + widget.type == GFType.transparent) { return this.color; - }else{ + } else { return getGFColor(GFColor.dark); } } - Color getTextColor() { - - if (widget.type == GFType.outline || widget.type == GFType.outline2x || widget.type == GFType.transparent){ - return widget.enabled ? this.textColor == null ? - this.color == getGFColor(GFColor.transparent) ? getGFColor(GFColor.dark) : this.color : this.textColor : getDisabledTextColor(); + if (widget.type == GFType.outline || + widget.type == GFType.outline2x || + widget.type == GFType.transparent) { + return widget.enabled + ? this.textColor == null + ? this.color == getGFColor(GFColor.transparent) + ? getGFColor(GFColor.dark) + : this.color + : this.textColor + : getDisabledTextColor(); } if (this.textColor == null) { - if(this.color == getGFColor(GFColor.transparent)){ + if (this.color == getGFColor(GFColor.transparent)) { return getGFColor(GFColor.dark); - }else { + } else { return getGFColor(GFColor.white); } - } - else{ + } else { return this.textColor; } } @@ -417,12 +426,16 @@ class _GFButtonState extends State { final Color effectiveTextColor = MaterialStateProperty.resolveAs( widget.textStyle?.color, _states); final Color themeColor = - Theme.of(context).colorScheme.onSurface.withOpacity(0.12); + Theme.of(context).colorScheme.onSurface.withOpacity(0.12); final BorderSide outlineBorder = BorderSide( color: this.color == null ? themeColor - : widget.borderSide == null ? getBorderColor() : widget.borderSide.color, - width: widget.borderSide?.width == null ? widget.type == GFType.outline2x ? 2.0 : 1.0 : widget.borderSide?.width, + : widget.borderSide == null + ? getBorderColor() + : widget.borderSide.color, + width: widget.borderSide?.width == null + ? widget.type == GFType.outline2x ? 2.0 : 1.0 + : widget.borderSide?.width, ); Size minSize; @@ -438,16 +451,15 @@ class _GFButtonState extends State { break; } - - - final BorderSide shapeBorder = widget.type == GFType.outline || widget.type == GFType.outline2x - ? outlineBorder - : widget.borderSide != null - ? widget.borderSide - : BorderSide( - color: this.color == null ? themeColor : getBorderColor(), - width: 0.0, - ); + final BorderSide shapeBorder = + widget.type == GFType.outline || widget.type == GFType.outline2x + ? outlineBorder + : widget.borderSide != null + ? widget.borderSide + : BorderSide( + color: this.color == null ? themeColor : getBorderColor(), + width: 0.0, + ); if (this.shape == GFButtonShape.pills) { shape = RoundedRectangleBorder( @@ -470,57 +482,67 @@ class _GFButtonState extends State { } else { return BoxDecoration( color: widget.type == GFType.transparent || - widget.type == GFType.outline || widget.type == GFType.outline2x + widget.type == GFType.outline || + widget.type == GFType.outline2x ? Colors.transparent : this.color, borderRadius: widget.shape == GFButtonShape.pills ? BorderRadius.circular(50.0) : widget.shape == GFButtonShape.standard - ? BorderRadius.circular(5.0) - : BorderRadius.zero, + ? BorderRadius.circular(5.0) + : BorderRadius.zero, boxShadow: [ widget.boxShadow == null && widget.buttonBoxShadow == true ? BoxShadow( - color: themeColor, - blurRadius: 1.5, - spreadRadius: 2.0, - offset: Offset.zero, - ) + color: themeColor, + blurRadius: 1.5, + spreadRadius: 2.0, + offset: Offset.zero, + ) : widget.boxShadow != null - ? widget.boxShadow - : BoxShadow( - color: Theme.of(context).canvasColor, - blurRadius: 0.0, - spreadRadius: 0.0, - offset: Offset.zero, - ), + ? widget.boxShadow + : BoxShadow( + color: Theme.of(context).canvasColor, + blurRadius: 0.0, + spreadRadius: 0.0, + offset: Offset.zero, + ), ]); } } return null; } - getTextStyle(){ - if(widget.size == GFSize.small){ - return TextStyle(color: widget.enabled ? getTextColor() : getDisabledTextColor(), fontSize: 12); - }else if(widget.size == GFSize.medium){ - return TextStyle(color: widget.enabled ? getTextColor() : getDisabledTextColor(), fontSize: 13, fontWeight: FontWeight.w400); - } - else if(widget.size == GFSize.large){ - return TextStyle(color: widget.enabled ? getTextColor() : getDisabledTextColor(), fontSize: 14, fontWeight: FontWeight.w500); + TextStyle getTextStyle() { + if (widget.size == GFSize.small) { + return TextStyle( + color: widget.enabled ? getTextColor() : getDisabledTextColor(), + fontSize: 12); + } else if (widget.size == GFSize.medium) { + return TextStyle( + color: widget.enabled ? getTextColor() : getDisabledTextColor(), + fontSize: 13, + fontWeight: FontWeight.w400); + } else if (widget.size == GFSize.large) { + return TextStyle( + color: widget.enabled ? getTextColor() : getDisabledTextColor(), + fontSize: 14, + fontWeight: FontWeight.w500); } + return TextStyle( + color: widget.enabled ? getTextColor() : getDisabledTextColor(), + fontSize: 13, + fontWeight: FontWeight.w400); } final Widget result = Container( constraints: this.icon == null ? BoxConstraints(minWidth: 80.0) : BoxConstraints(minWidth: 90.0), - decoration: getBoxShadow(), + decoration: widget.type == GFType.solid ? getBoxShadow() : null, child: Material( elevation: _effectiveElevation, - textStyle: widget.textStyle == null - ? getTextStyle() - : widget.textStyle, + textStyle: widget.textStyle == null ? getTextStyle() : widget.textStyle, shape: widget.type == GFType.transparent ? null : widget.borderShape == null ? shape : widget.borderShape, @@ -557,26 +579,26 @@ class _GFButtonState extends State { widthFactor: 1.0, heightFactor: 1.0, child: this.icon != null && - (this.position == GFPosition.start || - this.position == null) + (this.position == GFPosition.start || + this.position == null) ? Row( - mainAxisSize: MainAxisSize.min, - children: [ - this.icon, - const SizedBox(width: 8.0), - this.child - ], - ) + mainAxisSize: MainAxisSize.min, + children: [ + this.icon, + const SizedBox(width: 8.0), + this.child + ], + ) : this.icon != null && (this.position == GFPosition.end) - ? Row( - mainAxisSize: MainAxisSize.min, - children: [ - this.child, - const SizedBox(width: 8.0), - this.icon - ], - ) - : this.child, + ? Row( + mainAxisSize: MainAxisSize.min, + children: [ + this.child, + const SizedBox(width: 8.0), + this.icon + ], + ) + : this.child, ), ), ), @@ -584,16 +606,6 @@ class _GFButtonState extends State { ), ); -// return Semantics( -// container: true, -// button: true, -// enabled: widget.enabled, -// child: _InputPadding( -// minSize: minSize, -// child: result, -// ), -// ); - return Semantics( container: true, button: true, @@ -601,11 +613,10 @@ class _GFButtonState extends State { child: _InputPadding( minSize: minSize, child: Focus( - focusNode: widget.focusNode, - onFocusChange: _handleFocusedChanged, - autofocus: widget.autofocus, - child: result - ), + focusNode: widget.focusNode, + onFocusChange: _handleFocusedChanged, + autofocus: widget.autofocus, + child: result), ), ); } @@ -705,4 +716,4 @@ class _RenderInputPadding extends RenderShiftedBox { }, ); } -} \ No newline at end of file +} diff --git a/lib/components/button/gf_button_bar.dart b/lib/components/button/gf_button_bar.dart index 6d2fedce..922ba9b7 100644 --- a/lib/components/button/gf_button_bar.dart +++ b/lib/components/button/gf_button_bar.dart @@ -1,9 +1,10 @@ import 'package:flutter/material.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/components/button/gf_icon_button.dart'; +import 'package:getflutter/components/button/gf_button.dart'; +import 'package:getflutter/components/button/gf_icon_button.dart'; class GFButtonBar extends StatelessWidget { - + /// Create buttons bar for all types of buttons. + /// check [GFButton] and [GFIconButton] const GFButtonBar({ Key key, this.alignment = MainAxisAlignment.end, diff --git a/lib/components/button/gf_icon_button.dart b/lib/components/button/gf_icon_button.dart index 33473552..559f0e30 100644 --- a/lib/components/button/gf_icon_button.dart +++ b/lib/components/button/gf_icon_button.dart @@ -2,10 +2,14 @@ import 'dart:math' as math; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/shape/gf_icon_button_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/colors/gf_color.dart'; +import 'package:getflutter/shape/gf_icon_button_shape.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/types/gf_type.dart'; +import 'package:getflutter/colors/gf_color.dart'; +export 'package:getflutter/shape/gf_icon_button_shape.dart'; +export 'package:getflutter/size/gf_size.dart'; +export 'package:getflutter/types/gf_type.dart'; +export 'package:getflutter/colors/gf_color.dart'; class GFIconButton extends StatefulWidget { /// The size of the icon inside the button. @@ -56,7 +60,7 @@ class GFIconButton extends StatefulWidget { /// Text that describes the action that will occur when the button is pressed. final String tooltip; - /// The box shadow for the button's [Material]. + /// The box shadow for the button's [Material], if GFButtonType is solid final BoxShadow boxShadow; /// The shape and border for the button's [Material]. @@ -65,38 +69,37 @@ class GFIconButton extends StatefulWidget { /// size of [double] or [GFSize] i.e, 1.2, small, medium, large etc. final dynamic size; - /// on true state default box shadow appears around button + /// on true state default box shadow appears around button, if GFButtonType is solid final bool buttonBoxShadow; /// The border side for the button's [Material]. final BorderSide borderSide; /// Create icon buttons of all types. check out [GFButton] for buttons - const GFIconButton( - {Key key, - this.iconSize = 0.0, - this.padding = const EdgeInsets.all(8.0), - this.alignment = Alignment.center, - @required this.icon, - this.focusColor, - this.hoverColor, - this.highlightColor, - this.splashColor, - this.disabledColor, - @required this.onPressed, - this.focusNode, - this.autofocus = false, - this.tooltip, - this.type = GFType.solid, - this.shape = GFIconButtonShape.standard, - this.color = GFColor.primary, - this.borderShape, - this.boxShadow, - this.size = GFSize.medium, - this.buttonBoxShadow, - this.borderSide, - }) - : assert(iconSize != null), + const GFIconButton({ + Key key, + this.iconSize = 0.0, + this.padding = const EdgeInsets.all(8.0), + this.alignment = Alignment.center, + @required this.icon, + this.focusColor, + this.hoverColor, + this.highlightColor, + this.splashColor, + this.disabledColor, + @required this.onPressed, + this.focusNode, + this.autofocus = false, + this.tooltip, + this.type = GFType.solid, + this.shape = GFIconButtonShape.standard, + this.color = GFColor.primary, + this.borderShape, + this.boxShadow, + this.size = GFSize.medium, + this.buttonBoxShadow, + this.borderSide, + }) : assert(iconSize != null), assert(padding != null), assert(alignment != null), assert(autofocus != null), @@ -131,9 +134,9 @@ class _GFIconButtonState extends State { assert(debugCheckHasMaterial(context)); Color getBorderColor() { - if(widget.onPressed != null){ + if (widget.onPressed != null) { return this.color; - }else{ + } else { if (widget.disabledColor != null) return widget.disabledColor; else { @@ -143,8 +146,9 @@ class _GFIconButtonState extends State { } Color getDisabledFillColor() { - if (widget.type == GFType.transparent || widget.type == GFType.outline || widget.type == GFType.outline2x) - return Colors.transparent; + if (widget.type == GFType.transparent || + widget.type == GFType.outline || + widget.type == GFType.outline2x) return Colors.transparent; if (widget.disabledColor != null) return widget.disabledColor; else { @@ -153,9 +157,11 @@ class _GFIconButtonState extends State { } Color getColor() { - if (widget.type == GFType.transparent || widget.type == GFType.outline || widget.type == GFType.outline2x) + if (widget.type == GFType.transparent || + widget.type == GFType.outline || + widget.type == GFType.outline2x) return Colors.transparent; - else{ + else { return this.color; } } @@ -163,29 +169,38 @@ class _GFIconButtonState extends State { final Color themeColor = Theme.of(context).colorScheme.onSurface.withOpacity(0.12); final BorderSide outlineBorder = BorderSide( - color: widget.borderSide == null ? getBorderColor() : widget.borderSide.color, - width: widget.borderSide?.width == null ? widget.type == GFType.outline2x ? 2.0 : 1.0 : widget.borderSide?.width, + color: widget.borderSide == null + ? getBorderColor() + : widget.borderSide.color, + width: widget.borderSide?.width == null + ? widget.type == GFType.outline2x ? 2.0 : 1.0 + : widget.borderSide?.width, ); - final BorderSide shapeBorder = widget.type == GFType.outline || widget.type == GFType.outline2x - ? outlineBorder - : widget.borderSide != null - ? widget.borderSide - : BorderSide( - color: this.color, - width: 0.0, - ); + final BorderSide shapeBorder = + widget.type == GFType.outline || widget.type == GFType.outline2x + ? outlineBorder + : widget.borderSide != null + ? widget.borderSide + : BorderSide( + color: this.color, + width: 0.0, + ); ShapeBorder shape; if (this.shape == GFIconButtonShape.pills) { - shape = RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0), side: shapeBorder); + shape = RoundedRectangleBorder( + borderRadius: BorderRadius.circular(20.0), side: shapeBorder); } else if (this.shape == GFIconButtonShape.square) { - shape = RoundedRectangleBorder(borderRadius: BorderRadius.circular(0.0), side: shapeBorder); + shape = RoundedRectangleBorder( + borderRadius: BorderRadius.circular(0.0), side: shapeBorder); } else if (this.shape == GFIconButtonShape.standard) { - shape = RoundedRectangleBorder(borderRadius: BorderRadius.circular(3.0), side: shapeBorder); + shape = RoundedRectangleBorder( + borderRadius: BorderRadius.circular(3.0), side: shapeBorder); } else if (this.shape == GFIconButtonShape.circle) { - shape = RoundedRectangleBorder(borderRadius: BorderRadius.circular(50.0), side: shapeBorder); + shape = RoundedRectangleBorder( + borderRadius: BorderRadius.circular(50.0), side: shapeBorder); } if (widget.size == GFSize.small) { @@ -202,21 +217,33 @@ class _GFIconButtonState extends State { this.iconPixel = 18.0; } - getIconColor(){ - if (widget.type == GFType.transparent || widget.type == GFType.outline || widget.type == GFType.outline2x) - return widget.onPressed != null ? - this.color == getGFColor(GFColor.transparent) ? getGFColor(GFColor.dark) : this.color : this.color.withOpacity(0.48); - else if(this.color == getGFColor(GFColor.transparent)){ - return widget.onPressed != null ? getGFColor(GFColor.dark) : getGFColor(GFColor.white); - } - else{ + getIconColor() { + if (widget.type == GFType.transparent || + widget.type == GFType.outline || + widget.type == GFType.outline2x) + return widget.onPressed != null + ? this.color == getGFColor(GFColor.transparent) + ? getGFColor(GFColor.dark) + : this.color + : this.color.withOpacity(0.48); + else if (this.color == getGFColor(GFColor.transparent)) { + return widget.onPressed != null + ? getGFColor(GFColor.dark) + : getGFColor(GFColor.white); + } else { return getGFColor(GFColor.white); } } Widget result = Container( - height: widget.shape == GFIconButtonShape.circle ? this.height + 6 : this.height, - width: widget.shape == GFIconButtonShape.pills ? this.width + 10 : widget.shape == GFIconButtonShape.circle ? this.height + 6 : this.width, + height: widget.shape == GFIconButtonShape.circle + ? this.height + 6 + : this.height, + width: widget.shape == GFIconButtonShape.pills + ? this.width + 10 + : widget.shape == GFIconButtonShape.circle + ? this.height + 6 + : this.width, padding: widget.padding, child: IconTheme.merge( data: IconThemeData( @@ -240,10 +267,16 @@ class _GFIconButtonState extends State { return null; } else { return BoxDecoration( - color: widget.onPressed != null ? getColor() : getDisabledFillColor(), - borderRadius: widget.shape == GFIconButtonShape.circle ? BorderRadius.circular(50.0) - : widget.shape == GFIconButtonShape.standard ? BorderRadius.circular(3.0) : widget.shape == GFIconButtonShape.pills ? BorderRadius.circular(20.0) - : BorderRadius.zero, + color: widget.onPressed != null + ? getColor() + : getDisabledFillColor(), + borderRadius: widget.shape == GFIconButtonShape.circle + ? BorderRadius.circular(50.0) + : widget.shape == GFIconButtonShape.standard + ? BorderRadius.circular(3.0) + : widget.shape == GFIconButtonShape.pills + ? BorderRadius.circular(20.0) + : BorderRadius.zero, boxShadow: [ widget.boxShadow == null && widget.buttonBoxShadow == true ? BoxShadow( @@ -275,14 +308,22 @@ class _GFIconButtonState extends State { child: ConstrainedBox( constraints: BoxConstraints(maxWidth: 60.0, maxHeight: 60.0), child: Container( - height: widget.shape == GFIconButtonShape.circle ? this.height + 6 : this.height, - width: widget.shape == GFIconButtonShape.pills ? this.width + 10 : widget.shape == GFIconButtonShape.circle ? this.height + 6 : this.width, - decoration: getBoxShadow(), + height: widget.shape == GFIconButtonShape.circle + ? this.height + 6 + : this.height, + width: widget.shape == GFIconButtonShape.pills + ? this.width + 10 + : widget.shape == GFIconButtonShape.circle + ? this.height + 6 + : this.width, + decoration: widget.type == GFType.solid ? getBoxShadow() : null, child: Material( shape: widget.type == GFType.transparent ? null : widget.borderShape == null ? shape : widget.borderShape, - color: widget.onPressed != null ? getColor() : getDisabledFillColor(), + color: widget.onPressed != null + ? getColor() + : getDisabledFillColor(), type: widget.type == GFType.transparent ? MaterialType.transparency : MaterialType.button, diff --git a/lib/components/button/gf_social_button.dart b/lib/components/button/gf_social_button.dart index 406247e7..80c00461 100644 --- a/lib/components/button/gf_social_button.dart +++ b/lib/components/button/gf_social_button.dart @@ -1,17 +1,20 @@ -import 'dart:math' as math; import 'package:flutter/foundation.dart'; -import 'package:flutter/gestures.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/components/button/gf_button.dart'; -import 'package:ui_kit/shape/gf_button_shape.dart'; -import 'package:ui_kit/size/gf_size.dart'; -import 'package:ui_kit/types/gf_type.dart'; -import 'package:ui_kit/position/gf_position.dart'; -import 'package:ui_kit/colors/gf_color.dart'; - -class GFSocialButton extends GFButton{ +import 'package:getflutter/components/button/gf_button.dart'; +import 'package:getflutter/shape/gf_button_shape.dart'; +import 'package:getflutter/size/gf_size.dart'; +import 'package:getflutter/types/gf_type.dart'; +import 'package:getflutter/position/gf_position.dart'; +import 'package:getflutter/colors/gf_color.dart'; +export 'package:getflutter/position/gf_position.dart'; +export 'package:getflutter/shape/gf_button_shape.dart'; +export 'package:getflutter/size/gf_size.dart'; +export 'package:getflutter/types/gf_type.dart'; +export 'package:getflutter/colors/gf_color.dart'; + +class GFSocialButton extends GFButton { /// Called when the button is tapped or otherwise activated. final VoidCallback onPressed; @@ -24,7 +27,7 @@ class GFSocialButton extends GFButton{ /// The border side for the button's [Material]. final BorderSide borderSide; - /// The box shadow for the button's [Material]. + /// The box shadow for the button's [Material], if GFButtonType is solid final BoxShadow boxShadow; /// Pass [GFColor] or [Color]. The color for the button's [Material] when it has the input focus. @@ -140,7 +143,7 @@ class GFSocialButton extends GFButton{ /// on true state full width Button gives full width button final bool fullWidthButton; - /// on true state default box shadow appears around button + /// on true state default box shadow appears around button, if GFButtonType is solid final bool buttonBoxShadow; /// A set of thirteen colors that can be used to derive the button theme's @@ -175,50 +178,49 @@ class GFSocialButton extends GFButton{ final VoidCallback onLongPress; /// Create buttons of all types. check out [GFIconButton] for icon buttons, and [GFBadge] for badges - const GFSocialButton( - {Key key, - @required this.onPressed, - this.onHighlightChanged, - this.textStyle, - this.boxShadow, - this.buttonBoxShadow, - this.focusColor, - this.hoverColor, - this.highlightColor, - this.splashColor, - this.elevation = 0.0, - this.focusElevation = 4.0, - this.hoverElevation = 4.0, - this.highlightElevation = 1.0, - this.disabledElevation = 0.0, - this.padding = const EdgeInsets.symmetric(horizontal: 8.0), - this.constraints, - this.borderShape, - this.animationDuration = kThemeChangeDuration, - this.clipBehavior = Clip.none, - this.focusNode, - this.autofocus = false, - MaterialTapTargetSize materialTapTargetSize, - this.child, - this.type = GFType.solid, - this.shape = GFButtonShape.standard, - this.color = GFColor.primary, - this.textColor, - this.position = GFPosition.start, - this.size = GFSize.medium, - this.borderSide, - this.text, - this.icon, - this.blockButton, - this.fullWidthButton, - this.colorScheme, - this.enableFeedback, - this.onLongPress, - this.disabledColor, - this.disabledTextColor, - }) - : materialTapTargetSize = - materialTapTargetSize ?? MaterialTapTargetSize.padded, + const GFSocialButton({ + Key key, + @required this.onPressed, + this.onHighlightChanged, + this.textStyle, + this.boxShadow, + this.buttonBoxShadow, + this.focusColor, + this.hoverColor, + this.highlightColor, + this.splashColor, + this.elevation = 0.0, + this.focusElevation = 4.0, + this.hoverElevation = 4.0, + this.highlightElevation = 1.0, + this.disabledElevation = 0.0, + this.padding = const EdgeInsets.symmetric(horizontal: 8.0), + this.constraints, + this.borderShape, + this.animationDuration = kThemeChangeDuration, + this.clipBehavior = Clip.none, + this.focusNode, + this.autofocus = false, + MaterialTapTargetSize materialTapTargetSize, + this.child, + this.type = GFType.solid, + this.shape = GFButtonShape.standard, + this.color = GFColor.primary, + this.textColor, + this.position = GFPosition.start, + this.size = GFSize.medium, + this.borderSide, + this.text, + this.icon, + this.blockButton, + this.fullWidthButton, + this.colorScheme, + this.enableFeedback, + this.onLongPress, + this.disabledColor, + this.disabledTextColor, + }) : materialTapTargetSize = + materialTapTargetSize ?? MaterialTapTargetSize.padded, assert(shape != null, 'Button shape can not be null'), // assert(elevation != null && elevation >= 0.0), assert(focusElevation != null && focusElevation >= 0.0), @@ -230,7 +232,6 @@ class GFSocialButton extends GFButton{ assert(clipBehavior != null), assert(autofocus != null); - @override Widget build(BuildContext context) { return GFButton( onPressed: onPressed, @@ -242,24 +243,24 @@ class GFSocialButton extends GFButton{ hoverColor: hoverColor, highlightColor: highlightColor, splashColor: splashColor, - elevation: elevation, + elevation: elevation, focusElevation: focusElevation, hoverElevation: hoverElevation, - highlightElevation:highlightElevation, + highlightElevation: highlightElevation, disabledElevation: disabledElevation, constraints: constraints, borderShape: borderShape, animationDuration: animationDuration, clipBehavior: clipBehavior, focusNode: focusNode, - autofocus : autofocus , + autofocus: autofocus, child: child, - type :GFType.solid, - shape :GFButtonShape.standard, - color :GFColor.primary, + type: GFType.solid, + shape: GFButtonShape.standard, + color: GFColor.primary, textColor: textColor, - position :GFPosition.start, - size :GFSize.medium, + position: GFPosition.start, + size: GFSize.medium, borderSide: borderSide, text: text, icon: icon, @@ -270,5 +271,3 @@ class GFSocialButton extends GFButton{ ); } } - - diff --git a/lib/components/card/gf_card.dart b/lib/components/card/gf_card.dart index c5de141c..b4a2fb75 100644 --- a/lib/components/card/gf_card.dart +++ b/lib/components/card/gf_card.dart @@ -1,35 +1,42 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/components/button/gf_button_bar.dart'; -import 'package:ui_kit/components/list_tile/gf_list_tile.dart'; -import 'package:ui_kit/components/image/gf_image_overlay.dart'; -import 'package:ui_kit/position/gf_position.dart'; - -enum GFCardType { basic, social, image} - +import 'package:getflutter/components/button/gf_button_bar.dart'; +import 'package:getflutter/components/list_tile/gf_list_tile.dart'; +import 'package:getflutter/components/image/gf_image_overlay.dart'; +import 'package:getflutter/position/gf_position.dart'; +export 'package:getflutter/position/gf_position.dart'; + +/// A material design card. A card has slightly rounded corners and a shadow. +/// +/// A card is a sheet of [Material] used to represent some related information, +/// for example an album, a geographical location, a meal, contact details, etc. class GFCard extends StatelessWidget { - - const GFCard({ - Key key, - this.color, - this.elevation, - this.shape, - this.borderOnForeground = true, - this.padding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0), - this.margin, - this.clipBehavior, - this.semanticContainer, - this.title, - this.content, - this.image, - this.buttonBar, - this.imageOverlay, - this.titlePosition, - this.borderRadius, - this.border, - this.boxFit, - this.colorFilter - }) : assert(elevation == null || elevation >= 0.0), + /// Creates a material design card. + /// + /// The [elevation] must be null or non-negative. The [borderOnForeground] + /// must not be null. + const GFCard( + {Key key, + this.color, + this.elevation, + this.shape, + this.borderOnForeground = true, + this.padding = + const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0), + this.margin, + this.clipBehavior, + this.semanticContainer, + this.title, + this.content, + this.image, + this.buttonBar, + this.imageOverlay, + this.titlePosition, + this.borderRadius, + this.border, + this.boxFit, + this.colorFilter}) + : assert(elevation == null || elevation >= 0.0), assert(borderOnForeground != null), super(key: key); @@ -71,6 +78,7 @@ class GFCard extends StatelessWidget { final Image image; /// overlay image [GFImageOverlay] widget can be used + /// to display image with shaded overlay final ImageProvider imageOverlay; /// widget can be used to define buttons bar, see [GFButtonBar] @@ -79,6 +87,7 @@ class GFCard extends StatelessWidget { /// How the image should be inscribed into the box. /// The default is [BoxFit.scaleDown] if [centerSlice] is null, and /// [BoxFit.fill] if [centerSlice] is not null. + /// [boxFit] for only [GFImageOverlay] final BoxFit boxFit; /// A color filter to apply to the image before painting it. @@ -99,11 +108,18 @@ class GFCard extends StatelessWidget { Widget cardChild = Column( children: [ - titlePosition == GFPosition.start ? title != null ? title : Container() : image != null ? ClipRRect( - borderRadius: BorderRadius.vertical(top: Radius.circular(4.0)), - child: image, - ): Container(), - titlePosition == GFPosition.start ? image != null ? image : Container(): title != null ? title : Container(), + titlePosition == GFPosition.start + ? title != null ? title : Container() + : image != null + ? ClipRRect( + borderRadius: + BorderRadius.vertical(top: Radius.circular(4.0)), + child: image, + ) + : Container(), + titlePosition == GFPosition.start + ? image != null ? image : Container() + : title != null ? title : Container(), Padding( padding: padding, child: content != null ? content : Container(), @@ -126,19 +142,18 @@ class GFCard extends StatelessWidget { return Container( margin: margin ?? cardTheme.margin ?? const EdgeInsets.all(16.0), child: Material( - type: MaterialType.card, - color: color ?? cardTheme.color ?? Theme.of(context).cardColor, - elevation: elevation ?? cardTheme.elevation ?? _defaultElevation, - shape: shape ?? cardTheme.shape ?? const RoundedRectangleBorder( - borderRadius: BorderRadius.all(Radius.circular(4.0)), - ), - borderOnForeground: borderOnForeground, - clipBehavior: clipBehavior ?? cardTheme.clipBehavior ?? _defaultClipBehavior, - child: imageOverlay == null ? cardChild : overlayImage - ), + type: MaterialType.card, + color: color ?? cardTheme.color ?? Theme.of(context).cardColor, + elevation: elevation ?? cardTheme.elevation ?? _defaultElevation, + shape: shape ?? + cardTheme.shape ?? + const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(4.0)), + ), + borderOnForeground: borderOnForeground, + clipBehavior: + clipBehavior ?? cardTheme.clipBehavior ?? _defaultClipBehavior, + child: imageOverlay == null ? cardChild : overlayImage), ); } } - - - diff --git a/lib/components/carousel/gf_carousel.dart b/lib/components/carousel/gf_carousel.dart index 3186c24e..9e5e913a 100644 --- a/lib/components/carousel/gf_carousel.dart +++ b/lib/components/carousel/gf_carousel.dart @@ -10,6 +10,7 @@ List map(List list, Function handler) { } class GFCarousel extends StatefulWidget { + /// Creates slide show of [Images] and [Widget] with animation for sliding. GFCarousel( {@required this.items, this.pagerSize, @@ -40,7 +41,6 @@ class GFCarousel extends StatefulWidget { enableInfiniteScroll ? realPage + initialPage : initialPage, ); - /// The pagination dots size can be defined using [double]. final double pagerSize; diff --git a/lib/components/carousel/gf_items_carousel.dart b/lib/components/carousel/gf_items_carousel.dart index 8a55b837..14fad191 100644 --- a/lib/components/carousel/gf_items_carousel.dart +++ b/lib/components/carousel/gf_items_carousel.dart @@ -1,54 +1,47 @@ -library carousel; - import 'dart:async'; - import 'package:flutter/material.dart'; -/// Signature for when a pointer has contacted the screen and has begun to move. +/// When a pointer has come to contact with screen and has begun to move. /// -/// The `details` object provides the position of the touch when it first +/// The function provides the position of the touch when it first /// touched the surface. typedef GFItemsCarouselSlideStartCallback = void Function( DragStartDetails details); -/// Signature for when a pointer that is in contact with the screen and moving +/// When a pointer that is in contact with the screen and moving /// has moved again. /// -/// The `details` object provides the position of the touch and the distance it +/// The function provides the position of the touch and the distance it /// has travelled since the last update. typedef GFItemsCarouselSlideCallback = void Function(DragUpdateDetails details); -/// Signature for when a pointer that was previously in contact with the screen +/// When a pointer that was previously in contact with the screen /// and moving is no longer in contact with the screen. /// /// The velocity at which the pointer was moving when it stopped contacting -/// the screen is available in the `details`. +/// the screen. typedef GFItemsCarouselSlideEndCallback = void Function(DragEndDetails details); -/// A widget that show draggable cells with animation. -/// -/// Set [rowCount] of visible cells -/// -/// Set drag handlers [onSlideStart], [onSlide], [onSlideEnd] -/// -/// Set left/right arrows [leftArrow], [rightArrow] class GFItemsCarousel extends StatefulWidget { /// Count of visible cells final int rowCount; + /// The widgets to be shown as sliders. final List children; - /// Signature for when a pointer has contacted the screen and has begun to move. + /// When a pointer has contacted the screen and has begun to move. final GFItemsCarouselSlideStartCallback onSlideStart; - /// Signature for when a pointer that is in contact with the screen and moving + /// When a pointer that is in contact with the screen and moving /// has moved again. final GFItemsCarouselSlideCallback onSlide; - /// Signature for when a pointer that was previously in contact with the screen + /// When a pointer that was previously in contact with the screen /// and moving is no longer in contact with the screen. final GFItemsCarouselSlideEndCallback onSlideEnd; + /// Creates slide show of [Images] and [Widget] with animation for sliding. + /// Shows multiple items on one slide, items number depends on rowCount. GFItemsCarousel( {this.rowCount, this.children, @@ -129,7 +122,7 @@ class _GFItemsCarouselState extends State double dx = details.velocity.pixelsPerSecond.dx; if (dx == 0) { - return this.runShiftAnimation(); + return this.slideAnimation(); } this.animationController = new AnimationController( @@ -146,7 +139,7 @@ class _GFItemsCarouselState extends State animation.addStatusListener((AnimationStatus status) { if (status == AnimationStatus.completed) { - this.runShiftAnimation(); + this.slideAnimation(); } }); @@ -160,7 +153,7 @@ class _GFItemsCarouselState extends State if (widget.onSlideEnd != null) widget.onSlideEnd(details); } - runShiftAnimation() { + slideAnimation() { double beginAnimation = this.offset; double endAnimation = this.size * (this.offset / this.size).round().toDouble(); diff --git a/lib/components/drawer/gf_drawer.dart b/lib/components/drawer/gf_drawer.dart index 1ebdaa3c..2b3d919a 100644 --- a/lib/components/drawer/gf_drawer.dart +++ b/lib/components/drawer/gf_drawer.dart @@ -45,77 +45,12 @@ const double _kWidth = 304.0; /// [GFDrawer] when a [GFDrawer] is available in the [Scaffold]. The [Scaffold] /// automatically handles the edge-swipe gesture to show the drawer. /// -/// {@animation 350 622 https://flutter.github.io/assets-for-api-docs/assets/material/drawer.mp4} -/// -/// {@tool sample} /// This example shows how to create a [Scaffold] that contains an [AppBar] and /// a [GFDrawer]. A user taps the "menu" icon in the [AppBar] to open the /// [GFDrawer]. The [GFDrawer] displays four items: A header and three menu items. /// The [GFDrawer] displays the four items using a [ListView], which allows the /// user to scroll through the items if need be. /// -/// ```dart -/// Scaffold( -/// appBar: AppBar( -/// title: const Text('GFDrawer Demo'), -/// ), -/// drawer: GFDrawer( -/// child: ListView( -/// padding: EdgeInsets.zero, -/// children: const [ -/// GFDrawerHeader( -/// decoration: BoxDecoration( -/// color: Colors.blue, -/// ), -/// child: Text( -/// 'GFDrawer Header', -/// style: TextStyle( -/// color: Colors.white, -/// fontSize: 24, -/// ), -/// ), -/// ), -/// ListTile( -/// leading: Icon(Icons.message), -/// title: Text('Messages'), -/// ), -/// ListTile( -/// leading: Icon(Icons.account_circle), -/// title: Text('Profile'), -/// ), -/// ListTile( -/// leading: Icon(Icons.settings), -/// title: Text('Settings'), -/// ), -/// ], -/// ), -/// ), -/// ) -/// ``` -/// {@end-tool} -/// -/// An open drawer can be closed by calling [Navigator.pop]. For example -/// a drawer item might close the drawer when tapped: -/// -/// ```dart -/// ListTile( -/// leading: Icon(Icons.change_history), -/// title: Text('Change history'), -/// onTap: () { -/// // change app state... -/// Navigator.pop(context); // close the drawer -/// }, -/// ); -/// ``` -/// -/// See also: -/// -/// * [Scaffold.drawer], where one specifies a [GFDrawer] so that it can be -/// shown. -/// * [Scaffold.of], to obtain the current [ScaffoldState], which manages the -/// display and animation of the drawer. -/// * [ScaffoldState.openGFDrawer], which displays its [GFDrawer]. -/// class GFDrawer extends StatelessWidget { /// Creates a material design drawer. /// diff --git a/lib/components/drawer/gf_drawer_header.dart b/lib/components/drawer/gf_drawer_header.dart index c56722c3..1315f46f 100644 --- a/lib/components/drawer/gf_drawer_header.dart +++ b/lib/components/drawer/gf_drawer_header.dart @@ -2,8 +2,8 @@ import 'package:flutter/widgets.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -class DrawerHeaderPictures extends StatelessWidget { - const DrawerHeaderPictures({ +class GFDrawerHeaderPictures extends StatelessWidget { + const GFDrawerHeaderPictures({ Key key, this.currentAccountPicture, this.otherAccountsPictures, @@ -58,10 +58,6 @@ class DrawerHeaderPictures extends StatelessWidget { /// /// Requires one of its ancestors to be a [Material] widget. /// -/// See also: -/// -/// * [DrawerHeader], for a drawer header that doesn't show user accounts. -/// * class GFDrawerHeader extends StatefulWidget { /// Creates a material design drawer header. /// @@ -134,7 +130,7 @@ class _GFDrawerHeaderState extends State { Expanded( child: Padding( padding: const EdgeInsetsDirectional.only(end: 16.0), - child: DrawerHeaderPictures( + child: GFDrawerHeaderPictures( currentAccountPicture: widget.currentAccountPicture, otherAccountsPictures: widget.otherAccountsPictures, ), diff --git a/lib/components/image/gf_image_overlay.dart b/lib/components/image/gf_image_overlay.dart index d41b24af..3bb66ea3 100644 --- a/lib/components/image/gf_image_overlay.dart +++ b/lib/components/image/gf_image_overlay.dart @@ -1,24 +1,28 @@ import 'dart:ui'; - import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +/// Creates a image widget with shaded overlay. class GFImageOverlay extends StatelessWidget { - const GFImageOverlay( - {Key key, - this.height, - this.width, - this.color, - this.padding, - this.margin, - this.image, - this.child, - this.alignment, - this.borderRadius, - this.colorFilter= const ColorFilter.mode(Colors.black26, BlendMode.colorBurn), - this.boxFit, - this.border}) - : super(key: key); + /// Creates a image widget with shaded overlay. + const GFImageOverlay({ + Key key, + this.height, + this.width, + this.color, + this.padding, + this.margin, + this.image, + this.child = const Text(""), + this.alignment, + this.borderRadius, + this.colorFilter = + const ColorFilter.mode(Colors.black26, BlendMode.colorBurn), + this.boxFit, + this.border, + this.shape = BoxShape.rectangle, + }) : assert(shape != null), + super(key: key); /// define image's [double] height final double height; @@ -32,7 +36,7 @@ class GFImageOverlay extends StatelessWidget { /// The empty space that surrounds the card. Defines the image's outer [Container.margin]. final EdgeInsetsGeometry margin; - /// The empty space that surrounds the card. Defines the image's outer [Container.margin].. + /// The empty space that surrounds the card. Defines the image's outer [Container.padding].. final EdgeInsetsGeometry padding; /// The [Image] widget used to display image @@ -50,14 +54,29 @@ class GFImageOverlay extends StatelessWidget { final BoxFit boxFit; /// A color filter to apply to the image before painting it. - final ColorFilter colorFilter ; + final ColorFilter colorFilter; - /// The corners of this [GFCard] are rounded by this [BorderRadius]. + /// The corners of this [GFImageOverlay] are rounded by this [BorderRadius]. final BorderRadiusGeometry borderRadius; - /// A border to draw above the [GFCard]. + /// A border to draw above the [GFImageOverlay]. final Border border; + /// The shape to fill the background [color], [gradient], and [image] into and + /// to cast as the [boxShadow]. + /// + /// If this is [BoxShape.circle] then [borderRadius] is ignored. + /// + /// The [shape] cannot be interpolated; animating between two [BoxDecoration]s + /// with different [shape]s will result in a discontinuity in the rendering. + /// To interpolate between two shapes, consider using [ShapeDecoration] and + /// different [ShapeBorder]s; in particular, [CircleBorder] instead of + /// [BoxShape.circle] and [RoundedRectangleBorder] instead of + /// [BoxShape.rectangle]. + /// + /// {@macro flutter.painting.boxDecoration.clip} + final BoxShape shape; + @override Widget build(BuildContext context) { return Container( @@ -68,11 +87,14 @@ class GFImageOverlay extends StatelessWidget { padding: padding, child: child, decoration: new BoxDecoration( + shape: shape, borderRadius: borderRadius, border: border, color: color, image: new DecorationImage( - fit: BoxFit.fill, colorFilter: child != null? colorFilter: null, image: image), + fit: BoxFit.fill, + colorFilter: child != null ? colorFilter : null, + image: image), ), ); } diff --git a/lib/components/list/gf_list.dart b/lib/components/list/gf_list.dart deleted file mode 100644 index bc2685b7..00000000 --- a/lib/components/list/gf_list.dart +++ /dev/null @@ -1,61 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; -import 'package:ui_kit/components/list_tile/gf_list_tile.dart'; -class GFList extends StatefulWidget { - - const GFList( - {Key key, - this.child, - this.text = 'Lorem ipsum', - this.icon = const Icon(Icons.keyboard_arrow_right), - this.textStyle, - this.showDivider= true - - }) - : super(key: key); - - - - final Widget child; - - final String text; - - final Widget icon; - - final TextStyle textStyle; - - final bool showDivider; - - - @override - _GFListState createState() => _GFListState(); -} - -class _GFListState extends State { - @override - Widget build(BuildContext context) { - return Container( - height: MediaQuery.of(context).size.height, - width: MediaQuery.of(context).size.width, - margin: EdgeInsets.only(left: 10), - padding: EdgeInsets.only(right: 5, top: 10), - child:ListView.builder( - shrinkWrap: true, -// scrollDirection: Axis.horizontal, -// itemCount: 0, - itemBuilder: (BuildContext context, int index) { - return Container( -// height: MediaQuery.of(context).size.height, -// width: MediaQuery.of(context).size.width, - child: GFListTile( - title: Text('j'), - avatar: GFAvatar(), - ), - ); - } - - -) - ); - } -} diff --git a/lib/components/list_tile/gf_list_tile.dart b/lib/components/list_tile/gf_list_tile.dart index 3062478a..1d46fc40 100644 --- a/lib/components/list_tile/gf_list_tile.dart +++ b/lib/components/list_tile/gf_list_tile.dart @@ -1,11 +1,11 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/avatar/gf_avatar.dart'; +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/components/avatar/gf_avatar.dart'; class GFListTile extends StatelessWidget { - /// The card's background color. - final Color color; + /// The GFListTile's background color. Can be given [Colors] or [GFColor] + final dynamic color; /// type of [Widget] or [GFAvatar] used to create rounded user profile final Widget avatar; @@ -16,10 +16,10 @@ class GFListTile extends StatelessWidget { /// The subTitle to display inside the [GFListTile]. see [Text] final Widget subTitle; - /// The descriprion to display inside the [GFListTile]. see [Text] + /// The description to display inside the [GFListTile]. see [Text] final Widget description; - /// The descriprion to display inside the [GFListTile]. see [Text] + /// The description to display inside the [GFListTile]. see [Text] final Widget trailing; /// The icon to display inside the [GFListTile]. see [Icon] @@ -28,7 +28,7 @@ class GFListTile extends StatelessWidget { ///type of [bool] corresponds to true or false to show or hide the divider final bool showDivider; - /// The empty space that surrounds the card. Defines the card's outer [Container.margin].. + /// The empty space that surrounds the card. Defines the card's outer [Container.padding].. final EdgeInsetsGeometry padding; /// The divider's height extent. @@ -65,17 +65,9 @@ class GFListTile extends StatelessWidget { /// /// If this is null, then the [DividerThemeData.color] is used. If that is /// also null, then [ThemeData.dividerColor] is used. - /// - /// {@tool sample} - /// - /// ```dart - /// Divider( - /// color: Colors.deepOrange, - /// ) - /// ``` - /// {@end-tool} final Color dividerColor; + /// Creates ListTile with leading, title, trailing, image widget for almost every type of ListTile design. const GFListTile( {Key key, this.color, @@ -118,7 +110,7 @@ class GFListTile extends StatelessWidget { description ?? Container() ], ) - : null, + : Container(), trailing: icon != null ? Column( children: [ @@ -126,7 +118,7 @@ class GFListTile extends StatelessWidget { padding: EdgeInsets.only(top: 16.0), child: icon) ], ) - : null), + : Container()), ), showDivider ? Divider( diff --git a/lib/components/search_bar/gf_search_bar.dart b/lib/components/search_bar/gf_search_bar.dart index e69de29b..4ce4e8a1 100644 --- a/lib/components/search_bar/gf_search_bar.dart +++ b/lib/components/search_bar/gf_search_bar.dart @@ -0,0 +1,8 @@ +import 'package:flutter/material.dart'; + +class GFSearchBar extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Container(); + } +} diff --git a/lib/components/tabs/gf_segment_tabs.dart b/lib/components/tabs/gf_segment_tabs.dart index 93039dd3..1f6119d8 100644 --- a/lib/components/tabs/gf_segment_tabs.dart +++ b/lib/components/tabs/gf_segment_tabs.dart @@ -2,36 +2,40 @@ import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; - +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/components/tabs/gf_tabBar.dart'; +import 'package:getflutter/colors/gf_color.dart'; +/// Creates pills like structured tab bar. See [GFTabBar] +/// [GFSegmentTabs] are best used as an alternative for [GFTabBar]. class GFSegmentTabs extends StatefulWidget { - GFSegmentTabs({ - Key key, - this.initialIndex = 0, - @required this.length, - this.height, - this.width, - this.border, - this.borderRadius, - this.tabBarColor, - this.indicatorColor, - this.indicatorWeight = 2.0, - this.indicatorPadding = EdgeInsets.zero, - this.indicator, - this.indicatorSize, - this.labelColor, - this.labelStyle, - this.labelPadding, - this.unselectedLabelColor, - this.unselectedLabelStyle, - this.tabBarView, - this.tabs, - this.tabController - }): - assert(length != null && length >= 0), - assert(initialIndex != null && initialIndex >= 0 && (length == 0 || initialIndex < length)); + /// Creates pills like structured tab bar. See [GFTabBar] + /// [GFSegmentTabs] are best used as an alternative for [GFTabBar]. + GFSegmentTabs( + {Key key, + this.initialIndex = 0, + @required this.length, + this.height, + this.width, + this.border, + this.borderRadius, + this.tabBarColor, + this.indicatorColor, + this.indicatorWeight = 2.0, + this.indicatorPadding = EdgeInsets.zero, + this.indicator, + this.indicatorSize, + this.labelColor, + this.labelStyle, + this.labelPadding, + this.unselectedLabelColor, + this.unselectedLabelStyle, + this.tabs, + this.tabController}) + : assert(length != null && length >= 0), + assert(initialIndex != null && + initialIndex >= 0 && + (length == 0 || initialIndex < length)); /// The initial index of the selected tab. Defaults to zero. final int initialIndex; @@ -139,11 +143,6 @@ class GFSegmentTabs extends StatefulWidget { /// body2 definition is used. final TextStyle unselectedLabelStyle; - /// One widget per tab. - /// Its length must match the length of the [GFSegmentTabs.tabs] - /// list, as well as the [controller]'s [GFSegmentTabs.length]. - final GFTabBarView tabBarView; - /// Typically a list of two or more [Tab] widgets. /// /// The length of this list must match the [controller]'s [TabController.length] @@ -166,30 +165,49 @@ class _GFSegmentTabsState extends State { height: widget.height == null ? 28.0 : widget.height, width: widget.width == null ? 240.0 : widget.width, decoration: BoxDecoration( - border: widget.border == null ? Border.all(color: getGFColor(GFColor.primary), width:1.0) : widget.border, - borderRadius: widget.borderRadius == null ? BorderRadius.circular(2.0) : widget.borderRadius, + border: widget.border == null + ? Border.all(color: getGFColor(GFColor.primary), width: 1.0) + : widget.border, + borderRadius: widget.borderRadius == null + ? BorderRadius.circular(2.0) + : widget.borderRadius, ), child: DefaultTabController( initialIndex: widget.initialIndex, length: widget.length, child: Material( - borderRadius: widget.borderRadius == null ? BorderRadius.circular(2.0) : widget.borderRadius, + borderRadius: widget.borderRadius == null + ? BorderRadius.circular(2.0) + : widget.borderRadius, type: MaterialType.button, color: widget.tabBarColor ?? Colors.transparent, child: TabBar( controller: widget.tabController, labelColor: widget.labelColor ?? getGFColor(GFColor.white), - unselectedLabelColor: widget.unselectedLabelColor ?? getGFColor(GFColor.primary), + unselectedLabelColor: + widget.unselectedLabelColor ?? getGFColor(GFColor.primary), labelStyle: widget.labelStyle ?? TextStyle(fontSize: 12.0), - unselectedLabelStyle: widget.unselectedLabelStyle ?? TextStyle(fontSize: 12.0), - indicatorColor: widget.indicatorColor == null ? getGFColor(GFColor.primary) : widget.indicatorColor, + unselectedLabelStyle: + widget.unselectedLabelStyle ?? TextStyle(fontSize: 12.0), + indicatorColor: widget.indicatorColor == null + ? getGFColor(GFColor.primary) + : widget.indicatorColor, indicatorSize: widget.indicatorSize, - indicator: widget.indicator == null ? - BoxDecoration( - color: widget.indicatorColor == null ? getGFColor(GFColor.primary) : widget.indicatorColor, - border: Border.all(color: widget.indicatorColor == null ? Colors.transparent : widget.indicatorColor, width: 2.0), - borderRadius: widget.borderRadius == null ? BorderRadius.circular(0.0) : widget.borderRadius, - ) : widget.indicator, + indicator: widget.indicator == null + ? BoxDecoration( + color: widget.indicatorColor == null + ? getGFColor(GFColor.primary) + : widget.indicatorColor, + border: Border.all( + color: widget.indicatorColor == null + ? Colors.transparent + : widget.indicatorColor, + width: 2.0), + borderRadius: widget.borderRadius == null + ? BorderRadius.circular(0.0) + : widget.borderRadius, + ) + : widget.indicator, indicatorPadding: widget.indicatorPadding, indicatorWeight: widget.indicatorWeight, tabs: widget.tabs, @@ -199,20 +217,3 @@ class _GFSegmentTabsState extends State { ); } } - - - - - - - - - - - - - - - - - diff --git a/lib/components/tabs/gf_tabBar.dart b/lib/components/tabs/gf_tabBar.dart index 80bb68f3..f8a16835 100644 --- a/lib/components/tabs/gf_tabBar.dart +++ b/lib/components/tabs/gf_tabBar.dart @@ -2,10 +2,20 @@ import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/components/tabs/gf_tabBarView.dart'; +import 'package:getflutter/colors/gf_color.dart'; + +/// A material design widget that displays a horizontal row of tabs. +/// +/// Typically created as the [AppBar.bottom] part of an [AppBar] and in +/// conjunction with a [TabBarView]. class GFTabBar extends StatefulWidget { + /// Creates a material design tab bar. + /// + /// The [tabs] argument must not be null and its length must match the [controller]'s + /// [TabController.length]. GFTabBar({ Key key, this.initialIndex = 0, @@ -25,9 +35,10 @@ class GFTabBar extends StatefulWidget { this.tabBarView, this.tabs, this.controller, - }): - assert(length != null && length >= 0), - assert(initialIndex != null && initialIndex >= 0 && (length == 0 || initialIndex < length)); + }) : assert(length != null && length >= 0), + assert(initialIndex != null && + initialIndex >= 0 && + (length == 0 || initialIndex < length)); /// The initial index of the selected tab. Defaults to zero. final int initialIndex; @@ -156,7 +167,9 @@ class _GFTabBarState extends State { @override Widget build(BuildContext context) { return Container( - height: widget.tabBarHeight == null ? MediaQuery.of(context).size.height * 0.1 : widget.tabBarHeight, + height: widget.tabBarHeight == null + ? MediaQuery.of(context).size.height * 0.1 + : widget.tabBarHeight, child: Material( type: MaterialType.button, color: widget.tabBarColor ?? getGFColor(GFColor.primary), @@ -177,20 +190,3 @@ class _GFTabBarState extends State { ); } } - - - - - - - - - - - - - - - - - diff --git a/lib/components/tabs/gf_tabBarView.dart b/lib/components/tabs/gf_tabBarView.dart index 88bf9beb..9b170925 100644 --- a/lib/components/tabs/gf_tabBarView.dart +++ b/lib/components/tabs/gf_tabBarView.dart @@ -3,19 +3,13 @@ import 'dart:async'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/gestures.dart' show DragStartBehavior; +import 'package:getflutter/components/tabs/gf_segment_tabs.dart'; /// A page view that displays the widget which corresponds to the currently /// selected tab. /// -/// This widget is typically used in conjunction with a [TabBar]. +/// This widget is typically used in conjunction with a [GFTabBar] or [GFSegmentTabs]. /// -/// If a [TabController] is not provided, then there must be a [DefaultTabController] -/// ancestor. -/// -/// The tab controller's [TabController.length] must equal the length of the -/// [children] list and the length of the [TabBar.tabs] list. -/// -/// To see a sample implementation, visit the [TabController] documentation. class GFTabBarView extends StatefulWidget { /// Creates a page view with one child per tab. /// @@ -27,19 +21,16 @@ class GFTabBarView extends StatefulWidget { this.physics, this.height, this.dragStartBehavior = DragStartBehavior.start, - }) : assert(children != null), + }) : assert(children != null), assert(dragStartBehavior != null), super(key: key); /// This widget's selection and animation state. - /// - /// If [TabController] is not provided, then the value of [DefaultTabController.of] - /// will be used. final TabController controller; /// One widget per tab. /// - /// Its length must match the length of the [TabBar.tabs] + /// Its length must match the length of the [GFTabBar.tabs] /// list, as well as the [controller]'s [TabController.length]. final List children; @@ -64,7 +55,8 @@ class GFTabBarView extends StatefulWidget { _GFTabBarViewState createState() => _GFTabBarViewState(); } -final PageScrollPhysics _kGFTabBarViewPhysics = const PageScrollPhysics().applyTo(const ClampingScrollPhysics()); +final PageScrollPhysics _kGFTabBarViewPhysics = + const PageScrollPhysics().applyTo(const ClampingScrollPhysics()); class _GFTabBarViewState extends State { TabController _controller; @@ -80,22 +72,20 @@ class _GFTabBarViewState extends State { bool get _controllerIsValid => _controller?.animation != null; void _updateTabController() { - final TabController newController = widget.controller ?? DefaultTabController.of(context); + final TabController newController = + widget.controller ?? DefaultTabController.of(context); assert(() { if (newController == null) { - throw FlutterError( - 'No TabController for ${widget.runtimeType}.\n' - 'When creating a ${widget.runtimeType}, you must either provide an explicit ' - 'TabController using the "controller" property, or you must ensure that there ' - 'is a DefaultTabController above the ${widget.runtimeType}.\n' - 'In this case, there was neither an explicit controller nor a default controller.' - ); + throw FlutterError('No TabController for ${widget.runtimeType}.\n' + 'When creating a ${widget.runtimeType}, you must either provide an explicit ' + 'TabController using the "controller" property, or you must ensure that there ' + 'is a DefaultTabController above the ${widget.runtimeType}.\n' + 'In this case, there was neither an explicit controller nor a default controller.'); } return true; }()); - if (newController == _controller) - return; + if (newController == _controller) return; if (_controllerIsValid) _controller.animation.removeListener(_handleTabControllerAnimationTick); @@ -121,8 +111,7 @@ class _GFTabBarViewState extends State { @override void didUpdateWidget(GFTabBarView oldWidget) { super.didUpdateWidget(oldWidget); - if (widget.controller != oldWidget.controller) - _updateTabController(); + if (widget.controller != oldWidget.controller) _updateTabController(); if (widget.children != oldWidget.children && _warpUnderwayCount == 0) _updateChildren(); } @@ -152,20 +141,19 @@ class _GFTabBarViewState extends State { } Future _warpToCurrentIndex() async { - if (!mounted) - return Future.value(); + if (!mounted) return Future.value(); if (_pageController.page == _currentIndex.toDouble()) return Future.value(); final int previousIndex = _controller.previousIndex; if ((_currentIndex - previousIndex).abs() == 1) - return _pageController.animateToPage(_currentIndex, duration: kTabScrollDuration, curve: Curves.ease); + return _pageController.animateToPage(_currentIndex, + duration: kTabScrollDuration, curve: Curves.ease); assert((_currentIndex - previousIndex).abs() > 1); - final int initialPage = _currentIndex > previousIndex - ? _currentIndex - 1 - : _currentIndex + 1; + final int initialPage = + _currentIndex > previousIndex ? _currentIndex - 1 : _currentIndex + 1; final List originalChildren = _childrenWithKey; setState(() { _warpUnderwayCount += 1; @@ -177,9 +165,9 @@ class _GFTabBarViewState extends State { }); _pageController.jumpToPage(initialPage); - await _pageController.animateToPage(_currentIndex, duration: kTabScrollDuration, curve: Curves.ease); - if (!mounted) - return Future.value(); + await _pageController.animateToPage(_currentIndex, + duration: kTabScrollDuration, curve: Curves.ease); + if (!mounted) return Future.value(); setState(() { _warpUnderwayCount -= 1; if (widget.children != _children) { @@ -192,19 +180,19 @@ class _GFTabBarViewState extends State { // Called when the PageView scrolls bool _handleScrollNotification(ScrollNotification notification) { - if (_warpUnderwayCount > 0) - return false; + if (_warpUnderwayCount > 0) return false; - if (notification.depth != 0) - return false; + if (notification.depth != 0) return false; _warpUnderwayCount += 1; - if (notification is ScrollUpdateNotification && !_controller.indexIsChanging) { + if (notification is ScrollUpdateNotification && + !_controller.indexIsChanging) { if ((_pageController.page - _controller.index).abs() > 1.0) { _controller.index = _pageController.page.floor(); - _currentIndex =_controller.index; + _currentIndex = _controller.index; } - _controller.offset = (_pageController.page - _controller.index).clamp(-1.0, 1.0); + _controller.offset = + (_pageController.page - _controller.index).clamp(-1.0, 1.0); } else if (notification is ScrollEndNotification) { _controller.index = _pageController.page.round(); _currentIndex = _controller.index; @@ -220,23 +208,25 @@ class _GFTabBarViewState extends State { if (_controller.length != widget.children.length) { throw FlutterError( 'Controller\'s length property (${_controller.length}) does not match the \n' - 'number of tabs (${widget.children.length}) present in TabBar\'s tabs property.' - ); + 'number of tabs (${widget.children.length}) present in TabBar\'s tabs property.'); } return true; }()); return NotificationListener( onNotification: _handleScrollNotification, child: Container( - height: widget.height == null ? MediaQuery.of(context).size.height : widget.height, + height: widget.height == null + ? MediaQuery.of(context).size.height + : widget.height, child: PageView( dragStartBehavior: widget.dragStartBehavior, controller: _pageController, - physics: widget.physics == null ? _kGFTabBarViewPhysics : _kGFTabBarViewPhysics.applyTo(widget.physics), + physics: widget.physics == null + ? _kGFTabBarViewPhysics + : _kGFTabBarViewPhysics.applyTo(widget.physics), children: _childrenWithKey, ), ), ); } } - diff --git a/lib/components/tabs/gf_tabs.dart b/lib/components/tabs/gf_tabs.dart index d588e6b7..a480db2e 100644 --- a/lib/components/tabs/gf_tabs.dart +++ b/lib/components/tabs/gf_tabs.dart @@ -2,11 +2,25 @@ import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/components/tabs/gf_tabBarView.dart'; -import 'package:ui_kit/components/tabs/gf_tabBar.dart'; +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/components/tabs/gf_tabBarView.dart'; +import 'package:getflutter/components/tabs/gf_tabBar.dart'; +import 'package:getflutter/colors/gf_color.dart'; + +/// Creates a default tab for the given [child] widget. +/// +/// The [length] argument is typically greater than one. The [length] must +/// match [GFTabBar.tabs]'s and [GFTabBarView.children]'s length. +/// +/// The [initialIndex] argument must not be null. class GFTabs extends StatefulWidget { + /// Creates a default tab for the given [child] widget. + /// + /// The [length] argument is typically greater than one. The [length] must + /// match [GFTabBar.tabs]'s and [GFTabBarView.children]'s length. + /// + /// The [initialIndex] argument must not be null. GFTabs({ Key key, this.initialIndex = 0, @@ -27,9 +41,10 @@ class GFTabs extends StatefulWidget { this.tabs, this.controller, this.tabBarHeight, - }): - assert(length != null && length >= 0), - assert(initialIndex != null && initialIndex >= 0 && (length == 0 || initialIndex < length)); + }) : assert(length != null && length >= 0), + assert(initialIndex != null && + initialIndex >= 0 && + (length == 0 || initialIndex < length)); /// The initial index of the selected tab. Defaults to zero. final int initialIndex; @@ -164,7 +179,9 @@ class _GFTabsState extends State { initialIndex: widget.initialIndex, length: widget.length, child: Container( - height: widget.height == null ? MediaQuery.of(context).size.height * 0.5 : widget.height, + height: widget.height == null + ? MediaQuery.of(context).size.height * 0.5 + : widget.height, child: Column( children: [ GFTabBar( @@ -184,9 +201,7 @@ class _GFTabsState extends State { indicatorWeight: widget.indicatorWeight, tabs: widget.tabs, ), - Expanded( - child: widget.tabBarView - ), + Expanded(child: widget.tabBarView), ], ), ), @@ -194,20 +209,3 @@ class _GFTabsState extends State { ); } } - - - - - - - - - - - - - - - - - diff --git a/lib/components/toast/gf_floating_widget.dart b/lib/components/toast/gf_floating_widget.dart index ad46e41c..b6fa7076 100644 --- a/lib/components/toast/gf_floating_widget.dart +++ b/lib/components/toast/gf_floating_widget.dart @@ -1,6 +1,9 @@ import 'package:flutter/material.dart'; +import 'package:getflutter/components/toast/gf_toast.dart'; class GFFloatingWidget extends StatefulWidget { + /// Creates a Floating body can be used to display the quick messages, warning and erros. + /// Inside floating widget [GFToast] can be used as body. See [GFToast] const GFFloatingWidget( {Key key, this.child, diff --git a/lib/components/toast/gf_toast.dart b/lib/components/toast/gf_toast.dart index c4b1f294..3fc3843c 100644 --- a/lib/components/toast/gf_toast.dart +++ b/lib/components/toast/gf_toast.dart @@ -1,11 +1,12 @@ import 'dart:async'; - import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:ui_kit/colors/gf_color.dart'; +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/components/toast/gf_floating_widget.dart'; class GFToast extends StatefulWidget { - /// + ///Creates [GFToast] that can be used to display quick warning or error messages. + /// Toast has to be wrap inside the body like [GFFloatingWidget]. See [GFFloatingWidget] GFToast({ Key key, this.child, diff --git a/lib/components/toggle/gf_toggle.dart b/lib/components/toggle/gf_toggle.dart index 1b02b34a..3afe42eb 100644 --- a/lib/components/toggle/gf_toggle.dart +++ b/lib/components/toggle/gf_toggle.dart @@ -1,8 +1,20 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import '../../types/gf_toggle_type.dart'; - +export '../../types/gf_toggle_type.dart'; + +/// A toggle button allows the user to change a setting between two states. +/// +/// The state of each button is controlled by [isSelected], which is a list of bools that determine +/// if a button is in an unselected or selected state. They are both +/// correlated by their index in the list. The length of [isSelected] has to +/// match the length of the [children] list. +/// +/// ## Customizing toggle buttons +/// Each toggle's behavior can be configured by the [onPressed] callback, which +/// can update the [isSelected] list however it wants to. class GFToggle extends StatefulWidget { + /// Creates toggle button to switch between states onChanged. GFToggle( {Key key, @required this.onChanged, @@ -33,7 +45,7 @@ class GFToggle extends StatefulWidget { ///type of [TextStyle] used to define the style peoperties of the disabled text final TextStyle disabledTextStyle; -// ///type of [Color] used for the active thumb color + ///type of [Color] used for the active thumb color final Color enabledThumbColor; ///type of [Color] used for the inactive thumb color @@ -85,10 +97,9 @@ class _GFToggleState extends State with TickerProviderStateMixin { @override void dispose() { - if(animationController!=null) animationController.dispose(); - if(controller!=null) controller.dispose(); + if (animationController != null) animationController.dispose(); + if (controller != null) controller.dispose(); super.dispose(); - } @override diff --git a/lib/components/typography/gf_typography.dart b/lib/components/typography/gf_typography.dart index 389112db..d510bfc1 100644 --- a/lib/components/typography/gf_typography.dart +++ b/lib/components/typography/gf_typography.dart @@ -1,11 +1,14 @@ import 'package:flutter/material.dart'; -import 'package:ui_kit/colors/gf_color.dart'; -import 'package:ui_kit/types/gf_typography_type.dart'; +import 'package:getflutter/colors/gf_color.dart'; +import 'package:getflutter/types/gf_typography_type.dart'; +export 'package:getflutter/types/gf_typography_type.dart'; class GFTypography extends StatelessWidget { + /// Creates simple title with underline. Style of title can be changed using [GFTypographyType] + /// showDivider is default true, can be set false. const GFTypography( {Key key, - this.type = GFTypographyType.typo4, + this.type = GFTypographyType.typo4, this.child, this.text, this.icon, @@ -19,9 +22,6 @@ class GFTypography extends StatelessWidget { this.backgroundImagecolorFilter}) : super(key: key); - - - /// child of type [Widget] is alternative to text key. text will get priority over child final Widget child; @@ -52,29 +52,28 @@ class GFTypography extends StatelessWidget { ///backgroundImage of type [ImageProvider] to set the background of [GFTypography] final ImageProvider backgroundImage; - ///backgroundImagecolorFilter of type [ColorFilter] to set the background color of [GFTypography] only when backgroundImage is available + ///backgroundImagecolorFilter of type [ColorFilter] to set the + ///background color of [GFTypography] only when backgroundImage is available final ColorFilter backgroundImagecolorFilter; - /// header type of [GFTypographyType] i.e, typo1, typo2, typo3, typo4, typo5, typo6 final GFTypographyType type; @override Widget build(BuildContext context) { - double fontSize; - if(type == GFTypographyType.typo1){ + if (type == GFTypographyType.typo1) { fontSize = 25.0; - }else if(type == GFTypographyType.typo2){ + } else if (type == GFTypographyType.typo2) { fontSize = 22.0; - }else if (type == GFTypographyType.typo3){ + } else if (type == GFTypographyType.typo3) { fontSize = 19.0; - }else if(type == GFTypographyType.typo4){ + } else if (type == GFTypographyType.typo4) { fontSize = 17.0; - }else if (type == GFTypographyType.typo5){ + } else if (type == GFTypographyType.typo5) { fontSize = 15.0; - }else if(type == GFTypographyType.typo6){ + } else if (type == GFTypographyType.typo6) { fontSize = 13.0; } @@ -100,18 +99,19 @@ class GFTypography extends StatelessWidget { ? Padding(padding: EdgeInsets.only(left: 10)) : Container(), text != null - ? Expanded(child: Text( - text, - style: TextStyle( - color: textColor != null - ? getGFColor(textColor) - : backgroundImage != null - ? Colors.white - : Colors.black, - fontSize: fontSize, - letterSpacing: 0.3, - fontWeight: FontWeight.w500), - )) + ? Expanded( + child: Text( + text, + style: TextStyle( + color: textColor != null + ? getGFColor(textColor) + : backgroundImage != null + ? Colors.white + : Colors.black, + fontSize: fontSize, + letterSpacing: 0.3, + fontWeight: FontWeight.w500), + )) : child ], ), @@ -121,7 +121,7 @@ class GFTypography extends StatelessWidget { alignment: dividerAlignment, child: Container( width: dividerWidth != null ? dividerWidth : 70, - height: fontSize/5, + height: fontSize / 5, decoration: BoxDecoration( color: dividerColor != null ? getGFColor(dividerColor) diff --git a/lib/position/gf_position.dart b/lib/position/gf_position.dart index fc17b7c7..170851bb 100644 --- a/lib/position/gf_position.dart +++ b/lib/position/gf_position.dart @@ -1 +1,9 @@ -enum GFPosition { start, end } +/// [GFPosition] is used to position the icon, badges to start or end of the button +/// See [GFButton] and [GFButtonBadge] +enum GFPosition { + /// [GFPosition.start] is used to place icon, badges to start of the [GFButton] and [GFButtonBadge] + start, + + /// [GFPosition.end] is used to place icon, badges to end of the [GFButton] and [GFButtonBadge] + end +} diff --git a/lib/shape/gf_avatar_shape.dart b/lib/shape/gf_avatar_shape.dart index 57733004..dc2ad23a 100644 --- a/lib/shape/gf_avatar_shape.dart +++ b/lib/shape/gf_avatar_shape.dart @@ -1 +1,11 @@ -enum GFAvatarShape { standard, square, circle } \ No newline at end of file +/// [GFAvatarShape] is used to shape the [GFAvatar] widget. +enum GFAvatarShape { + /// Default shape is [GFAvatarShape.circle], used for rounded avatar + circle, + + /// [GFAvatarShape.standard], used for square avatar with rounded corners + standard, + + /// [GFAvatarShape.square], used for square avatar + square, +} diff --git a/lib/shape/gf_badge_shape.dart b/lib/shape/gf_badge_shape.dart index f2f18678..30040ba4 100644 --- a/lib/shape/gf_badge_shape.dart +++ b/lib/shape/gf_badge_shape.dart @@ -1 +1,14 @@ -enum GFBadgeShape { standard, pills, square, circle } +/// [GFBadgeShape] is used to shape the [GFBadge] widget. +enum GFBadgeShape { + /// [GFBadgeShape.circle], used for rounded shape badge + circle, + + /// [GFBadgeShape.pills], used for pills shaped badge with rounded corners + pills, + + /// Default shape is [GFBadgeShape.standard], used for standard rectangle badge with rounded corners + standard, + + /// [GFBadgeShape.square], used for square badge + square, +} diff --git a/lib/shape/gf_button_shape.dart b/lib/shape/gf_button_shape.dart index 0febabbf..a1234696 100644 --- a/lib/shape/gf_button_shape.dart +++ b/lib/shape/gf_button_shape.dart @@ -1 +1,11 @@ -enum GFButtonShape { standard, pills, square } +/// [GFButtonShape] is used to shape the [GFButton] widget. +enum GFButtonShape { + /// [GFButtonShape.pills], used for pills shaped button with rounded corners + pills, + + /// Default shape is [GFButtonShape.standard], used for standard rectangle button with rounded corners + standard, + + /// [GFButtonShape.square], used for square button + square, +} diff --git a/lib/shape/gf_icon_button_shape.dart b/lib/shape/gf_icon_button_shape.dart index c6633dbc..a0779550 100644 --- a/lib/shape/gf_icon_button_shape.dart +++ b/lib/shape/gf_icon_button_shape.dart @@ -1 +1,14 @@ -enum GFIconButtonShape { standard, pills, square, circle } \ No newline at end of file +/// [GFIconButtonShape] is used to shape the [GFIconButton] widget. +enum GFIconButtonShape { + /// [GFIconButtonShape.circle], used for rounded shape icon button + circle, + + /// [GFIconButtonShape.pills], used for pills shaped icon button with rounded corners + pills, + + /// Default shape is [GFIconButtonShape.standard], used for standard rectangle icon button with rounded corners + standard, + + /// [GFIconButtonShape.square], used for square icon button + square, +} diff --git a/lib/size/gf_size.dart b/lib/size/gf_size.dart index f5d36f1c..fba39977 100644 --- a/lib/size/gf_size.dart +++ b/lib/size/gf_size.dart @@ -1,4 +1,14 @@ -enum GFSize { small, medium, large } +/// [GFSize] is used to change the size of the widget. +enum GFSize { + /// [GFSize.small] is used for small size widget + small, + + /// Default size if [GFSize.medium] is used for medium size widget + medium, + + /// [GFSize.large] is used for large size widget + large, +} const double SMALL = 30.0; const double MEDIUM = 35.0; diff --git a/lib/types/gf_toggle_type.dart b/lib/types/gf_toggle_type.dart index f34acd17..b72d255e 100644 --- a/lib/types/gf_toggle_type.dart +++ b/lib/types/gf_toggle_type.dart @@ -1 +1,14 @@ -enum GFToggleType { android, ios, custom, square } +/// [GFToggleType] is used to change the shape of +enum GFToggleType { + /// [GFToggleType.android] is used for basic toggle shape of android mode + android, + + /// [GFToggleType.custom] is used to change the shape of [GFToggle] + custom, + + /// [GFToggleType.ios] is used for basic toggle shape of ios mode + ios, + + /// [GFToggleType.square] is used for square shape of [GFToggle] + square +} diff --git a/lib/types/gf_type.dart b/lib/types/gf_type.dart index 1a40249c..88475acf 100644 --- a/lib/types/gf_type.dart +++ b/lib/types/gf_type.dart @@ -1 +1,14 @@ -enum GFType { solid, outline, outline2x, transparent } +/// [GFType] is used to change the type of widgets +enum GFType { + /// Default type is [GFType.solid], used to fill with color for widget + solid, + + /// Type [GFType.outline], used for widget with outline border and fill color with Colors.transparent + outline, + + /// Type [GFType.outline2x], used for widget with outline2x border and border.width = 2.0 and fill color with Colors.transparent + outline2x, + + /// Type [GFType.transparent], used for widget with fill color with Colors.transparent + transparent +} diff --git a/lib/types/gf_typography_type.dart b/lib/types/gf_typography_type.dart index ddcd579d..e16b21c9 100644 --- a/lib/types/gf_typography_type.dart +++ b/lib/types/gf_typography_type.dart @@ -1 +1,20 @@ -enum GFTypographyType { typo1, typo2, typo3, typo4, typo5, typo6 } \ No newline at end of file +/// [GFTypographyType] is used to change the type of [GFTypography] title widget. +enum GFTypographyType { + /// [GFTypographyType.typo1] type used for title widget with fontSize = 25.0 + typo1, + + /// [GFTypographyType.typo2] type used for title widget with fontSize = 22.0 + typo2, + + /// [GFTypographyType.typo3] type used for title widget with fontSize = 19.0 + typo3, + + /// [GFTypographyType.typo4] type used for title widget with fontSize = 17.0 + typo4, + + /// [GFTypographyType.typo5] type used for title widget with fontSize = 15.0 + typo5, + + /// [GFTypographyType.typo6] type used for title widget with fontSize = 13.0 + typo6 +} diff --git a/pubspec.yaml b/pubspec.yaml index 72d09fbf..c796eb6d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ -name: ui_kit -description: A new Flutter package project. -version: 0.0.1 -author: test +name: getflutter +description: GetFlutter is open source libraries that come with pre-build 1000+ UI components. We build this library to make flutter development faster and more enjoyable. You can customize the component as you will build own app without UI knowledge. +version: 0.0.1-pre.3 +#author: GetFlutter homepage: https://github.com/ionicfirebaseapp/getflutter environment: