Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Jul 2, 2020
2 parents 647b518 + ebc8c52 commit f29ce3c
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ PODS:
- device_info (0.0.1):
- Flutter
- Flutter (1.0.0)
- flutter_displaymode (0.0.1):
- Flutter
- flutter_inapp_purchase (0.0.1):
- Flutter
- flutter_plugin_android_lifecycle (0.0.1):
Expand Down Expand Up @@ -56,6 +58,7 @@ PODS:
DEPENDENCIES:
- device_info (from `.symlinks/plugins/device_info/ios`)
- Flutter (from `Flutter`)
- flutter_displaymode (from `.symlinks/plugins/flutter_displaymode/ios`)
- flutter_inapp_purchase (from `.symlinks/plugins/flutter_inapp_purchase/ios`)
- flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
- image_picker (from `.symlinks/plugins/image_picker/ios`)
Expand Down Expand Up @@ -89,6 +92,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/device_info/ios"
Flutter:
:path: Flutter
flutter_displaymode:
:path: ".symlinks/plugins/flutter_displaymode/ios"
flutter_inapp_purchase:
:path: ".symlinks/plugins/flutter_inapp_purchase/ios"
flutter_plugin_android_lifecycle:
Expand Down Expand Up @@ -139,6 +144,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_displaymode: e1847a4c70dc07d58798a06f3db57cef6ecf6422
flutter_inapp_purchase: 5c6a1ac3f11b11d0c8c0321c0c41c1f05805e4c8
flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
Expand Down
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 35;
CURRENT_PROJECT_VERSION = 37;
DEVELOPMENT_TEAM = L9F8ZWCR8Z;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -387,7 +387,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.12;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.perol.pixez;
PRODUCT_NAME = PixEz;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -510,7 +510,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 35;
CURRENT_PROJECT_VERSION = 37;
DEVELOPMENT_TEAM = L9F8ZWCR8Z;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -523,7 +523,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.12;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.perol.pixez;
PRODUCT_NAME = PixEz;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -539,7 +539,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 35;
CURRENT_PROJECT_VERSION = 37;
DEVELOPMENT_TEAM = L9F8ZWCR8Z;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -552,7 +552,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.12;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.perol.pixez;
PRODUCT_NAME = PixEz;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down
5 changes: 3 additions & 2 deletions lib/page/about/about_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ class _AboutPageState extends State<AboutPage> {
title: Text(I18n.of(context).Thanks),
subtitle: Text('感谢帮助我测试的弹幕委员会群友们'),
onTap: () {
if(Platform.isAndroid)
Navigator.of(context).push(MaterialPageRoute(
builder: (_) => Scaffold(
appBar: AppBar(),
Expand All @@ -323,7 +324,7 @@ class _AboutPageState extends State<AboutPage> {
}
},
),
...[
...Platform.isAndroid?[
ListTile(
title: Text('如果你觉得这个应用还不错'),
subtitle: Text('支持一下开发者吧!'),
Expand Down Expand Up @@ -354,7 +355,7 @@ class _AboutPageState extends State<AboutPage> {
},
),
),
],
]:[],
...(Platform.isIOS)
? [
Card(
Expand Down
48 changes: 35 additions & 13 deletions lib/page/hello/hello_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ class _HelloPageState extends State<HelloPage> {
@override
void dispose() {
_sub?.cancel();
_pageController?.dispose();
super.dispose();
}

PageController _pageController;
@override
void initState() {
_pageController = PageController();
super.initState();
saveStore.saveStream.listen((stream) {
listenBehavior(context, stream);
Expand Down Expand Up @@ -128,8 +131,8 @@ class _HelloPageState extends State<HelloPage> {
} catch (e) {
print(e);
}
var prefs = await SharedPreferences.getInstance();
if (prefs.getInt('language_num') == null) {
var prefs = await SharedPreferences.getInstance();
if (prefs.getInt('language_num') == null) {
Navigator.of(context)
.pushReplacement(MaterialPageRoute(builder: (context) => InitPage()));
}
Expand All @@ -141,17 +144,35 @@ class _HelloPageState extends State<HelloPage> {
Widget build(BuildContext context) {
return Scaffold(
body: Observer(builder: (_) {
return IndexedStack(
index: index,
children: accountStore.now != null
? <Widget>[
RecomSpolightPage(),
NewPage(),
SearchPage(),
SettingPage()
]
: [PreviewPage(), NewPage(), SearchPage(), SettingPage()],
);
return accountStore.now != null
? PageView.builder(
controller: _pageController,
onPageChanged: (index) {
setState(() {
this.index = index;
});
},
itemBuilder: (context, index) {
var lists = <Widget>[
RecomSpolightPage(),
NewPage(),
SearchPage(),
SettingPage()
];

return lists[index];
})
: PageView.builder(
controller: _pageController,
itemBuilder: (context, index) {
var lists = [
PreviewPage(),
NewPage(),
SearchPage(),
SettingPage()
];
return lists[index];
});
}),
bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
Expand All @@ -160,6 +181,7 @@ class _HelloPageState extends State<HelloPage> {
setState(() {
this.index = index;
});
_pageController.jumpToPage(index);
},
items: [
BottomNavigationBarItem(
Expand Down
3 changes: 2 additions & 1 deletion lib/page/hello/ranking/ranking_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class _RankingPageState extends State<RankingPage>
"week",
"month",
"day_r18",
"week_r18"
"week_r18",
"week_r18g"
];
var boolList = Map<String, bool>();

Expand Down
3 changes: 2 additions & 1 deletion lib/page/hello/recom/recom_spotlight_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import 'package:pixez/component/spotlight_card.dart';
import 'package:pixez/generated/l10n.dart';
import 'package:pixez/lighting/lighting_store.dart';
import 'package:pixez/network/api_client.dart';
import 'package:pixez/page/hello/ranking/rank_page.dart';
import 'package:pixez/page/hello/ranking/ranking_page.dart';
import 'package:pixez/page/hello/recom/spotlight_store.dart';
import 'package:pixez/page/spotlight/spotlight_page.dart';
Expand Down Expand Up @@ -209,7 +210,7 @@ class _RecomSpolightPageState extends State<RecomSpolightPage>
Navigator.of(context)
.push(MaterialPageRoute(builder: (BuildContext context) {
return Scaffold(
body: RankingPage(),
body: RankPage(),
);
}));
},
Expand Down
4 changes: 4 additions & 0 deletions lib/page/hello/setting/setting_quality_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
*
*/

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:pixez/generated/l10n.dart';
Expand All @@ -38,6 +40,7 @@ class _SettingQualityPageState extends State<SettingQualityPage>
InkWell(
onTap: () {
try {
if(Platform.isAndroid)
launch('https://github.com/itzXian');
} catch (e) {}
},
Expand All @@ -59,6 +62,7 @@ class _SettingQualityPageState extends State<SettingQualityPage>
InkWell(
onTap: () {
try {
if(Platform.isAndroid)
launch('https://github.com/TragicLifeHu');
} catch (e) {}
},
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: A new Flutter project.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.12+35
version: 1.1.0+37

environment:
sdk: ">=2.2.2 <3.0.0"
Expand Down

0 comments on commit f29ce3c

Please sign in to comment.