Skip to content

Commit 578b3f4

Browse files
committed
feat: release v0.7.3
1 parent 543d8d5 commit 578b3f4

File tree

4 files changed

+64
-5
lines changed

4 files changed

+64
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.3
2+
- Update dependencies
3+
- Add simple example
4+
15
## 0.7.2
26
- 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)!
37

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Licensed commercially friendly under the [MIT License](LICENSE).
1313
Platform widgets use their material or cupertino equivalent based on the chosen platform.
1414

1515
* `DecoratedPlatformTextField` provides a cross platform replacement for the material `TextField`
16+
* `DensePlatformIconButton` replaces the material `IconButton`
1617
* `DialogHelper` helps to show platform specific dialogs
1718
* `PlatformBottomBar` shows a `BottomAppBar` on material and a `CupertinoBar` on cupertino
1819
* `PlatformCheckboxListTile` is a platform aware simple checkbox list tile
@@ -21,9 +22,7 @@ Platform widgets use their material or cupertino equivalent based on the chosen
2122
* `PlatformDialogActionText` provides a platform aware dialog action text
2223
* `PlatformDropdownButton` is a replacement for the material `DropdownButton`
2324
* `PlatformFilledButtonIcon` uses an `ElevatedButton.filled` on material and a `CupertinoButton.filled` on cupertino
24-
* `DensePlatformIconButton` replaces the material `IconButton`
2525
* `PlatformInkWell` is a rectangular area of a that responds to touch and is based either on `InkWell` or on `CupertinoInkWell`
26-
* `SelectablePlatformListTile` provides a ListTile implementation for both material and cupertino
2726
* `PlatformPageScaffold` provides a `PlatformScaffold` with the additional option to define a bottom bar.
2827
* `PlatformPopupButton` uses an action sheet on cupertino and a popup button on material.
2928
* `PlatformProgressIndicator` uses a `CircularProgressIndicator` on material and a `CupertinoActivityIndicator` on cupertino
@@ -34,6 +33,7 @@ Platform widgets use their material or cupertino equivalent based on the chosen
3433
* `PlatformTextButtonIcon` is a simple replacement for `TextButton.icon`
3534
* `PlatformToggleButtons` provides a platform aware `ToggleButtons` replacement
3635
* `PlatformToolbar` provides a toolbar option
36+
* `SelectablePlatformListTile` provides a ListTile implementation for both material and cupertino
3737
* `showPlatformTimePicker()` displays a platform aware time picker
3838
* `showPlatformDatePicker()` displays a platform aware date picker
3939
* Additionally, all [flutter_platform_widgets](https://pub.dev/packages/flutter_platform_widgets) are available.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import 'package:enough_platform_widgets/enough_platform_widgets.dart';
2+
import 'package:flutter/material.dart';
3+
4+
void main() {
5+
runApp(const MyApp());
6+
}
7+
8+
class MyApp extends StatelessWidget {
9+
const MyApp({Key? key}) : super(key: key);
10+
11+
// This widget is the root of your application.
12+
@override
13+
Widget build(BuildContext context) {
14+
return PlatformApp(
15+
title: 'Platform App Example',
16+
material: (context, platform) => MaterialAppData(
17+
theme: ThemeData(
18+
primarySwatch: Colors.blue,
19+
),
20+
),
21+
home: const MyHomePage(),
22+
);
23+
}
24+
}
25+
26+
class MyHomePage extends StatelessWidget {
27+
const MyHomePage({super.key});
28+
29+
@override
30+
Widget build(BuildContext context) => PlatformScaffold(
31+
appBar: PlatformAppBar(
32+
title: Text('Hello World'),
33+
),
34+
body: Column(
35+
crossAxisAlignment: CrossAxisAlignment.start,
36+
children: [
37+
Expanded(
38+
child: ListView(
39+
children: [
40+
SelectablePlatformListTile(
41+
title: Text('List Tile 1'),
42+
),
43+
SelectablePlatformListTile(
44+
title: Text('List Tile 2'),
45+
),
46+
SelectablePlatformListTile(
47+
title: Text('List Tile 3'),
48+
),
49+
],
50+
),
51+
),
52+
],
53+
),
54+
);
55+
}

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: enough_platform_widgets
22
description: Useful platform aware widgets to bring a Material app to Cupertino.
3-
version: 0.7.2
3+
version: 0.7.3
44
homepage: https://github.com/Enough-Software/enough_platform_widgets
55

66
environment:
7-
sdk: ">=2.17.0 <3.0.0"
7+
sdk: ">=2.17.0 <4.0.0"
88
flutter: ">=3.0.0"
99

1010
dependencies:
1111
cupertino_stepper: ^0.2.1
1212
cupertino_progress_bar: ^0.2.0
1313
flutter:
1414
sdk: flutter
15-
flutter_platform_widgets: ^3.0.0
15+
flutter_platform_widgets: ^3.3.5
1616

1717
dev_dependencies:
1818
flutter_test:

0 commit comments

Comments
 (0)