Skip to content

Commit 5eb0680

Browse files
author
Julian Currie
committed
added intl pkg, replaced FlatButton with TextButton for Flutter 2
1 parent 932baa1 commit 5eb0680

File tree

7 files changed

+71
-54
lines changed

7 files changed

+71
-54
lines changed

ios/Flutter/.last_build_id

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1a1a381ead1ef7899cf6d3ddded5560d

ios/Flutter/Flutter.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# NOTE: This podspec is NOT to be published. It is only used as a local source!
3+
#
4+
5+
Pod::Spec.new do |s|
6+
s.name = 'Flutter'
7+
s.version = '1.0.0'
8+
s.summary = 'High-performance, high-fidelity mobile apps.'
9+
s.description = <<-DESC
10+
Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS.
11+
DESC
12+
s.homepage = 'https://flutter.io'
13+
s.license = { :type => 'MIT' }
14+
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
15+
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
16+
s.ios.deployment_target = '8.0'
17+
s.vendored_frameworks = 'Flutter.framework'
18+
end

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1412
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1713
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
1814
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1915
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
@@ -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;
@@ -39,13 +33,11 @@
3933
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4034
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
4135
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
42-
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
4336
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
4437
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4538
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4639
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4740
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
48-
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
4941
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
5042
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5143
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
@@ -58,8 +50,6 @@
5850
isa = PBXFrameworksBuildPhase;
5951
buildActionMask = 2147483647;
6052
files = (
61-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
62-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
6353
);
6454
runOnlyForDeploymentPostprocessing = 0;
6555
};
@@ -69,9 +59,7 @@
6959
9740EEB11CF90186004384FC /* Flutter */ = {
7060
isa = PBXGroup;
7161
children = (
72-
3B80C3931E831B6300D905FE /* App.framework */,
7362
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
74-
9740EEBA1CF902C7004384FC /* Flutter.framework */,
7563
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7664
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
7765
9740EEB31CF90195004384FC /* Generated.xcconfig */,
@@ -203,7 +191,7 @@
203191
);
204192
runOnlyForDeploymentPostprocessing = 0;
205193
shellPath = /bin/sh;
206-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
194+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
207195
};
208196
9740EEB61CF901F6004384FC /* Run Script */ = {
209197
isa = PBXShellScriptBuildPhase;
@@ -255,7 +243,6 @@
255243
/* Begin XCBuildConfiguration section */
256244
249021D3217E4FDB00AE95B9 /* Profile */ = {
257245
isa = XCBuildConfiguration;
258-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
259246
buildSettings = {
260247
ALWAYS_SEARCH_USER_PATHS = NO;
261248
CLANG_ANALYZER_NONNULL = YES;
@@ -331,7 +318,6 @@
331318
};
332319
97C147031CF9000F007C117D /* Debug */ = {
333320
isa = XCBuildConfiguration;
334-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
335321
buildSettings = {
336322
ALWAYS_SEARCH_USER_PATHS = NO;
337323
CLANG_ANALYZER_NONNULL = YES;
@@ -387,7 +373,6 @@
387373
};
388374
97C147041CF9000F007C117D /* Release */ = {
389375
isa = XCBuildConfiguration;
390-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
391376
buildSettings = {
392377
ALWAYS_SEARCH_USER_PATHS = NO;
393378
CLANG_ANALYZER_NONNULL = YES;

ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/widget/cheetah_button.dart

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,24 @@ class CheetahButton extends StatelessWidget {
1313

1414
@override
1515
Widget build(BuildContext context) {
16-
return FlatButton(
17-
padding: EdgeInsets.all(16),
18-
color: Theme.of(context).primaryColor,
19-
child: Text(
20-
text,
21-
style: TextStyle(
22-
fontSize: 16,
23-
color: Colors.white,
16+
return Expanded(
17+
child: TextButton(
18+
style: TextButton.styleFrom(
19+
padding: EdgeInsets.all(16),
20+
elevation: 8,
21+
backgroundColor: Theme.of(context).primaryColor,
22+
shape: RoundedRectangleBorder(
23+
borderRadius: BorderRadius.all(Radius.circular(10)),
24+
),
2425
),
25-
),
26-
onPressed: onPressed,
27-
shape: RoundedRectangleBorder(
28-
borderRadius: BorderRadius.all(Radius.circular(10)),
26+
child: Text(
27+
text,
28+
style: TextStyle(
29+
fontSize: 16,
30+
color: Colors.white,
31+
),
32+
),
33+
onPressed: onPressed,
2934
),
3035
);
3136
}

pubspec.lock

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,56 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0-nullsafety.1"
10+
version: "2.5.0"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
1414
name: boolean_selector
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.1.0-nullsafety.1"
17+
version: "2.1.0"
1818
characters:
1919
dependency: transitive
2020
description:
2121
name: characters
2222
url: "https://pub.dartlang.org"
2323
source: hosted
24-
version: "1.1.0-nullsafety.3"
24+
version: "1.1.0"
2525
charcode:
2626
dependency: transitive
2727
description:
2828
name: charcode
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "1.2.0-nullsafety.1"
31+
version: "1.2.0"
3232
clock:
3333
dependency: transitive
3434
description:
3535
name: clock
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "1.1.0-nullsafety.1"
38+
version: "1.1.0"
3939
collection:
4040
dependency: transitive
4141
description:
4242
name: collection
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.15.0-nullsafety.3"
45+
version: "1.15.0"
4646
cupertino_icons:
4747
dependency: "direct main"
4848
description:
4949
name: cupertino_icons
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "0.1.2"
52+
version: "1.0.2"
5353
fake_async:
5454
dependency: transitive
5555
description:
5656
name: fake_async
5757
url: "https://pub.dartlang.org"
5858
source: hosted
59-
version: "1.2.0-nullsafety.1"
59+
version: "1.2.0"
6060
flutter:
6161
dependency: "direct main"
6262
description: flutter
@@ -67,41 +67,48 @@ packages:
6767
description: flutter
6868
source: sdk
6969
version: "0.0.0"
70+
intl:
71+
dependency: "direct main"
72+
description:
73+
name: intl
74+
url: "https://pub.dartlang.org"
75+
source: hosted
76+
version: "0.17.0"
7077
matcher:
7178
dependency: transitive
7279
description:
7380
name: matcher
7481
url: "https://pub.dartlang.org"
7582
source: hosted
76-
version: "0.12.10-nullsafety.1"
83+
version: "0.12.10"
7784
meta:
7885
dependency: transitive
7986
description:
8087
name: meta
8188
url: "https://pub.dartlang.org"
8289
source: hosted
83-
version: "1.3.0-nullsafety.3"
90+
version: "1.3.0"
8491
nested:
8592
dependency: transitive
8693
description:
8794
name: nested
8895
url: "https://pub.dartlang.org"
8996
source: hosted
90-
version: "0.0.4"
97+
version: "1.0.0"
9198
path:
9299
dependency: transitive
93100
description:
94101
name: path
95102
url: "https://pub.dartlang.org"
96103
source: hosted
97-
version: "1.8.0-nullsafety.1"
104+
version: "1.8.0"
98105
provider:
99106
dependency: "direct main"
100107
description:
101108
name: provider
102109
url: "https://pub.dartlang.org"
103110
source: hosted
104-
version: "4.3.3"
111+
version: "5.0.0"
105112
sky_engine:
106113
dependency: transitive
107114
description: flutter
@@ -113,56 +120,56 @@ packages:
113120
name: source_span
114121
url: "https://pub.dartlang.org"
115122
source: hosted
116-
version: "1.8.0-nullsafety.2"
123+
version: "1.8.0"
117124
stack_trace:
118125
dependency: transitive
119126
description:
120127
name: stack_trace
121128
url: "https://pub.dartlang.org"
122129
source: hosted
123-
version: "1.10.0-nullsafety.1"
130+
version: "1.10.0"
124131
stream_channel:
125132
dependency: transitive
126133
description:
127134
name: stream_channel
128135
url: "https://pub.dartlang.org"
129136
source: hosted
130-
version: "2.1.0-nullsafety.1"
137+
version: "2.1.0"
131138
string_scanner:
132139
dependency: transitive
133140
description:
134141
name: string_scanner
135142
url: "https://pub.dartlang.org"
136143
source: hosted
137-
version: "1.1.0-nullsafety.1"
144+
version: "1.1.0"
138145
term_glyph:
139146
dependency: transitive
140147
description:
141148
name: term_glyph
142149
url: "https://pub.dartlang.org"
143150
source: hosted
144-
version: "1.2.0-nullsafety.1"
151+
version: "1.2.0"
145152
test_api:
146153
dependency: transitive
147154
description:
148155
name: test_api
149156
url: "https://pub.dartlang.org"
150157
source: hosted
151-
version: "0.2.19-nullsafety.2"
158+
version: "0.2.19"
152159
typed_data:
153160
dependency: transitive
154161
description:
155162
name: typed_data
156163
url: "https://pub.dartlang.org"
157164
source: hosted
158-
version: "1.3.0-nullsafety.3"
165+
version: "1.3.0"
159166
vector_math:
160167
dependency: transitive
161168
description:
162169
name: vector_math
163170
url: "https://pub.dartlang.org"
164171
source: hosted
165-
version: "2.1.0-nullsafety.3"
172+
version: "2.1.0"
166173
sdks:
167-
dart: ">=2.10.0-110 <2.11.0"
168-
flutter: ">=1.16.0 <2.0.0"
174+
dart: ">=2.12.0-0.0 <3.0.0"
175+
flutter: ">=1.16.0"

pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ environment:
1919
dependencies:
2020
flutter:
2121
sdk: flutter
22-
provider: ^4.3.3
22+
provider: ^5.0.0
23+
intl: ^0.17.0
2324

2425
# The following adds the Cupertino Icons font to your application.
2526
# Use with the CupertinoIcons class for iOS style icons.
26-
cupertino_icons: ^0.1.2
27+
cupertino_icons: ^1.0.2
2728

2829
dev_dependencies:
2930
flutter_test:

0 commit comments

Comments
 (0)