add second button in camera
This commit is contained in:
parent
e241a79289
commit
d35e606ee7
@ -89,7 +89,18 @@ class CameraState extends State<Camera> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
floatingActionButton: FloatingActionButton(
|
floatingActionButton: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: <Widget>[
|
||||||
|
FloatingActionButton(
|
||||||
|
backgroundColor: Colors.green,
|
||||||
|
onPressed: () => {},
|
||||||
|
child: Icon(Icons.play_arrow),
|
||||||
|
),
|
||||||
|
SizedBox(width: 40),
|
||||||
|
FloatingActionButton(
|
||||||
// Provide an onPressed callback.
|
// Provide an onPressed callback.
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
// Take the Picture in a try / catch block. If anything goes wrong,
|
// Take the Picture in a try / catch block. If anything goes wrong,
|
||||||
@ -120,7 +131,8 @@ class CameraState extends State<Camera> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: const Icon(Icons.camera_alt),
|
child: const Icon(Icons.camera_alt),
|
||||||
),
|
)
|
||||||
);
|
],
|
||||||
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user