merge-requests/10/head
unknown 6 years ago
parent ac4fb8d508
commit 2cc929fa88

@ -19,7 +19,7 @@ class _AppDrawerState extends State<AppDrawer> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return RoundedContainer( return RoundedContainer(
child: Container( child: Container(
margin: EdgeInsets.only(top: SizeConfig.heightMultiplier * 6), margin: EdgeInsets.only(top: SizeConfig.heightMultiplier * 9),
child: Drawer( child: Drawer(
child: ListView( child: ListView(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,

@ -23,7 +23,7 @@ class CardWithBgWidget extends StatelessWidget {
return Stack( return Stack(
children: <Widget>[ children: <Widget>[
RoundedContainer( RoundedContainer(
Container( child:Container(
height: SizeConfig.screenHeight * heightPercentage, height: SizeConfig.screenHeight * heightPercentage,
width: SizeConfig.screenWidth * widthPercentage, width: SizeConfig.screenWidth * widthPercentage,
), ),
@ -36,7 +36,7 @@ class CardWithBgWidget extends StatelessWidget {
Positioned( Positioned(
left: 10, left: 10,
child: RoundedContainer( child: RoundedContainer(
Container( child:Container(
padding: const EdgeInsets.all(15.0), padding: const EdgeInsets.all(15.0),
height: SizeConfig.screenHeight * heightPercentage, height: SizeConfig.screenHeight * heightPercentage,
width: SizeConfig.screenWidth * widthPercentage, width: SizeConfig.screenWidth * widthPercentage,

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

Loading…
Cancel
Save