add button edit image

This commit is contained in:
Valentin CZERYBA 2024-12-14 19:10:23 +01:00
parent 32281233e0
commit 49a108905c
2 changed files with 17 additions and 2 deletions

View File

@ -63,8 +63,6 @@ class CameraState extends State<Camera> {
_initializeControllerFuture = _controller.initialize();
}
Future<void> getCamera() async {}
Future<void> pickImage() async {
final imagePicker = ImagePicker();
final pickedFile = await imagePicker.pickImage(source: ImageSource.gallery);

View File

@ -449,6 +449,23 @@ class _EditEventState extends State<EditEvent>
);
},
)),
Padding(
padding: EdgeInsets.symmetric(horizontal: 15),
child: ElevatedButton.icon(
onPressed: () {
// Define your action here
print("Edit Image button pressed");
},
icon: Icon(Icons.edit, size: 16), // Edit icon
label: Text("Edit Image"), // Button text
style: ElevatedButton.styleFrom(
backgroundColor: Colors.blue, // Button color
foregroundColor: Colors.white, // Text color
padding:
EdgeInsets.symmetric(horizontal: 10, vertical: 5),
),
),
),
Padding(
//padding: const EdgeInsets.only(left:15.0,right: 15.0,top:0,bottom: 0),
padding: EdgeInsets.symmetric(horizontal: 15),