magic
1.1.0, released 3 days ago by anilcancakir.com
Full‑stack Flutter framework offering Laravel‑style models, auth, routing, realtime and payments across all platforms.
What it does
Provides a container, facades, ORM‑like models, authentication, context‑free routing, validation, caching and localisation. Plugins extend it with realtime, payments, SQLite, notifications and more.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an all‑in‑one solution that mimics Laravel for a Flutter app
- You want context‑free routing and built‑in auth/validation
- You target Android, iOS, web, desktop with a single codebase
Skip it when
- You only need a lightweight UI kit or simple HTTP client
- You prefer a minimal set of packages rather than a large framework
Strengths
- Laravel‑like developer experience
- Cross‑platform out of the box
- Integrated container and facades
- Extensible plugin family
Weaknesses
- Heavy dependency footprint
- Steep learning curve for Laravel concepts
- Smaller community compared to mainstream packages
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 20
flutter pub add magic && dart run magic:dowel magic:install; add optional plugins with flutter pub add <plugin> && dart run magic:dowel plugin:install <plugin>
class User extends Model with HasTimestamps, Authenticatable {
@override String get table => 'users';
@override String get resource => 'users';
@override List<String> get fillable => ['name','email'];
String? get name => get<String>('name');
}
void registerAppRoutes(){
MagicRoute.page('/users', () => UserController.instance.index());
}Alternatives
Packages that do the same job and could replace magic.
- auto_route
Code‑generated routing with strong type safety
87Compare
Works with
Packages commonly used together with magic: ones it builds on, ones built on it, and its own family.
- yamlmagic depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptomagic depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- webmagic depends on itLightweight bindings for browser APIs via JS interop
- intlmagic depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- path_providermagic depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- url_launchermagic depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- flutter_secure_storagemagic depends on itSecure key-value storage using platform-specific secure mechanisms
- go_routermagic depends on itDeclarative routing package for Flutter based on Navigation 2 supporting deep links and URL-based navigation.