Procházet zdrojové kódy

Changed deprecated RaisedButton to ElevatedButton

flutter-beta
Julian Steenbakker před 5 roky
rodič
revize
b70f8f04d0
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. +4
    -4
      example/lib/main.dart

+ 4
- 4
example/lib/main.dart Zobrazit soubor

@@ -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();
},


Načítá se…
Zrušit
Uložit