Created
June 22, 2025 20:53
-
-
Save ammarmekari/0e50fe6ba491aebc7161b775f0f6b225 to your computer and use it in GitHub Desktop.
Generated code from pixels2flutter.dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
colorSchemeSeed: Colors.green, | |
useMaterial3: true, | |
), | |
home: const ImageEditorScreen(), | |
); | |
} | |
} | |
class ImageEditorScreen extends StatefulWidget { | |
const ImageEditorScreen({super.key}); | |
@override | |
State<ImageEditorScreen> createState() => _ImageEditorScreenState(); | |
} | |
class _ImageEditorScreenState extends State<ImageEditorScreen> { | |
double _sliderValue = 0.0; | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.black, | |
body: Column( | |
children: [ | |
Expanded( | |
child: Image.network( | |
'https://placehold.co/600x800?description=A%20woman%20standing%20on%20a%20street%20in%20Paris', | |
fit: BoxFit.cover, | |
), | |
), | |
Container( | |
color: Colors.black, | |
padding: const EdgeInsets.symmetric(vertical: 16), | |
child: Column( | |
children: [ | |
Slider( | |
value: _sliderValue, | |
onChanged: (value) { | |
setState(() { | |
_sliderValue = value; | |
}); | |
}, | |
activeColor: Colors.green, | |
inactiveColor: Colors.grey, | |
min: 0.0, | |
max: 100.0, | |
), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.spaceAround, | |
children: [ | |
IconButton( | |
onPressed: () {}, | |
icon: const Icon( | |
Icons.undo, | |
color: Colors.white, | |
), | |
), | |
IconButton( | |
onPressed: () {}, | |
icon: const Icon( | |
Icons.edit, | |
color: Colors.green, | |
), | |
), | |
IconButton( | |
onPressed: () {}, | |
icon: const Icon( | |
Icons.close, | |
color: Colors.white, | |
), | |
), | |
IconButton( | |
onPressed: () {}, | |
icon: const Icon( | |
Icons.delete_outline, | |
color: Colors.white, | |
), | |
), | |
], | |
), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.spaceAround, | |
children: const [ | |
Text( | |
'Geri', | |
style: TextStyle(color: Colors.white), | |
), | |
Text( | |
'Fırça', | |
style: TextStyle(color: Colors.white), | |
), | |
Text( | |
'Silgi', | |
style: TextStyle(color: Colors.white), | |
), | |
Text( | |
'Kaldır', | |
style: TextStyle(color: Colors.white), | |
), | |
], | |
), | |
], | |
), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment