24 lines
439 B
Dart
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,
|
|
),
|
|
);
|
|
}
|
|
}
|