mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Pressable veggie cards, new launcher icon, release metadata. (#54)
This commit is contained in:
@@ -73,12 +73,9 @@ class DetailsScreen extends StatelessWidget {
|
||||
Positioned(
|
||||
right: 0.0,
|
||||
left: 0.0,
|
||||
child: Hero(
|
||||
tag: veggie.id,
|
||||
child: Image.asset(
|
||||
veggie.imageAssetPath,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
child: Image.asset(
|
||||
veggie.imageAssetPath,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
|
||||
@@ -48,9 +48,9 @@ class FavoritesScreen extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoTabView(
|
||||
builder: (context) {
|
||||
return DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
color: Styles.scaffoldBackground,
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
middle: Text('My Garden'),
|
||||
),
|
||||
child: Center(
|
||||
child: _buildTabViewBody(context),
|
||||
|
||||
@@ -35,7 +35,7 @@ class ListScreen extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoTabView(
|
||||
builder: (context) {
|
||||
String dateString = DateFormat.jms("en_US").format(DateTime.now());
|
||||
String dateString = DateFormat("MMMM y").format(DateTime.now());
|
||||
final appState =
|
||||
ScopedModel.of<AppState>(context, rebuildOnChange: true);
|
||||
final prefs =
|
||||
|
||||
Reference in New Issue
Block a user