implemented light brightness slider

optimised state emit to only emit when change is detected
This commit is contained in:
Mohammad Salameh
2024-03-03 15:00:13 +03:00
parent 643b206d4c
commit 4cfae85f9c
7 changed files with 116 additions and 5 deletions

View File

@ -6,19 +6,22 @@ class DefaultContainer extends StatelessWidget {
required this.child,
this.height,
this.width,
this.color,
});
final double? height;
final double? width;
final Widget child;
final Color? color;
@override
Widget build(BuildContext context) {
return Container(
height: height,
width: width,
decoration: BoxDecoration(
color: Colors.white,
color: color ?? Colors.white,
borderRadius: BorderRadius.circular(20),
),
padding: const EdgeInsets.all(10),