Created
April 26, 2020 14:45
-
-
Save IhwanID/826fc35e34e5334e4419f49a4189101d to your computer and use it in GitHub Desktop.
Loading widget with message in flutter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class Loading extends StatelessWidget { | |
final String msg; | |
Loading({this.msg}); | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
CircularProgressIndicator(), | |
SizedBox( | |
height: 20, | |
), | |
Text(msg) | |
], | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment