Skip to content

Commit 190a2fd

Browse files
committed
2 parents 8b9e945 + dcf1b0c commit 190a2fd

File tree

6 files changed

+45
-6
lines changed

6 files changed

+45
-6
lines changed

.github/workflows/dart.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Dart
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
pull_request:
12+
branches: [ "main" ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
# Note: This workflow uses the latest stable version of the Dart SDK.
22+
# You can specify other versions if desired, see documentation here:
23+
# https://github.com/dart-lang/setup-dart/blob/main/README.md
24+
# - uses: dart-lang/setup-dart@v1
25+
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
26+
27+
- name: Install dependencies
28+
run: dart pub get
29+
30+
# Uncomment this step to verify the use of 'dart format' on each commit.
31+
# - name: Verify formatting
32+
# run: dart format --output=none --set-exit-if-changed .
33+
34+
# Consider passing '--fatal-infos' for slightly stricter analysis.
35+
- name: Analyze project source
36+
run: dart analyze

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.7.2
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)!
3+
14
## 0.7.1
25
- Add `onTap` handler for `PlatformDropdownButton` and `CupertinoDropdownButton`.
36

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Platform widgets use their material or cupertino equivalent based on the chosen
2323
* `PlatformFilledButtonIcon` uses an `ElevatedButton.filled` on material and a `CupertinoButton.filled` on cupertino
2424
* `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-
* `PlatformListTile` provides a ListTile implementation for both material and cupertino
26+
* `SelectablePlatformListTile` provides a ListTile implementation for both material and cupertino
2727
* `PlatformPageScaffold` provides a `PlatformScaffold` with the additional option to define a bottom bar.
2828
* `PlatformPopupButton` uses an action sheet on cupertino and a popup button on material.
2929
* `PlatformProgressIndicator` uses a `CircularProgressIndicator` on material and a `CupertinoActivityIndicator` on cupertino
@@ -57,7 +57,7 @@ Currently the following cupertino widgets are provided:
5757
Add this as a dependency to your `pubspec.yaml`:
5858
```
5959
dependencies:
60-
enough_platform_widgets: ^0.7.0
60+
enough_platform_widgets: ^0.7.2
6161
```
6262

6363
The latest version or `enough_platform_widgets` is [![enough_platform_widgets version](https://img.shields.io/pub/v/enough_platform_widgets.svg)](https://pub.dartlang.org/packages/enough_platform_widgets).

lib/src/platform/platform.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ export 'dialog_helper.dart';
2323
export 'platform_icons.dart';
2424
export 'platform_toggle_buttons.dart';
2525
export 'platform_inkwell.dart';
26-
export 'platform_list_tile.dart';
26+
export 'selectable_platform_list_tile.dart';

lib/src/platform/platform_list_tile.dart renamed to lib/src/platform/selectable_platform_list_tile.dart

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

55
/// Uses either a `ListTile` or a `CupertinoListTile`
6-
class PlatformListTile extends StatelessWidget {
7-
const PlatformListTile({
6+
class SelectablePlatformListTile extends StatelessWidget {
7+
const SelectablePlatformListTile({
88
Key? key,
99
this.widgetKey,
1010
this.leading,

pubspec.yaml

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

66
environment:

0 commit comments

Comments
 (0)