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