Skip to content

Commit faaee88

Browse files
committed
run ios fix style
1 parent 55161fe commit faaee88

File tree

4 files changed

+89
-3
lines changed

4 files changed

+89
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686

8787
### 进行中:
8888

89-
* IOS未测试
9089
* 主页drawer:个人信息
9190
* 仓库的:|版本|tag|下载、克隆
9291
* 本地数据库

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
12+
3B1CF5E1D5F3697BA6D5E888 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC05E0EDBFF42659F21BDE4B /* Pods_Runner.framework */; };
1213
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1314
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
1415
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
@@ -54,6 +55,7 @@
5455
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5556
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
5657
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
58+
BC05E0EDBFF42659F21BDE4B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5759
/* End PBXFileReference section */
5860

5961
/* Begin PBXFrameworksBuildPhase section */
@@ -63,12 +65,20 @@
6365
files = (
6466
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
6567
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
68+
3B1CF5E1D5F3697BA6D5E888 /* Pods_Runner.framework in Frameworks */,
6669
);
6770
runOnlyForDeploymentPostprocessing = 0;
6871
};
6972
/* End PBXFrameworksBuildPhase section */
7073

7174
/* Begin PBXGroup section */
75+
547008C5C91FE4BDD08FA652 /* Pods */ = {
76+
isa = PBXGroup;
77+
children = (
78+
);
79+
name = Pods;
80+
sourceTree = "<group>";
81+
};
7282
9740EEB11CF90186004384FC /* Flutter */ = {
7383
isa = PBXGroup;
7484
children = (
@@ -89,6 +99,8 @@
8999
9740EEB11CF90186004384FC /* Flutter */,
90100
97C146F01CF9000F007C117D /* Runner */,
91101
97C146EF1CF9000F007C117D /* Products */,
102+
547008C5C91FE4BDD08FA652 /* Pods */,
103+
9C6818AD15B2DCD007E4DFD4 /* Frameworks */,
92104
);
93105
sourceTree = "<group>";
94106
};
@@ -123,19 +135,29 @@
123135
name = "Supporting Files";
124136
sourceTree = "<group>";
125137
};
138+
9C6818AD15B2DCD007E4DFD4 /* Frameworks */ = {
139+
isa = PBXGroup;
140+
children = (
141+
BC05E0EDBFF42659F21BDE4B /* Pods_Runner.framework */,
142+
);
143+
name = Frameworks;
144+
sourceTree = "<group>";
145+
};
126146
/* End PBXGroup section */
127147

128148
/* Begin PBXNativeTarget section */
129149
97C146ED1CF9000F007C117D /* Runner */ = {
130150
isa = PBXNativeTarget;
131151
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
132152
buildPhases = (
153+
E055B1E414155455BC367B8B /* [CP] Check Pods Manifest.lock */,
133154
9740EEB61CF901F6004384FC /* Run Script */,
134155
97C146EA1CF9000F007C117D /* Sources */,
135156
97C146EB1CF9000F007C117D /* Frameworks */,
136157
97C146EC1CF9000F007C117D /* Resources */,
137158
9705A1C41CF9048500538489 /* Embed Frameworks */,
138159
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
160+
0CE87C2C48C36989195F6D5E /* [CP] Embed Pods Frameworks */,
139161
);
140162
buildRules = (
141163
);
@@ -197,6 +219,42 @@
197219
/* End PBXResourcesBuildPhase section */
198220

199221
/* Begin PBXShellScriptBuildPhase section */
222+
0CE87C2C48C36989195F6D5E /* [CP] Embed Pods Frameworks */ = {
223+
isa = PBXShellScriptBuildPhase;
224+
buildActionMask = 2147483647;
225+
files = (
226+
);
227+
inputPaths = (
228+
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
229+
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
230+
"${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework",
231+
"${BUILT_PRODUCTS_DIR}/connectivity/connectivity.framework",
232+
"${BUILT_PRODUCTS_DIR}/device_info/device_info.framework",
233+
"${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework",
234+
"${BUILT_PRODUCTS_DIR}/get_version/get_version.framework",
235+
"${BUILT_PRODUCTS_DIR}/package_info/package_info.framework",
236+
"${BUILT_PRODUCTS_DIR}/share/share.framework",
237+
"${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
238+
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
239+
);
240+
name = "[CP] Embed Pods Frameworks";
241+
outputPaths = (
242+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
243+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework",
244+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity.framework",
245+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info.framework",
246+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework",
247+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/get_version.framework",
248+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/package_info.framework",
249+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/share.framework",
250+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
251+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
252+
);
253+
runOnlyForDeploymentPostprocessing = 0;
254+
shellPath = /bin/sh;
255+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
256+
showEnvVarsInLog = 0;
257+
};
200258
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
201259
isa = PBXShellScriptBuildPhase;
202260
buildActionMask = 2147483647;
@@ -225,6 +283,24 @@
225283
shellPath = /bin/sh;
226284
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
227285
};
286+
E055B1E414155455BC367B8B /* [CP] Check Pods Manifest.lock */ = {
287+
isa = PBXShellScriptBuildPhase;
288+
buildActionMask = 2147483647;
289+
files = (
290+
);
291+
inputPaths = (
292+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
293+
"${PODS_ROOT}/Manifest.lock",
294+
);
295+
name = "[CP] Check Pods Manifest.lock";
296+
outputPaths = (
297+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
298+
);
299+
runOnlyForDeploymentPostprocessing = 0;
300+
shellPath = /bin/sh;
301+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
302+
showEnvVarsInLog = 0;
303+
};
228304
/* End PBXShellScriptBuildPhase section */
229305

230306
/* Begin PBXSourcesBuildPhase section */

ios/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/page/RepositoryDetailPage.dart

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> {
9696
}
9797

9898
_refresh() {
99-
this._getReposDetail();
10099
this._getReposStatus();
100+
this._getReposDetail();
101101
}
102102

103103
_renderBranchPopItem(String data, List<String> list, onSelected) {
@@ -217,8 +217,8 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> {
217217
@override
218218
void initState() {
219219
super.initState();
220-
_refresh();
221220
_getBranchList();
221+
_refresh();
222222
}
223223

224224
@override
@@ -232,36 +232,44 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> {
232232
///无奈之举,只能pageView配合tabbar,通过control同步
233233
///TabView 配合tabbar 在四个页面上问题太多
234234
new FlatButton(
235+
padding: EdgeInsets.all(0.0),
235236
onPressed: () {
236237
topPageControl.jumpTo(0.0);
237238
},
238239
child: new Text(
239240
GSYStrings.repos_tab_info,
240241
style: GSYConstant.smallTextWhite,
242+
maxLines: 1,
241243
)),
242244
new FlatButton(
245+
padding: EdgeInsets.all(0.0),
243246
onPressed: () {
244247
topPageControl.jumpTo(MediaQuery.of(context).size.width);
245248
},
246249
child: new Text(
247250
GSYStrings.repos_tab_readme,
248251
style: GSYConstant.smallTextWhite,
252+
maxLines: 1,
249253
)),
250254
new FlatButton(
255+
padding: EdgeInsets.all(0.0),
251256
onPressed: () {
252257
topPageControl.jumpTo(MediaQuery.of(context).size.width * 2);
253258
},
254259
child: new Text(
255260
GSYStrings.repos_tab_issue,
256261
style: GSYConstant.smallTextWhite,
262+
maxLines: 1,
257263
)),
258264
new FlatButton(
265+
padding: EdgeInsets.all(0.0),
259266
onPressed: () {
260267
topPageControl.jumpTo(MediaQuery.of(context).size.width * 3);
261268
},
262269
child: new Text(
263270
GSYStrings.repos_tab_file,
264271
style: GSYConstant.smallTextWhite,
272+
maxLines: 1,
265273
)),
266274
],
267275
tabViews: [

0 commit comments

Comments
 (0)