mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 14:28:51 +00:00
Moves modal close button to left. (#55)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user