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:
commit
9823f01139
1 changed files with 9 additions and 1 deletions
|
@ -74,7 +74,15 @@ class _MainScreen extends State<MainScreen> {
|
|||
title = Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
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(),
|
||||
Text(
|
||||
"${date.year}-${date.month}-${date.day}",
|
||||
|
|
Loading…
Reference in a new issue