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

15 lines
371 B
Dart

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),
child: this.child,
);
}
}