mirror of
https://github.com/johrpan/memor.git
synced 2025-10-28 19:27:25 +01:00
Add about screen
This commit is contained in:
parent
4c6358667a
commit
503d44b8c0
4 changed files with 169 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'about_screen.dart';
|
||||
import 'backend.dart';
|
||||
import 'date_utils.dart';
|
||||
import 'localizations.dart';
|
||||
|
|
@ -31,6 +32,26 @@ class HomeScreen extends StatelessWidget {
|
|||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(l10n.title),
|
||||
actions: <Widget>[
|
||||
PopupMenuButton(
|
||||
itemBuilder: (context) => [
|
||||
PopupMenuItem(
|
||||
value: 0,
|
||||
child: Text(l10n.about),
|
||||
),
|
||||
],
|
||||
onSelected: (value) {
|
||||
if (value == 0) {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => AboutScreen(),
|
||||
),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
body: backend.loading
|
||||
? Center(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue