Skip to content

Conversation

@uwechai
Copy link

@uwechai uwechai commented Mar 4, 2021

Migrated to accomodate null safety.

  1. Used migration tool to migrate.
  2. changed the version to 1.0.0 to indicate breaking changes.

Copy link

@awhitford awhitford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this PR better than #38.

@@ -0,0 +1,13 @@
#!/bin/sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be part of the .gitignore. See Flutter gitignore template.

this.dismissible = false,
@required this.child,
required this.child,
}) : assert(child != null),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to assert(x != null) anymore when x is not a nullable type.

return new Stack(
children: [
child,
new Opacity(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see the obsolete new keyword removed too.

Widget sut(bool inAsyncCall, Offset offset) {
Widget sut(bool inAsyncCall, Offset? offset) {
return MaterialApp(
home: new ModalProgressHUD(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new keyword is unnecessary now.

@@ -1,34 +1,55 @@
# Generated by pub

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pubspec.lock file should be part of .gitignore for a library. See Flutter .gitignore Template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants