-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c76e1c
commit 584c755
Showing
67 changed files
with
765 additions
and
268 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
android/app/src/main/res/drawable-night-v21/launch_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item> | ||
| <bitmap android:gravity="fill" android:src="@drawable/background"/> | ||
| </item> | ||
| </layer-list> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
android/app/src/main/res/drawable-night/launch_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item> | ||
| <bitmap android:gravity="fill" android:src="@drawable/background"/> | ||
| </item> | ||
| </layer-list> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --> | ||
| <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
| <item name="android:forceDarkAllowed">false</item> | ||
| <item name="android:windowFullscreen">false</item> | ||
| <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> | ||
| <!-- <item name="android:windowSplashScreenBackground">#ffffff</item>--> | ||
| <!-- <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>--> | ||
| </style> | ||
| <!-- Theme applied to the Android Window as soon as the process has started. | ||
| This theme determines the color of the Android Window while your | ||
| Flutter UI initializes, as well as behind your Flutter UI while its | ||
| running. | ||
| This Theme is only used starting with V2 of Flutter's Android embedding. --> | ||
| <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
| <item name="android:windowBackground">?android:colorBackground</item> | ||
| </style> | ||
| </resources> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+156 KB
(1600%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+46 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+122 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+766 Bytes
(150%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-33 Bytes
(97%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+765 Bytes
(140%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.25 KB
(220%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+122 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.68 KB
(190%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.84 KB
(210%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.84 KB
(210%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.05 KB
(290%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.58 KB
(190%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.56 KB
(270%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.42 KB
(280%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "images" : [ | ||
| { | ||
| "filename" : "background.png", | ||
| "idiom" : "universal" | ||
| }, | ||
| { | ||
| "appearances" : [ | ||
| { | ||
| "appearance" : "luminosity", | ||
| "value" : "dark" | ||
| } | ||
| ], | ||
| "filename" : "darkbackground.png", | ||
| "idiom" : "universal" | ||
| } | ||
| ], | ||
| "info" : { | ||
| "author" : "xcode", | ||
| "version" : 1 | ||
| } | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69 Bytes
ios/Runner/Assets.xcassets/LaunchBackground.imageset/darkbackground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| import 'package:eoe_fans/common/Global.dart'; | ||
| import 'package:eoe_fans/models/member.dart'; | ||
| import 'package:eoe_fans/common/Global.dart'; | ||
| import 'package:eoe_fans/states/ProfileChangeNotifier.dart'; | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:provider/provider.dart'; | ||
| import 'package:settings_ui/settings_ui.dart'; | ||
|
|
||
| class SettingPage extends StatefulWidget { | ||
| const SettingPage({Key? key}) : super(key: key); | ||
|
|
||
| @override | ||
| State<SettingPage> createState() => _SettingPageState(); | ||
| } | ||
|
|
||
| class _SettingPageState extends State<SettingPage> { | ||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Scaffold( | ||
| appBar: AppBar( | ||
| leading: IconButton( | ||
| icon: const Icon( | ||
| Icons.arrow_back, | ||
| color: Colors.white, | ||
| ), | ||
| onPressed: () => Navigator.pop(context), | ||
| ), | ||
| title: const Text( | ||
| '设置', | ||
| style: TextStyle(color: Colors.white), | ||
| ), | ||
| flexibleSpace: Container( | ||
| height: double.maxFinite, | ||
| child: Image( | ||
| image: AssetImage( | ||
| 'assets/${Provider.of<ThemeModel>(context).assets}/head_bg.jpg'), | ||
| fit: BoxFit.cover, | ||
| ), | ||
| ), | ||
| ), | ||
| body: SettingsList( | ||
| sections: [ | ||
| SettingsSection( | ||
| title: Text('常规'), | ||
| tiles: <SettingsTile>[ | ||
| SettingsTile.navigation( | ||
| leading: Icon(Icons.color_lens_outlined), | ||
| title: Text('主题'), | ||
| value: Text(Global | ||
| .members[Provider.of<ThemeModel>(context).themeMember] | ||
| ?.firstName ?? | ||
| ''), | ||
| trailing: Icon(Icons.keyboard_arrow_right), | ||
| onPressed: (BuildContext context) { | ||
| Navigator.pushNamed(context, '/theme'); | ||
| }, | ||
| ), | ||
| // SettingsTile.switchTile( | ||
| // onToggle: (value) {}, | ||
| // initialValue: true, | ||
| // leading: Icon(Icons.format_paint), | ||
| // title: Text('Enable custom theme'), | ||
| // ), | ||
| ], | ||
| ), | ||
| ], | ||
| ), | ||
| ); | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| import 'package:eoe_fans/models/member.dart'; | ||
| import 'package:eoe_fans/states/ProfileChangeNotifier.dart'; | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:flutter_swiper_null_safety/flutter_swiper_null_safety.dart'; | ||
| import 'package:eoe_fans/common/Global.dart'; | ||
| import 'package:provider/provider.dart'; | ||
|
|
||
| class SettingTheme extends StatefulWidget { | ||
| const SettingTheme({Key? key}) : super(key: key); | ||
|
|
||
| @override | ||
| State<SettingTheme> createState() => _SettingThemeState(); | ||
| } | ||
|
|
||
| class _SettingThemeState extends State<SettingTheme> { | ||
| MemberEnum _memberSelect = MemberEnum.zao; | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Scaffold( | ||
| appBar: AppBar( | ||
| leading: IconButton( | ||
| icon: const Icon( | ||
| Icons.arrow_back, | ||
| color: Colors.white, | ||
| ), | ||
| onPressed: () => Navigator.pop(context), | ||
| ), | ||
| title: const Text("主题"), | ||
| flexibleSpace: Container( | ||
| height: double.maxFinite, | ||
| child: Image( | ||
| image: AssetImage('assets/${_memberSelect.name}/head_bg.jpg'), | ||
| fit: BoxFit.cover, | ||
| ), | ||
| ), | ||
| ), | ||
| body: Stack( | ||
| children: [ | ||
| Swiper( | ||
| itemBuilder: (BuildContext context, int index) { | ||
| return Container( | ||
| child: Image( | ||
| image: AssetImage( | ||
| 'assets/head/${MemberEnum.values[index].name}.jpg'), | ||
| fit: BoxFit.cover, | ||
| ), | ||
| ); | ||
| }, | ||
| itemCount: MemberEnum.values.length, | ||
| onIndexChanged: (int index) { | ||
| setState(() { | ||
| _memberSelect = MemberEnum.values[index]; | ||
| Provider.of<ThemeModel>(context, listen: false).theme = _memberSelect.name; | ||
| }); | ||
| }, | ||
| pagination: const SwiperPagination( | ||
| alignment: Alignment.bottomRight, | ||
| builder: DotSwiperPaginationBuilder( | ||
| color: Colors.black12, // 其他点的颜色 | ||
| activeColor: Colors.white, | ||
| space: 2, // 点与点之间的距离 | ||
| activeSize: 15 // 当前点的大小 | ||
| ), | ||
| ), | ||
| ), | ||
| // Positioned( | ||
| // child: IconButton( | ||
| // icon: Icon( | ||
| // Icons.check_box | ||
| // ), | ||
| // ) | ||
| // ) | ||
| ], | ||
| ), | ||
| ); | ||
| } | ||
| } |
Oops, something went wrong.