This commit is contained in:
2025-12-03 17:28:49 +09:00
parent 36f93ccbcc
commit 526377bb73
18 changed files with 926 additions and 448 deletions
+24
View File
@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
class ResponsiveContainer extends StatelessWidget {
final Widget child;
final double maxWidth;
final double maxHeight;
const ResponsiveContainer({
Key? key,
required this.child,
this.maxWidth = 600.0,
this.maxHeight = 1000.0,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Center(
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: maxWidth, maxHeight: maxHeight),
child: child,
),
);
}
}