MVP-Refactoring #139
@@ -25,10 +25,13 @@ class CustomTheme {
|
|||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
|
scrolledUnderElevation: 0,
|
||||||
|
centerTitle: true,
|
||||||
titleTextStyle: const TextStyle(
|
titleTextStyle: const TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
iconTheme: const IconThemeData(color: Colors.white),
|
iconTheme: const IconThemeData(color: Colors.white),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -46,15 +46,7 @@ class _CreateGroupViewState extends State<CreateGroupView> {
|
|||||||
final loc = AppLocalizations.of(context);
|
final loc = AppLocalizations.of(context);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: Text(loc.create_new_group)),
|
||||||
|
sneeex marked this conversation as resolved
|
|||||||
backgroundColor: CustomTheme.backgroundColor,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
title: Text(
|
|
||||||
loc.create_new_group,
|
|
||||||
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
centerTitle: true,
|
|
||||||
),
|
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
|||||||
@@ -38,19 +38,13 @@ class _ChooseGameViewState extends State<ChooseGameView> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
|
flixcoo marked this conversation as resolved
sneeex
commented
|
|||||||
icon: const Icon(Icons.arrow_back_ios),
|
icon: const Icon(Icons.arrow_back_ios),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop(selectedGameIndex);
|
Navigator.of(context).pop(selectedGameIndex);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(loc.choose_game),
|
||||||
loc.choose_game,
|
|
||||||
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
centerTitle: true,
|
|
||||||
),
|
),
|
||||||
body: PopScope(
|
body: PopScope(
|
||||||
// This fixes that the Android Back Gesture didn't return the
|
// This fixes that the Android Back Gesture didn't return the
|
||||||
|
|||||||
@@ -38,8 +38,6 @@ class _ChooseGroupViewState extends State<ChooseGroupView> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back_ios),
|
icon: const Icon(Icons.arrow_back_ios),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@@ -52,11 +50,7 @@ class _ChooseGroupViewState extends State<ChooseGroupView> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(loc.choose_group),
|
||||||
loc.choose_group,
|
|
||||||
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
centerTitle: true,
|
|
||||||
),
|
),
|
||||||
|
flixcoo marked this conversation as resolved
sneeex
commented
|
|||||||
body: PopScope(
|
body: PopScope(
|
||||||
// This fixes that the Android Back Gesture didn't return the
|
// This fixes that the Android Back Gesture didn't return the
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ class _ChooseRulesetViewState extends State<ChooseRulesetView> {
|
|||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back_ios),
|
icon: const Icon(Icons.arrow_back_ios),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
flixcoo marked this conversation as resolved
sneeex
commented
|
|||||||
@@ -49,11 +47,7 @@ class _ChooseRulesetViewState extends State<ChooseRulesetView> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(loc.choose_ruleset),
|
||||||
loc.choose_ruleset,
|
|
||||||
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
centerTitle: true,
|
|
||||||
),
|
),
|
||||||
body: PopScope(
|
body: PopScope(
|
||||||
// This fixes that the Android Back Gesture didn't return the
|
// This fixes that the Android Back Gesture didn't return the
|
||||||
|
|||||||
@@ -121,15 +121,7 @@ class _CreateMatchViewState extends State<CreateMatchView> {
|
|||||||
final loc = AppLocalizations.of(context);
|
final loc = AppLocalizations.of(context);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: Text(loc.create_new_match)),
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
title: Text(
|
|
||||||
loc.create_new_match,
|
|
||||||
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
centerTitle: true,
|
|
||||||
),
|
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
|||||||
@@ -51,17 +51,7 @@ class _MatchResultViewState extends State<MatchResultView> {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
title: Text(widget.match.name),
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
title: Text(
|
|
||||||
widget.match.name,
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
centerTitle: true,
|
|
||||||
),
|
),
|
||||||
|
flixcoo marked this conversation as resolved
sneeex
commented
|
|||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
Reference in New Issue
Block a user
schatz irgendwas passt hier nicht:

warum hast du alles weggelassen außer den title??? das ganze design ist anders jetzt und kacke auch