add second button in camera

This commit is contained in:
Valentin CZERYBA 2024-07-18 20:55:38 +02:00
parent e241a79289
commit d35e606ee7

View File

@ -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.
onPressed: () async {
// 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),
),
);
)
],
)));
}
}