Skip to content

Commit

Permalink
upgrade lint version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boyan01 committed May 14, 2022
1 parent a023359 commit a0c470d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
lints: ^1.0.1
lints: ^2.0.0


# For information on the generic Dart part of this file, see the
Expand Down
4 changes: 2 additions & 2 deletions lib/src/overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ OverlaySupportEntry showOverlay(
),
);
});
final supportEntry =
OverlaySupportEntry(entry, overlayKey, stateKey, overlaySupport);
final supportEntry = OverlaySupportEntry._internal(
entry, overlayKey, stateKey, overlaySupport);
overlaySupport.addEntry(supportEntry, key: overlayKey);
overlay.insert(entry);
return supportEntry;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/overlay_entry.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of 'overlay.dart';

abstract class OverlaySupportEntry {
factory OverlaySupportEntry(
factory OverlaySupportEntry._internal(
OverlayEntry entry,
Key key,
GlobalKey<_AnimatedOverlayState> stateKey,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
lints: ^1.0.1
lints: ^2.0.0

flutter:
6 changes: 3 additions & 3 deletions test/overlay_support_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void main() {
});

group('simple notification behavior on back pressed', () {
Widget _buildTestTree(
Widget buildTestTree(
{required void Function(BuildContext context, Widget child) show}) {
return FakeOverlay(child: Builder(builder: (context) {
return TextButton(
Expand All @@ -176,7 +176,7 @@ void main() {
}

testWidgets('global', (tester) async {
await tester.pumpWidget(_buildTestTree(show: (context, child) {
await tester.pumpWidget(buildTestTree(show: (context, child) {
showSimpleNotification(child);
}));
await tester.pump();
Expand All @@ -197,7 +197,7 @@ void main() {
});

testWidgets('local', (tester) async {
await tester.pumpWidget(_buildTestTree(show: (context, child) {
await tester.pumpWidget(buildTestTree(show: (context, child) {
showSimpleNotification(child, context: context);
}));
await tester.pump();
Expand Down

0 comments on commit a0c470d

Please sign in to comment.