瀏覽代碼

Changed deprecated RaisedButton to ElevatedButton

flutter-beta
Julian Steenbakker 5 年之前
父節點
當前提交
b70f8f04d0
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      example/lib/main.dart

+ 4
- 4
example/lib/main.dart 查看文件

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


Loading…
取消
儲存