dart migrate add_to_app/fullscreen/flutter_module (#835)

pull/841/head
Brett Morgan 4 years ago committed by GitHub
parent e931456f20
commit 9153fdb6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,7 +58,7 @@ class CounterModel extends ChangeNotifier {
/// It offers two routes, one suitable for displaying as a full screen and /// It offers two routes, one suitable for displaying as a full screen and
/// another designed to be part of a larger UI.class MyApp extends StatelessWidget { /// another designed to be part of a larger UI.class MyApp extends StatelessWidget {
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key); const MyApp({Key? key}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -75,7 +75,7 @@ class MyApp extends StatelessWidget {
/// Wraps [Contents] in a Material [Scaffold] so it looks correct when displayed /// Wraps [Contents] in a Material [Scaffold] so it looks correct when displayed
/// full-screen. /// full-screen.
class FullScreenView extends StatelessWidget { class FullScreenView extends StatelessWidget {
const FullScreenView({Key key}) : super(key: key); const FullScreenView({Key? key}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -96,7 +96,7 @@ class FullScreenView extends StatelessWidget {
class Contents extends StatelessWidget { class Contents extends StatelessWidget {
final bool showExit; final bool showExit;
const Contents({this.showExit = false, Key key}) : super(key: key); const Contents({this.showExit = false, Key? key}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

@ -63,7 +63,7 @@ packages:
name: espresso name: espresso
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.0.1+7" version: "0.1.0+2"
fake_async: fake_async:
dependency: transitive dependency: transitive
description: description:
@ -160,7 +160,7 @@ packages:
name: provider name: provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.3.3" version: "5.0.0"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -245,4 +245,4 @@ packages:
version: "3.0.0" version: "3.0.0"
sdks: sdks:
dart: ">=2.12.0 <3.0.0" dart: ">=2.12.0 <3.0.0"
flutter: ">=1.16.0" flutter: ">=1.20.0"

@ -4,20 +4,20 @@ description: An example Flutter module.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ">=2.6.0-dev <3.0.0" sdk: '>=2.12.0 <3.0.0'
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
provider: ^4.0.2 provider: ^5.0.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_driver: flutter_driver:
sdk: flutter sdk: flutter
espresso: ^0.0.1+2 espresso: ^0.1.0+2
flutter_lints: ^1.0.0 flutter_lints: ^1.0.3
flutter: flutter:
uses-material-design: true uses-material-design: true

Loading…
Cancel
Save