doneWidget method
Done widget
- for save the edit action and generate a new image as result.
Implementation
@override
Widget doneWidget(BoxConstraints constraints) {
return Container(
constraints: constraints,
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(6)),
gradient: const LinearGradient(colors: [Colors.green, Colors.greenAccent])),
child: Text(
'Done',
style: TextStyle(fontSize: 15, color: Colors.white),
),
);
}