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