- 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.
29 lines
726 B
Dart
29 lines
726 B
Dart
import 'package:marco/helpers/widgets/my_display_type.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 MyFlexItem extends StatelessWidget {
|
|
final Widget child;
|
|
final String? sizes;
|
|
final String? displays;
|
|
|
|
Map<MyScreenMediaType, double> get flex =>
|
|
MyScreenMedia.getFlexedDataFromString(sizes);
|
|
|
|
Map<MyScreenMediaType, MyDisplayType> get display =>
|
|
MyScreenMedia.getDisplayDataFromString(displays);
|
|
|
|
MyFlexItem({
|
|
super.key,
|
|
required this.child,
|
|
this.sizes,
|
|
this.displays,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return child;
|
|
}
|
|
}
|