Skip to content

Commit

Permalink
feat: release v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Sep 4, 2023
1 parent 543d8d5 commit 578b3f4
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.7.3
- Update dependencies
- Add simple example

## 0.7.2
- Rename `PlatformListTile` to  `SelectablePlatformListTile` to remove naming conflict with flutter_platform_widgets - thanks to [DanielSmith1239](https://github.com/DanielSmith1239) and [dab246](https://github.com/dab246) for reporting this [problem](https://github.com/Enough-Software/enough_platform_widgets/issues/12)!

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Licensed commercially friendly under the [MIT License](LICENSE).
Platform widgets use their material or cupertino equivalent based on the chosen platform.

* `DecoratedPlatformTextField` provides a cross platform replacement for the material `TextField`
* `DensePlatformIconButton` replaces the material `IconButton`
* `DialogHelper` helps to show platform specific dialogs
* `PlatformBottomBar` shows a `BottomAppBar` on material and a `CupertinoBar` on cupertino
* `PlatformCheckboxListTile` is a platform aware simple checkbox list tile
Expand All @@ -21,9 +22,7 @@ Platform widgets use their material or cupertino equivalent based on the chosen
* `PlatformDialogActionText` provides a platform aware dialog action text
* `PlatformDropdownButton` is a replacement for the material `DropdownButton`
* `PlatformFilledButtonIcon` uses an `ElevatedButton.filled` on material and a `CupertinoButton.filled` on cupertino
* `DensePlatformIconButton` replaces the material `IconButton`
* `PlatformInkWell` is a rectangular area of a that responds to touch and is based either on `InkWell` or on `CupertinoInkWell`
* `SelectablePlatformListTile` provides a ListTile implementation for both material and cupertino
* `PlatformPageScaffold` provides a `PlatformScaffold` with the additional option to define a bottom bar.
* `PlatformPopupButton` uses an action sheet on cupertino and a popup button on material.
* `PlatformProgressIndicator` uses a `CircularProgressIndicator` on material and a `CupertinoActivityIndicator` on cupertino
Expand All @@ -34,6 +33,7 @@ Platform widgets use their material or cupertino equivalent based on the chosen
* `PlatformTextButtonIcon` is a simple replacement for `TextButton.icon`
* `PlatformToggleButtons` provides a platform aware `ToggleButtons` replacement
* `PlatformToolbar` provides a toolbar option
* `SelectablePlatformListTile` provides a ListTile implementation for both material and cupertino
* `showPlatformTimePicker()` displays a platform aware time picker
* `showPlatformDatePicker()` displays a platform aware date picker
* Additionally, all [flutter_platform_widgets](https://pub.dev/packages/flutter_platform_widgets) are available.
Expand Down
55 changes: 55 additions & 0 deletions example/enough_platform_widgets_example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import 'package:enough_platform_widgets/enough_platform_widgets.dart';
import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return PlatformApp(
title: 'Platform App Example',
material: (context, platform) => MaterialAppData(
theme: ThemeData(
primarySwatch: Colors.blue,
),
),
home: const MyHomePage(),
);
}
}

class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});

@override
Widget build(BuildContext context) => PlatformScaffold(
appBar: PlatformAppBar(
title: Text('Hello World'),
),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: ListView(
children: [
SelectablePlatformListTile(
title: Text('List Tile 1'),
),
SelectablePlatformListTile(
title: Text('List Tile 2'),
),
SelectablePlatformListTile(
title: Text('List Tile 3'),
),
],
),
),
],
),
);
}
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: enough_platform_widgets
description: Useful platform aware widgets to bring a Material app to Cupertino.
version: 0.7.2
version: 0.7.3
homepage: https://github.com/Enough-Software/enough_platform_widgets

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
cupertino_stepper: ^0.2.1
cupertino_progress_bar: ^0.2.0
flutter:
sdk: flutter
flutter_platform_widgets: ^3.0.0
flutter_platform_widgets: ^3.3.5

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 578b3f4

Please sign in to comment.