Skip to content

Commit 11381ed

Browse files
committed
fix example app not running
1 parent 140087a commit 11381ed

File tree

84 files changed

+2133
-371
lines changed

Some content is hidden

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

84 files changed

+2133
-371
lines changed

example/.gitignore

+11-40
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.buildlog/
99
.history
1010
.svn/
11+
migrate_working_dir/
1112

1213
# IntelliJ related
1314
*.iml
@@ -22,51 +23,21 @@
2223

2324
# Flutter/Dart/Pub related
2425
**/doc/api/
26+
**/ios/Flutter/.last_build_id
2527
.dart_tool/
2628
.flutter-plugins
27-
.packages
29+
.flutter-plugins-dependencies
2830
.pub-cache/
2931
.pub/
3032
/build/
3133

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
34+
# Symbolication related
35+
app.*.symbols
4036

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/ServiceDefinitions.json
65-
**/ios/Runner/GeneratedPluginRegistrant.*
37+
# Obfuscation related
38+
app.*.map.json
6639

67-
# Exceptions to above rules.
68-
!**/ios/**/default.mode1v3
69-
!**/ios/**/default.mode2v3
70-
!**/ios/**/default.pbxuser
71-
!**/ios/**/default.perspectivev3
72-
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release

example/.metadata

+37-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: bc7bc940836f1f834699625426795fd6f07c18ec
8-
channel: beta
7+
revision: "41456452f29d64e8deb623a3c927524bcf9f111b"
8+
channel: "stable"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
17+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
18+
- platform: android
19+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
20+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
21+
- platform: ios
22+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
23+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
24+
- platform: linux
25+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
26+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
27+
- platform: macos
28+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
29+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
30+
- platform: web
31+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
32+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
33+
- platform: windows
34+
create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
35+
base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/README.md

+6-168
Original file line numberDiff line numberDiff line change
@@ -1,178 +1,16 @@
1-
# liquid_swipe_example
1+
# example
22

3-
Demonstrates how to use the liquid_swipe plugin.
4-
5-
## Usage
6-
* Add this to your pubspec.yaml
7-
```
8-
dependencies:
9-
liquid_swipe: ^1.1.0
10-
11-
```
12-
* Get package from Pub:
13-
14-
```
15-
flutter packages get
16-
```
17-
* Import it in your file
18-
19-
```
20-
import 'package:liquid_swipe/liquid_swipe.dart';
21-
```
22-
23-
## Example
24-
25-
* First, create a list of Containers.
26-
```
27-
final pages = [
28-
Container(
29-
color: Colors.pink,
30-
child: Column(
31-
crossAxisAlignment: CrossAxisAlignment.center,
32-
mainAxisSize: MainAxisSize.max,
33-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
34-
children: <Widget>[
35-
Image.asset(
36-
'assets/1.png',
37-
fit: BoxFit.cover,
38-
),
39-
Padding(padding: const EdgeInsets.all(20.0)),
40-
Column(
41-
children: <Widget>[
42-
new Text(
43-
"Hi",
44-
style: TextStyle(
45-
fontSize: 30,
46-
fontFamily: "Billy",
47-
fontWeight: FontWeight.w600),
48-
),
49-
new Text(
50-
"It's Me",
51-
style: TextStyle(
52-
fontSize: 30,
53-
fontFamily: "Billy",
54-
fontWeight: FontWeight.w600),
55-
),
56-
new Text(
57-
"Sahdeep",
58-
style: TextStyle(
59-
fontSize: 30,
60-
fontFamily: "Billy",
61-
fontWeight: FontWeight.w600),
62-
),
63-
],
64-
)
65-
],
66-
),
67-
),
68-
Container(
69-
color: Colors.deepPurpleAccent,
70-
child: Column(
71-
crossAxisAlignment: CrossAxisAlignment.center,
72-
mainAxisSize: MainAxisSize.max,
73-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
74-
children: <Widget>[
75-
Image.asset(
76-
'assets/1.png',
77-
fit: BoxFit.cover,
78-
),
79-
Padding(padding: const EdgeInsets.all(20.0)),
80-
Column(
81-
children: <Widget>[
82-
new Text(
83-
"Take a",
84-
style: TextStyle(
85-
fontSize: 30,
86-
fontFamily: "Billy",
87-
fontWeight: FontWeight.w600),
88-
),
89-
new Text(
90-
"look at",
91-
style: TextStyle(
92-
fontSize: 30,
93-
fontFamily: "Billy",
94-
fontWeight: FontWeight.w600),
95-
),
96-
new Text(
97-
"Liquid Swipe",
98-
style: TextStyle(
99-
fontSize: 30,
100-
fontFamily: "Billy",
101-
fontWeight: FontWeight.w600),
102-
),
103-
],
104-
)
105-
],
106-
),
107-
),
108-
Container(
109-
color: Colors.greenAccent,
110-
child: Column(
111-
crossAxisAlignment: CrossAxisAlignment.center,
112-
mainAxisSize: MainAxisSize.max,
113-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
114-
children: <Widget>[
115-
Image.asset(
116-
'assets/1.png',
117-
fit: BoxFit.cover,
118-
),
119-
Padding(padding: const EdgeInsets.all(20.0)),
120-
Column(
121-
children: <Widget>[
122-
new Text(
123-
"Liked?",
124-
style: TextStyle(
125-
fontSize: 30,
126-
fontFamily: "Billy",
127-
fontWeight: FontWeight.w600),
128-
),
129-
new Text(
130-
"Fork!",
131-
style: TextStyle(
132-
fontSize: 30,
133-
fontFamily: "Billy",
134-
fontWeight: FontWeight.w600),
135-
),
136-
new Text(
137-
"Give Star!",
138-
style: TextStyle(
139-
fontSize: 30,
140-
fontFamily: "Billy",
141-
fontWeight: FontWeight.w600),
142-
),
143-
],
144-
)
145-
],
146-
),
147-
),
148-
];
149-
```
150-
151-
* Second, just pass it to Liquid Swipe Widget.
152-
```
153-
@override
154-
Widget build(BuildContext context) {
155-
return new MaterialApp(
156-
home: new Scaffold(
157-
body: LiquidSwipe(
158-
pages: pages,
159-
fullTransitionValue: 500,
160-
enableSlideIcon: true,
161-
)));
162-
}
163-
```
164-
* Remember pages can only be containers.
165-
* More Examples might come soon.
3+
A new Flutter project.
1664

1675
## Getting Started
1686

1697
This project is a starting point for a Flutter application.
1708

1719
A few resources to get you started if this is your first Flutter project:
17210

173-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
174-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
17513

176-
For help getting started with Flutter, view our
177-
[online documentation](https://flutter.dev/docs), which offers tutorials,
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
17816
samples, guidance on mobile development, and a full API reference.

example/android/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
99
# Remember to never publicly share your keystore.
1010
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
1111
key.properties
12+
**/*.keystore
13+
**/*.jks

example/android/app/build.gradle

+20-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,12 +22,19 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
26+
namespace "com.example.example"
2927
compileSdkVersion flutter.compileSdkVersion
28+
ndkVersion flutter.ndkVersion
29+
30+
compileOptions {
31+
sourceCompatibility JavaVersion.VERSION_1_8
32+
targetCompatibility JavaVersion.VERSION_1_8
33+
}
34+
35+
kotlinOptions {
36+
jvmTarget = '1.8'
37+
}
3038

3139
sourceSets {
3240
main.java.srcDirs += 'src/main/kotlin'
@@ -35,6 +43,8 @@ android {
3543
defaultConfig {
3644
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3745
applicationId "com.example.example"
46+
// You can update the following values to match your application needs.
47+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
3848
minSdkVersion flutter.minSdkVersion
3949
targetSdkVersion flutter.targetSdkVersion
4050
versionCode flutterVersionCode.toInteger()
@@ -54,6 +64,4 @@ flutter {
5464
source '../..'
5565
}
5666

57-
dependencies {
58-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59-
}
67+
dependencies {}

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.example">
3-
<!-- Flutter needs it to communicate with the running application
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
66
<uses-permission android:name="android.permission.INTERNET"/>

0 commit comments

Comments
 (0)