Implement Standalone Android App via Flutter WebView

- Configured `vite.config.ts` for relative base path support.
- Initialized `mobile_app` Flutter project with `webview_flutter`.
- Added `assets/www` to Flutter assets configuration.
- Implemented `mobile_app/lib/main.dart` with WebView and Bridge API integration (Water Level Slider).
- Updated `.gitignore` for Flutter artifacts.
- Successfully built APK artifacts.

Co-authored-by: kliffdafunkfacekilla-arch <239708976+kliffdafunkfacekilla-arch@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot] 2026-01-30 05:30:18 +00:00
parent e938bc7802
commit e62f20b0d1
808 changed files with 111592 additions and 10 deletions

View file

@ -0,0 +1,33 @@
#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_