[logo] unify
This commit is contained in:
parent
2e3a426c4d
commit
5d0743a276
10 changed files with 20 additions and 14 deletions
|
@ -101,7 +101,7 @@ class _AddEntryScreen extends State<AddEntryScreen> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: const Text("🅵🅾🅾🅳🅴🆁"),
|
||||
title: Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context)),
|
||||
),
|
||||
body: Center(
|
||||
child: Container(
|
||||
|
|
|
@ -58,7 +58,7 @@ class _AddMealScreen extends State<AddMealScreen> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: const Text("🅵🅾🅾🅳🅴🆁"),
|
||||
title: Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context)),
|
||||
),
|
||||
body: Center(
|
||||
child: Container(
|
||||
|
|
|
@ -111,7 +111,7 @@ class _AddProductScreen extends State<AddProductScreen> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: const Text("🅵🅾🅾🅳🅴🆁"),
|
||||
title: Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context)),
|
||||
),
|
||||
body: Center(
|
||||
child: Container(
|
||||
|
|
|
@ -1,8 +1,15 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:fooder/client.dart';
|
||||
|
||||
TextStyle logoStyle(context) {
|
||||
return Theme.of(context).textTheme.labelLarge!.copyWith(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class BasedScreen extends StatefulWidget {
|
||||
final ApiClient apiClient;
|
||||
|
||||
const BasedScreen({super.key, required this.apiClient});
|
||||
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ class _EditEntryScreen extends State<EditEntryScreen> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: const Text("🅵🅾🅾🅳🅴🆁"),
|
||||
title: Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context)),
|
||||
),
|
||||
body: Center(
|
||||
child: Container(
|
||||
|
|
|
@ -96,7 +96,7 @@ class _LoginScreen extends State<LoginScreen> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: const Text("🅵🅾🅾🅳🅴🆁"),
|
||||
title: Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context)),
|
||||
),
|
||||
body: Center(
|
||||
child: Container(
|
||||
|
|
|
@ -64,7 +64,6 @@ class _MainScreen extends State<MainScreen> {
|
|||
Widget build(BuildContext context) {
|
||||
Widget content;
|
||||
Widget title;
|
||||
var textStyle = Theme.of(context).textTheme.labelLarge!;
|
||||
|
||||
if (diary != null) {
|
||||
content = Container(
|
||||
|
@ -79,10 +78,10 @@ class _MainScreen extends State<MainScreen> {
|
|||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
TextButton(
|
||||
child: Text("🅵🅾🅾🅳🅴🆁",
|
||||
style: textStyle.copyWith(
|
||||
color: Theme.of(context).colorScheme.secondary)),
|
||||
// style: TextStyle(fontSize: 18, color: Colors.white)),
|
||||
child: Text(
|
||||
"🅵🅾🅾🅳🅴🆁",
|
||||
style: logoStyle(context),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pushReplacement(
|
||||
context,
|
||||
|
@ -110,7 +109,7 @@ class _MainScreen extends State<MainScreen> {
|
|||
);
|
||||
} else {
|
||||
content = const CircularProgressIndicator();
|
||||
title = const Text("🅵🅾🅾🅳🅴🆁");
|
||||
title = Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context));
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
|
|
|
@ -81,7 +81,7 @@ class _RegisterScreen extends State<RegisterScreen> {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
title: const Text("🅵🅾🅾🅳🅴🆁"),
|
||||
title: Text("🅵🅾🅾🅳🅴🆁", style: logoStyle(context)),
|
||||
),
|
||||
body: Center(
|
||||
child: Container(
|
||||
|
|
|
@ -227,7 +227,7 @@
|
|||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 0920;
|
||||
LastUpgradeCheck = 1300;
|
||||
LastUpgradeCheck = 1430;
|
||||
ORGANIZATIONNAME = "";
|
||||
TargetAttributes = {
|
||||
331C80D4294CF70F00263BE5 = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1300"
|
||||
LastUpgradeVersion = "1430"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
|
Loading…
Reference in a new issue