I have created a Dialog Widgets. It will show the Error when i write AlertDialog.adaptive. withour adaptive Widgets No erorr. Is anyone know how to fix this error.
First of all you need to update your flutter version to 3.13 or higher version, because AlertDialog.adaptive feature came with 3.13.
The 3.13 framework improvement – https://medium.com/@ak187429/flutter-3-13-framework-improvements-41be37e925d8.
On the writing, the writer mentions abaout AlertDialog.adaptive.
There is example code for AlertDialog.adaptive
2
Answers
First of all you need to update your flutter version to 3.13 or higher version, because AlertDialog.adaptive feature came with 3.13.
The 3.13 framework improvement – https://medium.com/@ak187429/flutter-3-13-framework-improvements-41be37e925d8.
On the writing, the writer mentions abaout AlertDialog.adaptive.
There is example code for AlertDialog.adaptive
My flutter version – 3.13.8,
My dart version – 3.1.4,
This code works on my computer 🙂
I run your Code what i Did i declare a function showDialoog here is the code
and the result is in ScreenShot its working fine