- Created CMakeLists.txt for Flutter and runner components. - Implemented resource script (Runner.rc) for application metadata. - Developed main entry point (main.cpp) for the Windows application. - Added FlutterWindow class to manage the Flutter view within a Win32 window. - Implemented utility functions for console management and command line argument parsing. - Established Win32Window class for high DPI-aware window handling. - Included application icon and manifest for proper Windows integration. - Set up build configurations and dependencies for the Flutter application on Windows.
23 lines
664 B
Dart
23 lines
664 B
Dart
import 'package:marco/helpers/widgets/my_screen_media.dart';
|
|
import 'package:marco/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)));
|
|
}
|
|
}
|