Try to search your question here, if you can't find : Ask Any Question Now ?

Show Alert_Dialog in bottom of view

HomeCategory: stackoverflowShow Alert_Dialog in bottom of view
gaurav asked 2 weeks ago

I Have an Alert dialog menu which contain a grid view containing some button, I need my Alert dialog to be shown on bottom of page not in the middle. My question is how to do it.

  Widget _buildAboutDialog(BuildContext context)  {
    return new AlertDialog(
    backgroundColor: Colors.black,

  content: Container(
    width: MediaQuery.of(context).size.width * 0.9,
    height: MediaQuery.of(context).size.height * 0.25,
    child: Column(
      mainAxisSize: MainAxisSize.min,
      mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
    Expanded(
    child: new GridView.count(
      crossAxisCount: 4,
        children: new List<Widget>.generate(8, (index) {
              return new GridTile(
                  child: new Card(
                  color: Colors.blue.shade200,
                  child: new Center(
                  child: new Text('$index'),
                    )
                  )
              );
                })),
      ) ],
  ),),
);


  }
}
1 Answers
Best Answer
Amit answered 2 weeks ago
Your Answer

3 + 5 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com