mirror of
https://github.com/flutter/packages.git
synced 2025-06-29 22:33: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
|
||||
|
||||
* 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
|
||||
PointerInterceptor(
|
||||
child: RaisedButton(...),
|
||||
child: ElevatedButton(...),
|
||||
)
|
||||
```
|
||||
|
||||
|
@ -119,7 +119,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
RaisedButton(
|
||||
ElevatedButton(
|
||||
key: const Key('transparent-button'),
|
||||
child: const Text('Never calls onPressed'),
|
||||
onPressed: () {
|
||||
@ -127,7 +127,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
},
|
||||
),
|
||||
PointerInterceptor(
|
||||
child: RaisedButton(
|
||||
child: ElevatedButton(
|
||||
key: const Key('clickable-button'),
|
||||
child: const Text('Works As Expected'),
|
||||
onPressed: () {
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: pointer_interceptor
|
||||
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
|
||||
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user