Console/windows/runner/flutter_window.h
jean-philippe e20ea43a85 Initial commit: Svrnty Console Flutter application with GetWidget integration
- Implemented responsive dashboard UI with Material Design 3
- Integrated GetWidget 7.0.0 for modern UI components (GFAvatar, custom badges)
- Created collapsible navigation sidebar with smooth animations
- Built status cards grid with uniform badge sizing
- Added activity timeline with recent events
- Configured custom Svrnty branding (Crimson Red #F3574E, Slate Blue #5A6F7D)
- Set up development server on http://localhost:54952/
- Included Montserrat and IBM Plex Mono custom fonts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 13:47:58 -04:00

34 lines
928 B
C++

#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <memory>
#include "win32_window.h"
// A window that does nothing but host a Flutter view.
class FlutterWindow : public Win32Window {
public:
// Creates a new FlutterWindow hosting a Flutter view running |project|.
explicit FlutterWindow(const flutter::DartProject& project);
virtual ~FlutterWindow();
protected:
// Win32Window:
bool OnCreate() override;
void OnDestroy() override;
LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
LPARAM const lparam) noexcept override;
private:
// The project to run.
flutter::DartProject project_;
// The Flutter instance hosted by this window.
std::unique_ptr<flutter::FlutterViewController> flutter_controller_;
};
#endif // RUNNER_FLUTTER_WINDOW_H_