APP_NEW/lib/Class/Screenshot/screenshot_widget.dart
2025-03-11 21:17:14 +08:00

24 lines
439 B
Dart

import 'package:flutter/material.dart';
class ScreenshotWidget extends StatelessWidget {
final Widget child;
final double width;
const ScreenshotWidget({
super.key,
required this.child,
this.width = 2048,
});
@override
Widget build(BuildContext context) {
return Directionality(
textDirection: TextDirection.ltr,
child: SizedBox(
width: width,
child: child,
),
);
}
}