Files
syncrow-app/lib/features/shared_widgets/default_container.dart
Mohammad Salameh 4cfae85f9c implemented light brightness slider
optimised state emit to only emit when change is detected
2024-03-03 15:00:13 +03:00

32 lines
624 B
Dart

import 'package:flutter/material.dart';
class DefaultContainer extends StatelessWidget {
const DefaultContainer({
super.key,
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: color ?? Colors.white,
borderRadius: BorderRadius.circular(20),
),
padding: const EdgeInsets.all(10),
child: child,
);
}
}