mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-22 13:57:29 +01:00
16 lines
367 B
Dart
16 lines
367 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: child,
|
|
);
|
|
}
|
|
}
|