- 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.
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'dart:async';
 | |
| 
 | |
| import 'package:marco/controller/my_controller.dart';
 | |
| import 'package:marco/helpers/widgets/my_text_utils.dart';
 | |
| import 'package:flutter/material.dart';
 | |
| 
 | |
| class AuthLayoutController extends MyController {
 | |
|   final GlobalKey<ScaffoldState> scaffoldKey = GlobalKey();
 | |
|   final scrollKey = GlobalKey();
 | |
|   List<String> dummyTexts =
 | |
|       List.generate(12, (index) => MyTextUtils.getDummyText(60));
 | |
|   int animatedCarouselSize = 3;
 | |
|   int selectedAnimatedCarousel = 0;
 | |
|   final PageController animatedPageController = PageController(initialPage: 0);
 | |
|   Timer? timerAnimation;
 | |
| 
 | |
|   @override
 | |
|   void onInit() {
 | |
|     timerAnimation = Timer.periodic(Duration(seconds: 5), (Timer timer) {
 | |
|       if (selectedAnimatedCarousel < animatedCarouselSize - 1) {
 | |
|         selectedAnimatedCarousel++;
 | |
|       } else {
 | |
|         selectedAnimatedCarousel = 0;
 | |
|       }
 | |
|       if (animatedPageController.hasClients) {
 | |
|         animatedPageController.animateToPage(
 | |
|           selectedAnimatedCarousel,
 | |
|           duration: Duration(milliseconds: 600),
 | |
|           curve: Curves.ease,
 | |
|         );
 | |
|       }
 | |
|       update();
 | |
|     });
 | |
|     super.onInit();
 | |
|   }
 | |
| 
 | |
|   void onChangeAnimatedCarousel(int value) {
 | |
|     selectedAnimatedCarousel = value;
 | |
|     update();
 | |
|   }
 | |
| }
 |