Fix selectable text pop menu color schame
This commit is contained in:
parent
f2e1bb5a14
commit
9d66481a16
|
@ -6,3 +6,4 @@ linter:
|
||||||
unnecessary_this: false
|
unnecessary_this: false
|
||||||
file_names: false
|
file_names: false
|
||||||
constant_identifier_names: false
|
constant_identifier_names: false
|
||||||
|
no_logic_in_create_state: false
|
||||||
|
|
|
@ -71,7 +71,10 @@ void switchFullScreenUI() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (Platform.isAndroid || Platform.isIOS) {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
SystemChrome.setEnabledSystemUIOverlays(list);
|
SystemChrome.setEnabledSystemUIMode(
|
||||||
|
SystemUiMode.manual,
|
||||||
|
overlays: list,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -177,13 +177,14 @@ class _DarkTheme extends _ThemePackage {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ThemeData themeData(ThemeData rawData) => rawData.copyWith(
|
ThemeData themeData(ThemeData rawData) => rawData.copyWith(
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.dark,
|
||||||
colorScheme: ColorScheme.light(
|
colorScheme: ColorScheme.light(
|
||||||
secondary: Colors.pink.shade200,
|
secondary: Colors.pink.shade200,
|
||||||
),
|
),
|
||||||
appBarTheme: const AppBarTheme(
|
appBarTheme: const AppBarTheme(
|
||||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||||
color: Color(0xFF1E1E1E),
|
color: Color(0xFF1E1E1E),
|
||||||
|
foregroundColor: Colors.white,
|
||||||
iconTheme: IconThemeData(
|
iconTheme: IconThemeData(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
@ -219,6 +220,7 @@ class _DustyBlueTheme extends _ThemePackage {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ThemeData themeData(ThemeData rawData) => rawData.copyWith(
|
ThemeData themeData(ThemeData rawData) => rawData.copyWith(
|
||||||
|
brightness: Brightness.dark,
|
||||||
scaffoldBackgroundColor: Color.alphaBlend(
|
scaffoldBackgroundColor: Color.alphaBlend(
|
||||||
const Color(0x11999999),
|
const Color(0x11999999),
|
||||||
const Color(0xff20253b),
|
const Color(0xff20253b),
|
||||||
|
@ -227,13 +229,13 @@ class _DustyBlueTheme extends _ThemePackage {
|
||||||
const Color(0x11AAAAAA),
|
const Color(0x11AAAAAA),
|
||||||
const Color(0xff20253b),
|
const Color(0xff20253b),
|
||||||
),
|
),
|
||||||
brightness: Brightness.light,
|
|
||||||
colorScheme: ColorScheme.light(
|
colorScheme: ColorScheme.light(
|
||||||
secondary: Colors.blue.shade200,
|
secondary: Colors.blue.shade200,
|
||||||
),
|
),
|
||||||
appBarTheme: const AppBarTheme(
|
appBarTheme: const AppBarTheme(
|
||||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||||
color: Color(0xff20253b),
|
color: Color(0xff20253b),
|
||||||
|
foregroundColor: Colors.white,
|
||||||
iconTheme: IconThemeData(
|
iconTheme: IconThemeData(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
@ -273,7 +275,7 @@ class _DarkBlackTheme extends _ThemePackage {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
ThemeData themeData(ThemeData rawData) => rawData.copyWith(
|
ThemeData themeData(ThemeData rawData) => rawData.copyWith(
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.dark,
|
||||||
colorScheme: ColorScheme.light(
|
colorScheme: ColorScheme.light(
|
||||||
secondary: Colors.pink.shade200,
|
secondary: Colors.pink.shade200,
|
||||||
),
|
),
|
||||||
|
@ -281,6 +283,7 @@ class _DarkBlackTheme extends _ThemePackage {
|
||||||
appBarTheme: const AppBarTheme(
|
appBarTheme: const AppBarTheme(
|
||||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||||
color: Color.fromARGB(0xff, 10, 10, 10),
|
color: Color.fromARGB(0xff, 10, 10, 10),
|
||||||
|
foregroundColor: Colors.white,
|
||||||
iconTheme: IconThemeData(
|
iconTheme: IconThemeData(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
|
|
@ -62,7 +62,10 @@ class _ComicReaderScreenState extends State<ComicReaderScreen> {
|
||||||
} while (page.pages > page.page);
|
} while (page.pages > page.page);
|
||||||
if (widget.autoFullScreen) {
|
if (widget.autoFullScreen) {
|
||||||
setState(() {
|
setState(() {
|
||||||
SystemChrome.setEnabledSystemUIOverlays([]);
|
SystemChrome.setEnabledSystemUIMode(
|
||||||
|
SystemUiMode.manual,
|
||||||
|
overlays: [],
|
||||||
|
);
|
||||||
_fullScreen = true;
|
_fullScreen = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -227,7 +230,10 @@ class _ComicReaderScreenState extends State<ComicReaderScreen> {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (fullScreen) {
|
if (fullScreen) {
|
||||||
if (Platform.isAndroid || Platform.isIOS) {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
SystemChrome.setEnabledSystemUIOverlays([]);
|
SystemChrome.setEnabledSystemUIMode(
|
||||||
|
SystemUiMode.manual,
|
||||||
|
overlays: [],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switchFullScreenUI();
|
switchFullScreenUI();
|
||||||
|
|
|
@ -60,7 +60,10 @@ class _DownloadReaderScreenState extends State<DownloadReaderScreen> {
|
||||||
}
|
}
|
||||||
if (widget.autoFullScreen) {
|
if (widget.autoFullScreen) {
|
||||||
setState(() {
|
setState(() {
|
||||||
SystemChrome.setEnabledSystemUIOverlays([]);
|
SystemChrome.setEnabledSystemUIMode(
|
||||||
|
SystemUiMode.manual,
|
||||||
|
overlays: [],
|
||||||
|
);
|
||||||
_fullScreen = true;
|
_fullScreen = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -210,7 +213,10 @@ class _DownloadReaderScreenState extends State<DownloadReaderScreen> {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (fullScreen) {
|
if (fullScreen) {
|
||||||
if (Platform.isAndroid || Platform.isIOS) {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
SystemChrome.setEnabledSystemUIOverlays([]);
|
SystemChrome.setEnabledSystemUIMode(
|
||||||
|
SystemUiMode.manual,
|
||||||
|
overlays: [],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switchFullScreenUI();
|
switchFullScreenUI();
|
||||||
|
|
|
@ -91,7 +91,7 @@ class _InitScreenState extends State<InitScreen> {
|
||||||
// 如果token或username+password有效则直接进入登录好的界面
|
// 如果token或username+password有效则直接进入登录好的界面
|
||||||
Navigator.pushReplacement(
|
Navigator.pushReplacement(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(builder: (context) => AppScreen()),
|
MaterialPageRoute(builder: (context) => const AppScreen()),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// 否则跳转到登录页
|
// 否则跳转到登录页
|
||||||
|
|
|
@ -33,7 +33,7 @@ class _MigrateScreenState extends State<MigrateScreen> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context){
|
Widget build(BuildContext context) {
|
||||||
return rightClickPop(
|
return rightClickPop(
|
||||||
child: buildScreen(context),
|
child: buildScreen(context),
|
||||||
context: context,
|
context: context,
|
||||||
|
@ -74,11 +74,9 @@ class _MigrateScreenState extends State<MigrateScreen> {
|
||||||
...paths.map((e) => Container(
|
...paths.map((e) => Container(
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
color: Theme.of(context).accentColor,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
textColor: Theme.of(context)
|
textColor:
|
||||||
.accentTextTheme
|
Theme.of(context).textTheme.bodyText1?.color,
|
||||||
.subtitle1
|
|
||||||
?.color,
|
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (!await confirmDialog(context, "文件迁移",
|
if (!await confirmDialog(context, "文件迁移",
|
||||||
|
|
|
@ -36,7 +36,7 @@ class _RandomComicsScreenState extends State<RandomComicsScreen> {
|
||||||
Widget buildScreen(BuildContext context) {
|
Widget buildScreen(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text('随机本子'),
|
title: const Text('随机本子'),
|
||||||
actions: [
|
actions: [
|
||||||
shadowCategoriesActionButton(context),
|
shadowCategoriesActionButton(context),
|
||||||
chooseLayoutActionButton(context),
|
chooseLayoutActionButton(context),
|
||||||
|
|
|
@ -261,7 +261,8 @@ class _StreamComicPagerState extends State<StreamComicPager> {
|
||||||
late bool _loading = false;
|
late bool _loading = false;
|
||||||
late bool _over = false;
|
late bool _over = false;
|
||||||
late bool _error = false;
|
late bool _error = false;
|
||||||
late Future<dynamic> _pageFuture;
|
|
||||||
|
// late Future<dynamic> _pageFuture;
|
||||||
|
|
||||||
void _onScroll() {
|
void _onScroll() {
|
||||||
if (_over || _error || _loading) {
|
if (_over || _error || _loading) {
|
||||||
|
@ -276,7 +277,8 @@ class _StreamComicPagerState extends State<StreamComicPager> {
|
||||||
|
|
||||||
Future<dynamic> _load() async {
|
Future<dynamic> _load() async {
|
||||||
setState(() {
|
setState(() {
|
||||||
_pageFuture = _fetch();
|
//_pageFuture =
|
||||||
|
_fetch();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ class ContentMessage extends StatelessWidget {
|
||||||
var iconSize = min / 2.3;
|
var iconSize = min / 2.3;
|
||||||
var textSize = min / 16;
|
var textSize = min / 16;
|
||||||
var tipSize = min / 20;
|
var tipSize = min / 20;
|
||||||
var infoSize = min / 30;
|
|
||||||
if (contentFailedReloadAction ==
|
if (contentFailedReloadAction ==
|
||||||
ContentFailedReloadAction.TOUCH_LOADER) {
|
ContentFailedReloadAction.TOUCH_LOADER) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
|
@ -110,7 +109,6 @@ class ContentMessage extends StatelessWidget {
|
||||||
var width = constraints.maxWidth;
|
var width = constraints.maxWidth;
|
||||||
var height = constraints.maxHeight;
|
var height = constraints.maxHeight;
|
||||||
var min = width < height ? width : height;
|
var min = width < height ? width : height;
|
||||||
var theme = Theme.of(context);
|
|
||||||
return Center(
|
return Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -13,7 +13,7 @@ class DownloadInfoCard extends StatelessWidget {
|
||||||
final bool downloading;
|
final bool downloading;
|
||||||
final bool linkItem;
|
final bool linkItem;
|
||||||
|
|
||||||
DownloadInfoCard({
|
const DownloadInfoCard({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.task,
|
required this.task,
|
||||||
this.downloading = false,
|
this.downloading = false,
|
||||||
|
|
|
@ -735,7 +735,7 @@ class _EpChooser extends StatefulWidget {
|
||||||
final int epOrder;
|
final int epOrder;
|
||||||
final FutureOr Function(int) onChangeEp;
|
final FutureOr Function(int) onChangeEp;
|
||||||
|
|
||||||
_EpChooser(this.epNameMap, this.epOrder, this.onChangeEp);
|
const _EpChooser(this.epNameMap, this.epOrder, this.onChangeEp);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _EpChooserState();
|
State<StatefulWidget> createState() => _EpChooserState();
|
||||||
|
@ -782,7 +782,7 @@ class _SettingPanel extends StatefulWidget {
|
||||||
final FutureOr Function() onReloadEp;
|
final FutureOr Function() onReloadEp;
|
||||||
final FutureOr Function() onDownload;
|
final FutureOr Function() onDownload;
|
||||||
|
|
||||||
_SettingPanel(this.onReloadEp, this.onDownload);
|
const _SettingPanel(this.onReloadEp, this.onDownload);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _SettingPanelState();
|
State<StatefulWidget> createState() => _SettingPanelState();
|
||||||
|
@ -1104,7 +1104,7 @@ class _WebToonDownloadImage extends _WebToonReaderImage {
|
||||||
final int height;
|
final int height;
|
||||||
final String format;
|
final String format;
|
||||||
|
|
||||||
_WebToonDownloadImage({
|
const _WebToonDownloadImage({
|
||||||
required this.fileServer,
|
required this.fileServer,
|
||||||
required this.path,
|
required this.path,
|
||||||
required this.localPath,
|
required this.localPath,
|
||||||
|
@ -1137,7 +1137,7 @@ class _WebToonRemoteImage extends _WebToonReaderImage {
|
||||||
final String fileServer;
|
final String fileServer;
|
||||||
final String path;
|
final String path;
|
||||||
|
|
||||||
_WebToonRemoteImage(
|
const _WebToonRemoteImage(
|
||||||
this.fileServer,
|
this.fileServer,
|
||||||
this.path,
|
this.path,
|
||||||
Size size,
|
Size size,
|
||||||
|
@ -1155,7 +1155,7 @@ abstract class _WebToonReaderImage extends StatefulWidget {
|
||||||
final Size size;
|
final Size size;
|
||||||
final Function(Size)? onTrueSize;
|
final Function(Size)? onTrueSize;
|
||||||
|
|
||||||
_WebToonReaderImage(this.size, this.onTrueSize);
|
const _WebToonReaderImage(this.size, this.onTrueSize);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _WebToonReaderImageState();
|
State<StatefulWidget> createState() => _WebToonReaderImageState();
|
||||||
|
|
Loading…
Reference in New Issue