I want to show popup box above button navigation when user pressed ‘beranda’ button, it’s possible using showdialog? but how can I remove that dark background
2
use
showDialog<void>( barrierColor: Color(0x01000000), )
you can use custom pop box like this as a widget easy to use :
customAlert() { showDialog( context: context, builder: (BuildContext context) { return SizedBox( height: MediaQuery.of(context).size.height / 2, child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( margin: const EdgeInsets.all(10), height: 150, decoration: const BoxDecoration( borderRadius: BorderRadius.all( Radius.circular(16.0), ), color: Colors.blue, ), child: const Center( child: Text("Add Your Text"), ), ), ], ), ); }, ); }
Click here to cancel reply.
2
Answers
use
you can use custom pop box like this as a widget easy to use :