queen 0.0.2
queen: ^0.0.2 copied to clipboard
opinionated framework built in top of flutter to deliver faster apps , readable ,simpler code
example/lib/main.dart
// import 'package:flutter/material.dart';
// import 'package:queen/queen.dart';
// import 'package:queen_example/config/theme.dart';
// import 'package:flutter_localizations/flutter_localizations.dart';
// import 'pages/theme_page.dart';
// Future<void> main() async {
// WidgetsFlutterBinding.ensureInitialized();
// await App.boot(
// themeConfig: AppThemeConfig(),
// nationsConfig: const LangConfig(),
// );
// runApp(
// QueenBuilder(
// enableDevtools: false,
// builder: (context) {
// return const MyApp();
// },
// ),
// );
// }
// class MyApp extends StatelessWidget {
// const MyApp({Key? key}) : super(key: key);
// @override
// Widget build(BuildContext context) {
// return MaterialApp(
// title: 'Flutter Demo',
// theme: AppTheme.current,
// locale: AppLang.current,
// supportedLocales: AppLang.supportedLocales,
// localizationsDelegates: const [
// GlobalCupertinoLocalizations.delegate,
// GlobalMaterialLocalizations.delegate,
// GlobalWidgetsLocalizations.delegate,
// ],
// home: const MyHomePage(title: 'Flutter Demo Home Page'),
// );
// }
// }
// class MyHomePage extends StatefulWidget {
// const MyHomePage({Key? key, required this.title}) : super(key: key);
// final String title;
// @override
// State<MyHomePage> createState() => _MyHomePageState();
// }
// class _MyHomePageState extends State<MyHomePage> {
// int _counter = 0;
// void _incrementCounter() {
// setState(() {
// _counter++;
// });
// }
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// appBar: AppBar(
// title: Text(widget.title),
// ),
// body: Center(
// child: Column(
// mainAxisAlignment: MainAxisAlignment.center,
// children: <Widget>[
// Text(Locators.find<TransController>().locale.toString()),
// const Text(
// 'You have pushed the button this many times:',
// ),
// Text(
// '$_counter',
// style: Theme.of(context).textTheme.headline4,
// ),
// OutlinedButton(
// onPressed: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (_) => const ThemePage()),
// );
// },
// child: const Text('themes'),
// ),
// ],
// ),
// ),
// floatingActionButton: FloatingActionButton(
// onPressed: _incrementCounter,
// tooltip: 'Increment',
// child: const Icon(Icons.add),
// ),
// );
// }
// }