fix some toolbar color fixes #328

This commit is contained in:
Leptopoda-GitHub 2021-10-30 17:23:47 +02:00 committed by Calcitem
parent 2523e52c82
commit a2c414f89a
2 changed files with 7 additions and 2 deletions

View File

@ -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,

View File

@ -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),