0% found this document useful (0 votes)
171 views

Alert Dialog Using Flutter PDF

Uploaded by

mintesnot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
171 views

Alert Dialog Using Flutter PDF

Uploaded by

mintesnot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
File C:\UsersiMifavAndroidStudloProjects\uter_appleasylstilb\nome\Homedart import 'package:flutter/material.dart'; class Home extends StatelessWidget { Widget build(BuildContext context) ( 2 3 4 5 @override 6 7 8 return Center ( 9 child: Container( 10 color: Colors.blueGrey, 1 child: raisedbutton(), 12 De 1304 14} 15 class raisedbutton extends StatelessWidget( 17 Widget build(BuildContext context) ( 18 RaisedButton button = RaisedButton(onPressed:() {alert( context) 3}, 19 color: Colors.blue, 20 elevation: 6.0, 21 padding: EdgeInsets.all(6), 22 child: Text ('ClickMe'), 2300 24 return Container (child: button,height: 50,width: 88,); 250) 26 27 void alert (BuildContext context) { 28 var alertDialog = AlertDialog( 29 content: Text ('Wow that is great have a nice time’), 30 title: Text (‘wow that is greate'), 31 Me 32 33 showDialog( 34 context: context, 35 builder: (BuildContext) { 36 37 return alertDialog; 38 ) 39s 40 } 41 } 42 43 44} Page 1 of2 File C:\UsersiMifavAndroidStudloProjects\uter_appleasylstilb\nome\Homedart 45 46 Page 2 of2

You might also like