marco.pms.mobileapp/lib/helpers/widgets/my_responsive.dart
Vaibhav Surve 5c53a3f4be Refactor project structure and rename from 'marco' to 'on field work'
- Updated import paths across multiple files to reflect the new package name.
- Changed application name and identifiers in CMakeLists.txt, Runner.rc, and other configuration files.
- Modified web index.html and manifest.json to update the app title and name.
- Adjusted macOS and Windows project settings to align with the new application name.
- Ensured consistency in naming across all relevant files and directories.
2025-11-22 14:20:37 +05:30

23 lines
680 B
Dart

import 'package:on_field_work/helpers/widgets/my_screen_media.dart';
import 'package:on_field_work/helpers/widgets/my_screen_media_type.dart';
import 'package:flutter/material.dart';
class MyResponsive extends StatelessWidget {
final Widget Function(BuildContext, BoxConstraints, MyScreenMediaType)
builder;
const MyResponsive({
super.key,
required this.builder,
});
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) => builder(
context,
constraints,
MyScreenMedia.getTypeFromWidth(MediaQuery.of(context).size.width)));
}
}