Skip to content

Instantly share code, notes, and snippets.

@mmanflori
Created January 20, 2019 11:37
Show Gist options
  • Save mmanflori/23511e1bdab98e73c1f0773238556e41 to your computer and use it in GitHub Desktop.
Save mmanflori/23511e1bdab98e73c1f0773238556e41 to your computer and use it in GitHub Desktop.
boxdecoration2.dart
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