|
|
|
|
@ -6,6 +6,7 @@ import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class RoundedContainer extends StatefulWidget {
|
|
|
|
|
final double width;
|
|
|
|
|
final double height;
|
|
|
|
|
final double raduis;
|
|
|
|
|
final Color backgroundColor;
|
|
|
|
|
final double margin;
|
|
|
|
|
@ -21,8 +22,9 @@ class RoundedContainer extends StatefulWidget {
|
|
|
|
|
final double borderWidth;
|
|
|
|
|
|
|
|
|
|
RoundedContainer(
|
|
|
|
|
{this.child,
|
|
|
|
|
{@required this.child,
|
|
|
|
|
this.width,
|
|
|
|
|
this.height,
|
|
|
|
|
this.raduis = 10,
|
|
|
|
|
this.backgroundColor = Colors.white,
|
|
|
|
|
this.margin = 10,
|
|
|
|
|
@ -45,8 +47,8 @@ class _RoundedContainerState extends State<RoundedContainer> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
width: widget.width?? null,
|
|
|
|
|
height: null,
|
|
|
|
|
width: widget.width,
|
|
|
|
|
height: widget.height,
|
|
|
|
|
margin: EdgeInsets.all(widget.margin),
|
|
|
|
|
decoration: widget.showBorder == true
|
|
|
|
|
? BoxDecoration(
|
|
|
|
|
|