Jisho-Study-Tool/lib/components/common/opaque_box.dart

16 lines
367 B
Dart
Raw Permalink Normal View History

2021-08-08 23:16:54 +02:00
import 'package:flutter/material.dart';
class OpaqueBox extends StatelessWidget {
final Widget child;
const OpaqueBox({required this.child, Key? key,}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(color: Theme.of(context).scaffoldBackgroundColor),
2021-12-01 23:09:53 +01:00
child: child,
2021-08-08 23:16:54 +02:00
);
}
2021-12-01 23:09:53 +01:00
}