1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-22 13:57:29 +01:00
Jisho-Study-Tool/lib/components/common/opaque_box.dart

16 lines
367 B
Dart
Raw 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
}