Skip to content

Instantly share code, notes, and snippets.

@mmanflori
Created January 20, 2019 10:44
Show Gist options
  • Save mmanflori/094818c6a99beaa4ef33c2ffe2a2bde5 to your computer and use it in GitHub Desktop.
Save mmanflori/094818c6a99beaa4ef33c2ffe2a2bde5 to your computer and use it in GitHub Desktop.
BoxDecoration Example
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
)
),
),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment