title: How to show alertdialog when button is pressed?
body: <p>Following is the part of my homepage.dart which is running fine but on click of IconButton nothing happens.</p>
  
  <pre><code> ...
   return Scaffold(
    appBar: AppBar(
      title: Text('Lorem Ipsum'),
      leading: IconButton(      
        icon: Icon(Icons.info),
        onPressed: () =&gt; AboutWidget(),
      ),
    ),
    body: ...
  </code></pre>
  
  <p>This is my about_widget.dart file where my AboutWidget is defined.
  What am i doing wrong?</p>
  
  <pre><code> import 'package:flutter/material.dart';
  class AboutWidget extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return AlertDialog(
        title: Text('data'),
      );
    }
  }
  </code></pre>