0

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
5
  • Can you include your code-snippet that you've tried so far ? Commented Oct 11, 2022 at 16:53
  • We are not able to see expected output image. Commented Oct 11, 2022 at 16:59
  • i am sorry i am not able to include my image in flutter .. Commented Oct 11, 2022 at 17:04
  • In my alert box i want to add tick mark on top half inner side and half outer side Commented 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. Commented Oct 11, 2022 at 17:14

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.