- 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.
68 lines
2.6 KiB
Dart
68 lines
2.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
|
import 'package:marco/controller/other/google_map_screen_controller.dart';
|
|
import 'package:marco/helpers/theme/app_theme.dart';
|
|
import 'package:marco/helpers/utils/mixins/ui_mixin.dart';
|
|
import 'package:marco/helpers/widgets/my_breadcrumb.dart';
|
|
import 'package:marco/helpers/widgets/my_breadcrumb_item.dart';
|
|
import 'package:marco/helpers/widgets/my_container.dart';
|
|
import 'package:marco/helpers/widgets/my_spacing.dart';
|
|
import 'package:marco/helpers/widgets/my_text.dart';
|
|
import 'package:marco/view/layouts/layout.dart';
|
|
|
|
class GoogleMapScreen extends StatefulWidget {
|
|
const GoogleMapScreen({super.key});
|
|
|
|
@override
|
|
State<GoogleMapScreen> createState() => _GoogleMapScreenState();
|
|
}
|
|
|
|
class _GoogleMapScreenState extends State<GoogleMapScreen> with UIMixin {
|
|
GoogleMapScreenController controller = Get.put(GoogleMapScreenController());
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Layout(
|
|
child: GetBuilder(
|
|
init: controller,
|
|
builder: (controller) {
|
|
return Column(
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
children: [
|
|
Padding(
|
|
padding: MySpacing.x(flexSpacing),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
MyText.titleMedium(
|
|
"Google Map",
|
|
fontSize: 18,
|
|
fontWeight: 600,
|
|
),
|
|
MyBreadcrumb(
|
|
children: [
|
|
MyBreadcrumbItem(name: 'Maps'),
|
|
MyBreadcrumbItem(name: 'Google Map', active: true),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
MySpacing.height(flexSpacing),
|
|
Padding(
|
|
padding: MySpacing.x(flexSpacing),
|
|
child: MyContainer.none(
|
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
|
height: 600,
|
|
child: GoogleMap(
|
|
onMapCreated: controller.onMapCreated,
|
|
initialCameraPosition: CameraPosition(target: controller.center, zoom: 11.0),
|
|
),
|
|
)),
|
|
],
|
|
);
|
|
}));
|
|
}
|
|
}
|