This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SomeWidgetState extends State<SomeWidget> { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new Scaffold(body: new LayoutBuilder(builder: _buildContent)); | |
| } | |
| Widget _buildContent(BuildContext context, BoxConstraints constraints) { | |
| if (constraints.hasBoundedHeight) { | |
| constraints = constraints.copyWith(maxHeight: constraints.maxHeight + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:meta/meta.dart'; | |
| Future<T> showModalBottomSheetApp<T>({ | |
| @required BuildContext context, | |
| @required WidgetBuilder builder, | |
| }) { |
NewerOlder