[pointer_interceptor] Migrate RaisedButton to ElevatedButton (#266)

RaisedButton was deprecated recently
This commit is contained in:
Ian Hickson
2021-01-20 16:21:47 -08:00
committed by GitHub
parent b0af30af72
commit 9b3839cc25
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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(...),
)
```

View File

@ -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: () {

View File

@ -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: