Universe App is a cross-platform Flutter application. This repository contains the source for mobile, web, and desktop builds from a single codebase.
- Fast cross-platform UI built with Flutter.
- Shared code across Android, iOS, web, macOS, Windows, and Linux.
- Clean project structure and standard Flutter tooling.
- Flutter SDK (compatible with Dart
^3.10.1) - Platform-specific toolchains:
- Android: Android Studio / SDK
- iOS: Xcode (macOS only)
- Web/Desktop: Chrome or native desktop toolchains
- Install dependencies:
flutter pub get
- Run the app:
flutter run
- Run tests:
flutter test
- Analyze:
flutter analyze
- Format all Dart files:
dart format .
- Build for release:
flutter build apk
flutter build ios
flutter build web
This project includes a native Git pre-commit hook at .githooks/pre-commit.
What it does on each commit:
- Formats staged
.dartfiles withdart format - Re-stages formatted files automatically
What it does on each push:
- Runs
flutter testbefore pushing
One-time setup per clone (PowerShell on Windows):
./scripts/setup-git-hooks.ps1
Alternative setup (any shell):
git config core.hooksPath .githooks
Optional behavior:
- Skip all hook logic for one commit:
SKIP_FLUTTER_HOOKS=1 git commit -m "your message"
PowerShell:
$env:SKIP_FLUTTER_HOOKS=1; git commit -m "your message"; Remove-Item Env:SKIP_FLUTTER_HOOKS
- Skip all hook logic for one push:
SKIP_FLUTTER_HOOKS=1 git push
PowerShell:
$env:SKIP_FLUTTER_HOOKS=1; git push; Remove-Item Env:SKIP_FLUTTER_HOOKS
- Also run analyze during commit:
RUN_FLUTTER_ANALYZE=1 git commit -m "your message"
PowerShell:
$env:RUN_FLUTTER_ANALYZE=1; git commit -m "your message"; Remove-Item Env:RUN_FLUTTER_ANALYZE
lib/Application codetest/Unit and widget testsandroid/Android runner and build configios/iOS runner and build configweb/Web build configurationwindows/,macos/,linux/Desktop runners
- App metadata and dependencies live in
pubspec.yaml. - Lint rules are in
analysis_options.yaml.
Current app version is defined in pubspec.yaml as 1.0.0+1.
- Add a short product description and screenshots.
- Document app features and any required runtime configuration.
- Add CI and release instructions.
Proprietary. All rights reserved.