Skip to content

Commit

Permalink
fix: Rename PlatformSliverAppBar to EnoughPlatformSliverAppBar to…
Browse files Browse the repository at this point in the history
… avoid naming conflict with flutter_platform_widgets
  • Loading branch information
robert-virkus committed Feb 25, 2024
1 parent 2eb6f9f commit 186ee48
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.1.0
- Renamed `PlatformSliverAppBar` to `EnoughPlatformSliverAppBar` to avoid naming conflict with flutter_platform_widgets

## 1.0.0
- Fixes compatibility with Flutter 3.16 by having a default value for the `enabled` property of Textfield in the `DecoratedPlatformTextfield`
- Update `flutter_platform_widgets` to `6.0.2`, this requires the usage of Flutter 3.16+
Expand Down
7 changes: 4 additions & 3 deletions lib/src/platform/platform_sliver_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import 'package:enough_platform_widgets/enough_platform_widgets.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

/// Uses a `SliverAppBar` on material or a `CupertinoSliverNavigationBar` on cupertino
class PlatformSliverAppBar extends StatelessWidget {
/// Displays a `SliverAppBar` on material and a `CupertinoSliverNavigationBar`
/// on cupertino
class EnoughPlatformSliverAppBar extends StatelessWidget {
final Widget? title;
final Widget? leading;
final bool floating;
Expand All @@ -15,7 +16,7 @@ class PlatformSliverAppBar extends StatelessWidget {
final Widget? flexibleSpace;
final bool cupertinoTransitionBetweenRoutes;

const PlatformSliverAppBar({
const EnoughPlatformSliverAppBar({
Key? key,
this.title,
this.leading,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: enough_platform_widgets
description: Useful platform aware widgets to develop a Flutter app with either Cupertino and Material design.
version: 1.0.0
version: 1.1.0
homepage: https://github.com/Enough-Software/enough_platform_widgets
topics:
- cupertino
Expand All @@ -16,7 +16,7 @@ dependencies:
cupertino_progress_bar: ^0.2.0
flutter:
sdk: flutter
flutter_platform_widgets: ^6.0.0
flutter_platform_widgets: ^6.1.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 186ee48

Please sign in to comment.