What can I do to design a alert box in flutter in which we have a tick mark on the top of the box half inner side and half outer side of the dialog box. Where we have some successful message
image
Md. Yeasin Sheikh
64.8k7 gold badges49 silver badges85 bronze badges
asked Oct 11, 2022 at 16:48
Himani Upadhyay
1012 silver badges10 bronze badges
-
Can you include your code-snippet that you've tried so far ?Md. Yeasin Sheikh– Md. Yeasin Sheikh2022年10月11日 16:53:09 +00:00Commented Oct 11, 2022 at 16:53
-
We are not able to see expected output image.Rohan Jariwala– Rohan Jariwala2022年10月11日 16:59:15 +00:00Commented Oct 11, 2022 at 16:59
-
i am sorry i am not able to include my image in flutter ..Himani Upadhyay– Himani Upadhyay2022年10月11日 17:04:36 +00:00Commented Oct 11, 2022 at 17:04
-
In my alert box i want to add tick mark on top half inner side and half outer sideHimani Upadhyay– Himani Upadhyay2022年10月11日 17:06:51 +00:00Commented Oct 11, 2022 at 17:06
-
You can wrap the widget with Transfrom.translate or if it is having transform, use it when it is doesnt need to have tap event.Md. Yeasin Sheikh– Md. Yeasin Sheikh2022年10月11日 17:14:00 +00:00Commented Oct 11, 2022 at 17:14
1 Answer 1
Something like this is probably what you want:
Stack(children: [
Positioned(
top: 16,
left: 0,
right: 0,
bottom: 0,
child: YourDialogWidget(),
),
Positioned(
top: 0,
left: 0,
right: 0,
child: YourCheckMarkWidget(size: 32),
),
]),
Customize as you see fit.
answered Oct 11, 2022 at 17:18
Gregory Conrad
1,64716 silver badges23 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-dart