Merge pull request #9 from Cyanose/feature/clickable-FOODER-logo

make FOODER logo clickable and redirect to today's diary
This commit is contained in:
Doman 2023-08-26 22:25:50 +02:00 committed by GitHub
commit 9823f01139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,15 @@ class _MainScreen extends State<MainScreen> {
title = Row( title = Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
const Text("🅵🅾🅾🅳🅴🆁"), TextButton(
child: const Text("🅵🅾🅾🅳🅴🆁", style: const TextStyle(fontSize: 20, color: Colors.white)),
onPressed: () {
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => MainScreen(apiClient: widget.apiClient)),
).then((_) => _asyncInitState());
},
),
const Spacer(), const Spacer(),
Text( Text(
"${date.year}-${date.month}-${date.day}", "${date.year}-${date.month}-${date.day}",