Skip to content

Commit 12b5485

Browse files
author
wangjiawei601996
committed
feat: 分离多个dart子页面;手势管理;
1 parent 7daecf5 commit 12b5485

File tree

7 files changed

+242
-183
lines changed

7 files changed

+242
-183
lines changed

flutter_app/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ SPEC CHECKSUMS:
3131

3232
PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
3333

34-
COCOAPODS: 1.9.1
34+
COCOAPODS: 1.8.4

flutter_app/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
2E61A3C58ABF4DB6EE9558DC /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 86BDEE60667385D8AEE33CFC /* Pods_Runner.framework */; };
1212
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
14-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1513
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
16-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
17-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1814
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1915
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
2016
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
@@ -27,8 +23,6 @@
2723
dstPath = "";
2824
dstSubfolderSpec = 10;
2925
files = (
30-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
3226
);
3327
name = "Embed Frameworks";
3428
runOnlyForDeploymentPostprocessing = 0;
@@ -40,15 +34,13 @@
4034
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
4135
2A4DA0EE231B15E6647B3409 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
4236
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
43-
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
4437
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
4538
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4639
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4740
86BDEE60667385D8AEE33CFC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4841
89F94192D0ABBA9729F22431 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
4942
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
5043
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
51-
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
5244
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
5345
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5446
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
@@ -62,8 +54,6 @@
6254
isa = PBXFrameworksBuildPhase;
6355
buildActionMask = 2147483647;
6456
files = (
65-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
66-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
6757
2E61A3C58ABF4DB6EE9558DC /* Pods_Runner.framework in Frameworks */,
6858
);
6959
runOnlyForDeploymentPostprocessing = 0;
@@ -78,7 +68,6 @@
7868
89F94192D0ABBA9729F22431 /* Pods-Runner.release.xcconfig */,
7969
2A4DA0EE231B15E6647B3409 /* Pods-Runner.profile.xcconfig */,
8070
);
81-
name = Pods;
8271
path = Pods;
8372
sourceTree = "<group>";
8473
};
@@ -93,9 +82,7 @@
9382
9740EEB11CF90186004384FC /* Flutter */ = {
9483
isa = PBXGroup;
9584
children = (
96-
3B80C3931E831B6300D905FE /* App.framework */,
9785
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
98-
9740EEBA1CF902C7004384FC /* Flutter.framework */,
9986
9740EEB21CF90195004384FC /* Debug.xcconfig */,
10087
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
10188
9740EEB31CF90195004384FC /* Generated.xcconfig */,
@@ -230,7 +217,7 @@
230217
);
231218
runOnlyForDeploymentPostprocessing = 0;
232219
shellPath = /bin/sh;
233-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
220+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
234221
};
235222
80C75ABBF8DEF5D13C6E8F29 /* [CP] Embed Pods Frameworks */ = {
236223
isa = PBXShellScriptBuildPhase;
@@ -386,7 +373,7 @@
386373
"$(inherited)",
387374
"$(PROJECT_DIR)/Flutter",
388375
);
389-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterapp;
376+
PRODUCT_BUNDLE_IDENTIFIER = com.jiawei.flutter;
390377
PRODUCT_NAME = "$(TARGET_NAME)";
391378
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
392379
SWIFT_VERSION = 5.0;
@@ -520,7 +507,7 @@
520507
"$(inherited)",
521508
"$(PROJECT_DIR)/Flutter",
522509
);
523-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterapp;
510+
PRODUCT_BUNDLE_IDENTIFIER = com.jiawei.flutter;
524511
PRODUCT_NAME = "$(TARGET_NAME)";
525512
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
526513
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -547,7 +534,7 @@
547534
"$(inherited)",
548535
"$(PROJECT_DIR)/Flutter",
549536
);
550-
PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterapp;
537+
PRODUCT_BUNDLE_IDENTIFIER = com.jiawei.flutter;
551538
PRODUCT_NAME = "$(TARGET_NAME)";
552539
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
553540
SWIFT_VERSION = 5.0;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

flutter_app/lib/MyInkWell.dart

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import 'package:flutter/material.dart';
2+
3+
class MyInkwellApp extends StatelessWidget {
4+
@override
5+
Widget build(BuildContext context) {
6+
// TODO: implement build
7+
final title = '水波示例';
8+
return new MaterialApp(
9+
title: title,
10+
home: new MyInwellHomePage(title: title,),
11+
);
12+
}
13+
}
14+
15+
class MyInwellHomePage extends StatelessWidget {
16+
final String title;
17+
MyInwellHomePage({Key key, this.title}) : super(key: key);
18+
@override
19+
Widget build(BuildContext context) {
20+
// TODO: implement build
21+
return Scaffold(
22+
appBar: AppBar(
23+
title: Text(title),
24+
),
25+
body: Center(
26+
child: MyButton(),
27+
),
28+
);
29+
}
30+
}
31+
32+
class MyButton extends StatelessWidget {
33+
@override
34+
Widget build(BuildContext context) {
35+
// TODO: implement build
36+
return InkWell(
37+
onTap: () {
38+
Scaffold.of(context).showSnackBar(SnackBar(content: Text('水波特许爱'),));
39+
},
40+
child: Container(
41+
padding: EdgeInsets.all(12.0),
42+
child: Text(
43+
'水波按钮'
44+
),
45+
),
46+
);
47+
}
48+
}

0 commit comments

Comments
 (0)