fix some toolbar color fixes #328
This commit is contained in:
parent
2523e52c82
commit
a2c414f89a
|
@ -1542,6 +1542,7 @@ class _GamePageState extends State<GamePage>
|
|||
);
|
||||
|
||||
return GamePageToolBar(
|
||||
color: LocalDatabaseService.colorSettings.mainToolbarBackgroundColor,
|
||||
children: <Widget>[
|
||||
gameButton,
|
||||
optionsButton,
|
||||
|
@ -1605,6 +1606,8 @@ class _GamePageState extends State<GamePage>
|
|||
);
|
||||
|
||||
return GamePageToolBar(
|
||||
color:
|
||||
LocalDatabaseService.colorSettings.navigationToolbarBackgroundColor,
|
||||
children: <Widget>[
|
||||
takeBackAllButton,
|
||||
takeBackButton,
|
||||
|
|
|
@ -20,9 +20,12 @@ part of 'package:sanmill/screens/game_page/game_page.dart';
|
|||
|
||||
class GamePageToolBar extends StatelessWidget {
|
||||
final List<Widget> children;
|
||||
final Color? color;
|
||||
|
||||
const GamePageToolBar({
|
||||
Key? key,
|
||||
required this.children,
|
||||
this.color,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
|
@ -30,8 +33,7 @@ class GamePageToolBar extends StatelessWidget {
|
|||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
color:
|
||||
LocalDatabaseService.colorSettings.navigationToolbarBackgroundColor,
|
||||
color: color,
|
||||
),
|
||||
margin: const EdgeInsets.symmetric(vertical: 0.5),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2),
|
||||
|
|
Loading…
Reference in New Issue