mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
light switch
code refactor
This commit is contained in:
@ -7,12 +7,15 @@ class DefaultContainer extends StatelessWidget {
|
||||
this.height,
|
||||
this.width,
|
||||
this.color,
|
||||
this.boxConstraints,
|
||||
this.margin,
|
||||
});
|
||||
|
||||
final double? height;
|
||||
final double? width;
|
||||
final Widget child;
|
||||
|
||||
final BoxConstraints? boxConstraints;
|
||||
final EdgeInsets? margin;
|
||||
final Color? color;
|
||||
|
||||
@override
|
||||
@ -20,6 +23,8 @@ class DefaultContainer extends StatelessWidget {
|
||||
return Container(
|
||||
height: height,
|
||||
width: width,
|
||||
margin: margin,
|
||||
constraints: boxConstraints,
|
||||
decoration: BoxDecoration(
|
||||
color: color ?? Colors.white,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
|
Reference in New Issue
Block a user