优化闪屏页

This commit is contained in:
toly
2021-09-10 14:11:47 +08:00
parent f4fb1457e3
commit f148b9e09c
17 changed files with 22 additions and 22 deletions

View File

@@ -25,10 +25,10 @@
> 当前Flutter 版本
```
Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (5 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4
Flutter 2.5.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cc385b4b8 (2 days ago) • 2021-09-07 23:01:49 -0700
Engine • revision f0826da7ef
Tools • Dart 2.14.0
```

View File

@@ -179,7 +179,7 @@ class _NoBorderExpansionTileState extends State<NoBorderExpansionTile> with Sing
_borderColorTween
..end = theme.dividerColor;
_headerColorTween
..begin = theme.textTheme.subhead?.color
..begin = theme.textTheme.subtitle1!.color
..end = theme.accentColor;
_iconColorTween
..begin = theme.unselectedWidgetColor

View File

@@ -38,7 +38,7 @@ class _DIYSliderThemeState extends State<DIYSliderTheme> {
valueIndicatorColor: Colors.deepPurpleAccent,
thumbShape: _CustomThumbShape(),
valueIndicatorShape: _CustomValueIndicatorShape(),
valueIndicatorTextStyle: theme.accentTextTheme.body2!
valueIndicatorTextStyle: theme.accentTextTheme.bodyText2!
.copyWith(color: theme.colorScheme.onSurface),
),
child: Slider(

View File

@@ -49,7 +49,7 @@ class _CustomAnimatedSwitcherState extends State<CustomAnimatedSwitcher> {
child: Text(
'$_count',
key: ValueKey<int>(_count),
style: Theme.of(context).textTheme.display3,
style: Theme.of(context).textTheme.headline3,
),
);

View File

@@ -77,7 +77,7 @@ class _CustomStreamBuilderState extends State<CustomStreamBuilder> {
if (snap.connectionState == ConnectionState.active) {
return Text(
snap.data.toString(),
style: Theme.of(context).textTheme.display1,
style: Theme.of(context).textTheme.bodyText2,
);
}
if (snap.connectionState == ConnectionState.waiting) {

View File

@@ -15,19 +15,19 @@ class TextThemeDemo extends StatelessWidget {
Widget build(BuildContext context) {
TextTheme queryData = Theme.of(context).textTheme;
Map<String, TextStyle> styles = {
"headline: ": queryData.headline!,
"title: ": queryData.title!,
"subhead: ": queryData.subhead!,
"body1: ": queryData.body1!,
"body2: ": queryData.body2!,
"headline1: ": queryData.headline1!,
"headline2: ": queryData.headline2!,
"headline3: ": queryData.headline3!,
"headline4: ": queryData.headline4!,
"headline5: ": queryData.headline5!,
"headline6: ": queryData.headline6!,
"button: ": queryData.button!,
"overline: ": queryData.overline!,
"subtitle: ": queryData.subtitle!,
"subtitle1: ": queryData.subtitle1!,
"subtitle2: ": queryData.subtitle2!,
"caption: ": queryData.caption!,
"display1: ": queryData.display1!,
"display2: ": queryData.display2!,
"display3: ": queryData.display3!,
"display4: ": queryData.display4!,
"bodyText1: ": queryData.bodyText1!,
"bodyText2: ": queryData.bodyText2!,
};
return Container(

View File

@@ -14,7 +14,7 @@ packages:
name: async
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.6.1"
version: "2.8.1"
bloc:
dependency: transitive
description:
@@ -42,7 +42,7 @@ packages:
name: charcode
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
@@ -197,7 +197,7 @@ packages:
name: meta
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0"
version: "1.7.0"
mime:
dependency: transitive
description:
@@ -405,7 +405,7 @@ packages:
name: test_api
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.3.0"
version: "0.4.2"
toggle_rotate:
dependency: "direct main"
description: