1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Moves modal close button to left. (#55)

This commit is contained in:
Andrew Brogdon
2019-03-13 13:16:42 -07:00
committed by GitHub
parent 0431592bd6
commit d123c32f29
2 changed files with 3 additions and 3 deletions

View File

@@ -82,8 +82,8 @@ class DetailsScreen extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 0.0, top: 16.0,
right: 16.0, left: 16.0,
child: SafeArea( child: SafeArea(
child: CloseButton(() { child: CloseButton(() {
Navigator.of(context).pop(); Navigator.of(context).pop();

View File

@@ -8,7 +8,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:veggieseasons/styles.dart'; import 'package:veggieseasons/styles.dart';
/// Partially overlays and then blurs its child. /// Partially overlays and then blurs its child's background.
class FrostedBox extends StatelessWidget { class FrostedBox extends StatelessWidget {
const FrostedBox({ const FrostedBox({
this.child, this.child,