Created with <3 with dartpad.dev.
Created
April 26, 2023 06:45
-
-
Save saifullahkhancs/8bb527c0855d5971f564aa8af9dcf7af to your computer and use it in GitHub Desktop.
delicate-vibration-1840
This file contains 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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build (BuildContext context) { | |
return MaterialApp( | |
home:Scaffold( | |
appBar: AppBar ( | |
title: Text('Container Widget Example'), | |
), | |
body : Container( | |
padding:EdgeInsets.all(16), | |
margin : EdgeInsets.all(16), | |
decoration: BoxDecoration( | |
border: Border.all( | |
color:Colors.blue, | |
width:2, | |
), | |
), | |
child: Text ( | |
'Hello World!', | |
style: TextStyle(fontSize: 24), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment