Przeglądaj źródła

Changed deprecated RaisedButton to ElevatedButton

flutter-beta
Julian Steenbakker 5 lat temu
rodzic
commit
b70f8f04d0
1 zmienionych plików z 4 dodań i 4 usunięć
  1. +4
    -4
      example/lib/main.dart

+ 4
- 4
example/lib/main.dart Wyświetl plik

@@ -56,7 +56,7 @@ class _QRViewExampleState extends State<QRViewExample> {
children: <Widget>[
Container(
margin: EdgeInsets.all(8),
child: RaisedButton(
child: ElevatedButton(
onPressed: () async {
await controller?.toggleFlash();
setState(() {});
@@ -70,7 +70,7 @@ class _QRViewExampleState extends State<QRViewExample> {
),
Container(
margin: EdgeInsets.all(8),
child: RaisedButton(
child: ElevatedButton(
onPressed: () async {
await controller?.flipCamera();
setState(() {});
@@ -95,7 +95,7 @@ class _QRViewExampleState extends State<QRViewExample> {
children: <Widget>[
Container(
margin: EdgeInsets.all(8),
child: RaisedButton(
child: ElevatedButton(
onPressed: () async {
await controller?.pauseCamera();
},
@@ -104,7 +104,7 @@ class _QRViewExampleState extends State<QRViewExample> {
),
Container(
margin: EdgeInsets.all(8),
child: RaisedButton(
child: ElevatedButton(
onPressed: () async {
await controller?.resumeCamera();
},


Ładowanie…
Anuluj
Zapisz