Created
January 20, 2019 11:37
-
-
Save mmanflori/23511e1bdab98e73c1f0773238556e41 to your computer and use it in GitHub Desktop.
boxdecoration2.dart
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(MeineApp()); | |
class MeineApp extends StatelessWidget{ | |
@override | |
Widget build(BuildContext context){ | |
return MaterialApp( | |
title: "Beispiel", | |
home: new Scaffold( | |
body: Center( | |
child: new Container( | |
width: 100.0, | |
height: 100.0, | |
child: Center(child: new Text("Hello")), | |
decoration: new BoxDecoration( | |
border: new Border.all( | |
color:Colors.black, | |
width: 2.0, | |
style: BorderStyle.solid, | |
), | |
color: Colors.blue, | |
borderRadius: BorderRadius.all( | |
new Radius.circular( | |
10.0 | |
) | |
), | |
boxShadow: [new BoxShadow( | |
color: Colors.grey, | |
offset: new Offset(3.0, 3.0), | |
blurRadius: 5.0, | |
)], | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment