add gui animation setting

This commit is contained in:
niuhuan 2021-11-26 11:20:29 +08:00
parent cc60eb7226
commit 13b79f65f5
3 changed files with 5 additions and 3 deletions

View File

@ -31,9 +31,9 @@ class _AppScreenState extends State<AppScreen> {
setState(() {}); setState(() {});
} }
static const List<Widget> _widgetOptions = <Widget>[ static List<Widget> _widgetOptions = <Widget>[
const CategoriesScreen(), CategoriesScreen(),
const SpaceScreen(), SpaceScreen(),
]; ];
late int _selectedIndex = 0; late int _selectedIndex = 0;

View File

@ -92,6 +92,7 @@ class _CategoriesScreenState extends State<CategoriesScreen>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
super.build(context);
var theme = Theme.of(context); var theme = Theme.of(context);
var themeBackground = theme.scaffoldBackgroundColor; var themeBackground = theme.scaffoldBackgroundColor;
var shadeBackground = Color.fromARGB( var shadeBackground = Color.fromARGB(

View File

@ -44,6 +44,7 @@ class _SpaceScreenState extends State<SpaceScreen>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
super.build(context);
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text('我的'), title: Text('我的'),