Skip to content

Commit

Permalink
fix: Stack constructor for Flutter > 2.10
Browse files Browse the repository at this point in the history
Closes tunitowen#67.

- Replaces `overflow: Overflow.visible` with `clipBehavior: Clip.none`,
  per [migration guide](https://docs.flutter.dev/release/breaking-changes/clip-behavior#migration-guide)
- Bumps `mockito` version for compatibility with `flutter_test`.
- Renames test file to follow `*_test.dart` convention.
- Removes and gitignores `pubspec.lock`, since this is a library package.
  • Loading branch information
mockturtl committed Apr 21, 2022
1 parent a376f24 commit bd29490
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 155 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

.packages
.pub/
pubspec.lock

build/
ios/.generated/
Expand Down
2 changes: 1 addition & 1 deletion lib/fancy_bottom_navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class FancyBottomNavigationState extends State<FancyBottomNavigation>
@override
Widget build(BuildContext context) {
return Stack(
overflow: Overflow.visible,
clipBehavior: Clip.none,
alignment: Alignment.bottomCenter,
children: <Widget>[
Container(
Expand Down
153 changes: 0 additions & 153 deletions pubspec.lock

This file was deleted.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^4.0.0
mockito: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
Expand Down
File renamed without changes.

0 comments on commit bd29490

Please sign in to comment.