feature/edit-image #29

Merged
v4l3n71n merged 3 commits from feature/edit-image into main 2024-12-15 19:23:22 +00:00
2 changed files with 17 additions and 2 deletions
Showing only changes of commit 49a108905c - Show all commits

View File

@ -63,8 +63,6 @@ class CameraState extends State<Camera> {
_initializeControllerFuture = _controller.initialize(); _initializeControllerFuture = _controller.initialize();
} }
Future<void> getCamera() async {}
Future<void> pickImage() async { Future<void> pickImage() async {
final imagePicker = ImagePicker(); final imagePicker = ImagePicker();
final pickedFile = await imagePicker.pickImage(source: ImageSource.gallery); 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(
//padding: const EdgeInsets.only(left:15.0,right: 15.0,top:0,bottom: 0), //padding: const EdgeInsets.only(left:15.0,right: 15.0,top:0,bottom: 0),
padding: EdgeInsets.symmetric(horizontal: 15), padding: EdgeInsets.symmetric(horizontal: 15),