Skip to content

Commit 186ee48

Browse files
committed
fix: Rename PlatformSliverAppBar to EnoughPlatformSliverAppBar to avoid naming conflict with flutter_platform_widgets
1 parent 2eb6f9f commit 186ee48

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.1.0
2+
- Renamed `PlatformSliverAppBar` to `EnoughPlatformSliverAppBar` to avoid naming conflict with flutter_platform_widgets
3+
14
## 1.0.0
25
- Fixes compatibility with Flutter 3.16 by having a default value for the `enabled` property of Textfield in the `DecoratedPlatformTextfield`
36
- Update `flutter_platform_widgets` to `6.0.2`, this requires the usage of Flutter 3.16+

lib/src/platform/platform_sliver_appbar.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import 'package:enough_platform_widgets/enough_platform_widgets.dart';
22
import 'package:flutter/cupertino.dart';
33
import 'package:flutter/material.dart';
44

5-
/// Uses a `SliverAppBar` on material or a `CupertinoSliverNavigationBar` on cupertino
6-
class PlatformSliverAppBar extends StatelessWidget {
5+
/// Displays a `SliverAppBar` on material and a `CupertinoSliverNavigationBar`
6+
/// on cupertino
7+
class EnoughPlatformSliverAppBar extends StatelessWidget {
78
final Widget? title;
89
final Widget? leading;
910
final bool floating;
@@ -15,7 +16,7 @@ class PlatformSliverAppBar extends StatelessWidget {
1516
final Widget? flexibleSpace;
1617
final bool cupertinoTransitionBetweenRoutes;
1718

18-
const PlatformSliverAppBar({
19+
const EnoughPlatformSliverAppBar({
1920
Key? key,
2021
this.title,
2122
this.leading,

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: enough_platform_widgets
22
description: Useful platform aware widgets to develop a Flutter app with either Cupertino and Material design.
3-
version: 1.0.0
3+
version: 1.1.0
44
homepage: https://github.com/Enough-Software/enough_platform_widgets
55
topics:
66
- cupertino
@@ -16,7 +16,7 @@ dependencies:
1616
cupertino_progress_bar: ^0.2.0
1717
flutter:
1818
sdk: flutter
19-
flutter_platform_widgets: ^6.0.0
19+
flutter_platform_widgets: ^6.1.0
2020

2121
dev_dependencies:
2222
flutter_test:

0 commit comments

Comments
 (0)