- 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.
23 lines
680 B
Dart
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)));
|
|
}
|
|
}
|