add button edit image
This commit is contained in:
parent
32281233e0
commit
49a108905c
@ -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);
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user