Added translations, fixed chips theming

This commit is contained in:
Anton Stubenbord
2023-01-20 12:46:46 +01:00
parent f9dfddf704
commit fa3059218d
24 changed files with 399 additions and 270 deletions

View File

@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
class ColoredChipWrapper extends StatelessWidget {
final Color? backgroundColor;
final Widget child;
const ColoredChipWrapper({
super.key,
this.backgroundColor,
required this.child,
});
@override
Widget build(BuildContext context) {
Color color = backgroundColor ?? Colors.lightGreen[50]!;
return Theme(
data: Theme.of(context).copyWith(
canvasColor: color,
),
child: child,
);
}
}