mirror of
https://github.com/flutter/packages.git
synced 2025-06-30 23:03:11 +08:00
[pointer_interceptor] Migrate RaisedButton to ElevatedButton (#266)
RaisedButton was deprecated recently
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
## 0.8.0+2
|
||||||
|
|
||||||
|
* Use `ElevatedButton` instead of the deprecated `RaisedButton` in example and docs.
|
||||||
|
|
||||||
## 0.8.0+1
|
## 0.8.0+1
|
||||||
|
|
||||||
* Update README.md so images render in pub.dev
|
* Update README.md so images render in pub.dev
|
||||||
|
@ -46,7 +46,7 @@ There's two ways that the `PointerInterceptor` widget can be used to solve the p
|
|||||||
|
|
||||||
```dart
|
```dart
|
||||||
PointerInterceptor(
|
PointerInterceptor(
|
||||||
child: RaisedButton(...),
|
child: ElevatedButton(...),
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
key: const Key('transparent-button'),
|
key: const Key('transparent-button'),
|
||||||
child: const Text('Never calls onPressed'),
|
child: const Text('Never calls onPressed'),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@ -127,7 +127,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
PointerInterceptor(
|
PointerInterceptor(
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
key: const Key('clickable-button'),
|
key: const Key('clickable-button'),
|
||||||
child: const Text('Works As Expected'),
|
child: const Text('Works As Expected'),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: pointer_interceptor
|
name: pointer_interceptor
|
||||||
description: A widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.
|
description: A widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web.
|
||||||
version: 0.8.0+1
|
version: 0.8.0+2
|
||||||
repository: https://github.com/flutter/packages
|
repository: https://github.com/flutter/packages
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Reference in New Issue
Block a user