Commit 64e05176 authored by egallouis's avatar egallouis
Browse files

Changes settings_screen.dart to fit with new appbar

parent 66d81fc5
Pipeline #622292 passed with stage
in 1 minute and 10 seconds
......@@ -3,7 +3,6 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:kunstforum_tu_darmstadt/ui/widgets/custom_app_bar.dart';
import 'package:provider/provider.dart';
//***********************************************
......@@ -51,74 +50,69 @@ class _SettingsScreenState extends State<SettingsScreen> {
Widget build(BuildContext context) {
appSetting = Provider.of<AppSetting>(context);
final artworkService = Provider.of<ArtworkService>(context);
return Scaffold(
appBar: CustomAppBar(
appSetting: appSetting,
),
body: Column(
children: [
Flexible(
child: Row(
children: [
Flexible(
child: createButtons(
AppLocalizations.of(context)!.aboutus.toUpperCase(),
artworkService.appInfo.aboutUs,
normalButtonColor),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.aboutart.toUpperCase(),
artworkService.appInfo.aboutTUArt,
brightButtonColor),
),
],
),
),
Flexible(
child: Row(
children: [
Flexible(
child: createButtons(
AppLocalizations.of(context)!.colors.toUpperCase(),
"",
brightButtonColor),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.sizes.toUpperCase(),
"",
normalButtonColor),
),
],
),
return Column(
children: [
Flexible(
child: Row(
children: [
Flexible(
child: createButtons(
AppLocalizations.of(context)!.aboutus.toUpperCase(),
artworkService.appInfo.aboutUs,
normalButtonColor),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.aboutart.toUpperCase(),
artworkService.appInfo.aboutTUArt,
brightButtonColor),
),
],
),
Flexible(
child: Row(
children: [
Flexible(
child: createButtons(
AppLocalizations.of(context)!.favorites.toUpperCase(),
"",
normalButtonColor),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.lang.toUpperCase(),
"",
brightButtonColor),
),
],
),
),
Flexible(
child: Row(
children: [
Flexible(
child: createButtons(
AppLocalizations.of(context)!.colors.toUpperCase(),
"",
brightButtonColor),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.sizes.toUpperCase(),
"",
normalButtonColor),
),
],
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.about.toUpperCase(),
artworkService.appInfo.imprint,
darkButtonColor),
),
Flexible(
child: Row(
children: [
Flexible(
child: createButtons(
AppLocalizations.of(context)!.favorites.toUpperCase(),
"",
normalButtonColor),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.lang.toUpperCase(),
"",
brightButtonColor),
),
],
),
],
),
),
Flexible(
child: createButtons(
AppLocalizations.of(context)!.about.toUpperCase(),
artworkService.appInfo.imprint,
darkButtonColor),
),
],
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment