Skip to content

Commit aa80489

Browse files
committed
Update example
1 parent 1a20ae2 commit aa80489

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1055
-597
lines changed

example/.gitignore

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,14 @@
2424
**/doc/api/
2525
.dart_tool/
2626
.flutter-plugins
27+
.flutter-plugins-dependencies
2728
.packages
2829
.pub-cache/
2930
.pub/
3031
/build/
3132

32-
# Android related
33-
**/android/**/gradle-wrapper.jar
34-
**/android/.gradle
35-
**/android/captures/
36-
**/android/gradlew
37-
**/android/gradlew.bat
38-
**/android/local.properties
39-
**/android/**/GeneratedPluginRegistrant.java
40-
41-
# iOS/XCode related
42-
**/ios/**/*.mode1v3
43-
**/ios/**/*.mode2v3
44-
**/ios/**/*.moved-aside
45-
**/ios/**/*.pbxuser
46-
**/ios/**/*.perspectivev3
47-
**/ios/**/*sync/
48-
**/ios/**/.sconsign.dblite
49-
**/ios/**/.tags*
50-
**/ios/**/.vagrant/
51-
**/ios/**/DerivedData/
52-
**/ios/**/Icon?
53-
**/ios/**/Pods/
54-
**/ios/**/.symlinks/
55-
**/ios/**/profile
56-
**/ios/**/xcuserdata
57-
**/ios/.generated/
58-
**/ios/Flutter/App.framework
59-
**/ios/Flutter/Flutter.framework
60-
**/ios/Flutter/Generated.xcconfig
61-
**/ios/Flutter/app.flx
62-
**/ios/Flutter/app.zip
63-
**/ios/Flutter/flutter_assets/
64-
**/ios/Flutter/flutter_export_environment.sh
65-
**/ios/ServiceDefinitions.json
66-
**/ios/Runner/GeneratedPluginRegistrant.*
33+
# Web related
34+
lib/generated_plugin_registrant.dart
6735

6836
# Exceptions to above rules.
69-
!**/ios/**/default.mode1v3
70-
!**/ios/**/default.mode2v3
71-
!**/ios/**/default.pbxuser
72-
!**/ios/**/default.perspectivev3
7337
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

example/.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: 68587a0916366e9512a78df22c44163d041dd5f3
7+
revision: 27321ebbad34b0a3fafe99fac037102196d655ff
88
channel: stable
99

1010
project_type: app

example/.vscode/launch.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

example/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Demo App
2+
3+
[![Demo App](https://github.com/davigmacode/flutter_smart_select/tree/master/example/art/qr/apk.png "Demo App")](https://github.com/davigmacode/flutter_smart_select/tree/master/example/art/demo/SmartSelect.apk)
4+
5+
# Source Code
6+
7+
## Single Choice
8+
9+
* [Open in Full Page](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_single/single_page.dart)
10+
* [Open in Bottom Sheet](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_single/single_sheet.dart)
11+
* [Open in Popup Dialog](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_single/single_popup.dart)
12+
* [Use Chips](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_single/single_chips.dart)
13+
14+
## Multiple Choice
15+
16+
* [Open in Full Page](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_multi/multi_page.dart)
17+
* [Open in Bottom Sheet](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_multi/multi_sheet.dart)
18+
* [Open in Popup Dialog](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_multi/multi_popup.dart)
19+
* [Use Chips](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_multi/multi_chips.dart)
20+
* [Use Switches](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_multi/multi_switches.dart)
21+
22+
## Customize Tile
23+
24+
* [One Line](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_tile/tile_one_line.dart)
25+
* [Two Line](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_tile/tile_two_line.dart)
26+
* [Leading Widget](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_tile/tile_leading.dart)
27+
* [Custom Trailing Widget](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_tile/tile_trailing.dart)
28+
* [Loading Stats](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_tile/tile_loading.dart)
29+
* [Custom Tile Builder]((https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_tile/tile_builder.dart))
30+
31+
32+
## Customize Option
33+
34+
* [List of Map](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_option/option_list_of_map.dart)
35+
* [List of String](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_option/option_list_of_string.dart)
36+
* [List of List Of String](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_option/option_list_of_list.dart)
37+
* [Async Option & Custom Properties](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_option/option_async.dart)
38+
39+
## Customize Modal
40+
41+
* [Use Filter](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_modal/modal_filter.dart)
42+
* [Need to Confirm](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_modal/modal_confirm.dart)
43+
* [Modal Shape](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_modal/modal_shape.dart)
44+
* [Modal Header](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_modal/modal_header.dart)
45+
* [Without Header](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_modal/modal_headerless.dart)
46+
47+
## Customize Choices
48+
49+
* [Grouped Items](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_choices/choices_grouped.dart)
50+
* [Use Divider Between Item](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_choices/choices_divider.dart)
51+
* [Customize Theme](https://github.com/davigmacode/flutter_smart_select/blob/master/example/lib/features_choices/choices_theme.dart)

example/android/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ android {
3838

3939
defaultConfig {
4040
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41-
applicationId "com.example.example"
41+
applicationId "com.davigmacode.smartselect"
4242
minSdkVersion 16
4343
targetSdkVersion 28
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
46-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
46+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4747
}
4848

4949
buildTypes {
@@ -62,6 +62,6 @@ flutter {
6262
dependencies {
6363
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6464
testImplementation 'junit:junit:4.12'
65-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
66-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
65+
androidTestImplementation 'androidx.test:runner:1.1.1'
66+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
6767
}

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.example">
2+
package="com.davigmacode.smartselect">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.example">
3-
4-
<uses-permission android:name="android.permission.INTERNET"/>
5-
2+
package="com.davigmacode.smartselect">
63
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
74
calls FlutterMain.startInitialization(this); in its onCreate method.
85
In most cases you can leave this as-is, but you if you want to provide
96
additional functionality it is fine to subclass or reimplement
107
FlutterApplication and put your custom class here. -->
8+
<uses-permission android:name="android.permission.INTERNET"/>
119
<application
1210
android:name="io.flutter.app.FlutterApplication"
13-
android:label="example"
11+
android:label="Smart Select"
1412
android:icon="@mipmap/ic_launcher">
1513
<activity
1614
android:name=".MainActivity"
1715
android:launchMode="singleTop"
1816
android:theme="@style/LaunchTheme"
19-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
17+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
2018
android:hardwareAccelerated="true"
2119
android:windowSoftInputMode="adjustResize">
22-
<!-- This keeps the window background of the activity showing
23-
until Flutter renders its first frame. It can be removed if
24-
there is no splash screen (such as the default splash screen
25-
defined in @style/LaunchTheme). -->
26-
<meta-data
27-
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
28-
android:value="true" />
2920
<intent-filter>
3021
<action android:name="android.intent.action.MAIN"/>
3122
<category android:name="android.intent.category.LAUNCHER"/>
3223
</intent-filter>
3324
</activity>
25+
<!-- Don't delete the meta-data below.
26+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
27+
<meta-data
28+
android:name="flutterEmbedding"
29+
android:value="2" />
3430
</application>
3531
</manifest>

example/android/app/src/main/kotlin/com/example/example/MainActivity.kt

Lines changed: 0 additions & 13 deletions
This file was deleted.

example/android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.example">
2+
package="com.davigmacode.smartselect">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.2.71'
2+
ext.kotlin_version = '1.3.50'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.2.1'
9+
classpath 'com.android.tools.build:gradle:3.5.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

0 commit comments

Comments
 (0)