flutterx_application 1.1.0 flutterx_application: ^1.1.0 copied to clipboard
Core functionalities of a flutter application including translations, lifecycle events, navigation, dialogs
import 'package:example/localization/labels.dart';
import 'package:example/ui/activity_data_delegate.dart';
import 'package:example/ui/activity_data_insert.dart';
import 'package:example/ui/activity_home.dart';
import 'package:example/ui/activity_login.dart';
import 'package:example/ui/activity_private.dart';
import 'package:flutter/material.dart';
import 'package:flutterx_application/flutterx_application.dart';
void main() => runMaterialApp(
name: 'Flutterx Application Demo',
routes: {
HomeActivity.route,
DataDelegateActivity.route,
DataInsertActivity.route,
LoginActivity.route,
PrivateActivity.route,
},
labels: Labels.supportedLabels,
onLabel: Labels.onLabel,
materialAppFactory: (key, initialRoute, onGenerateRoute, title, locale, localizationsDelegates, supportedLocales) =>
MaterialApp(
key: key,
initialRoute: initialRoute,
onGenerateRoute: onGenerateRoute,
title: title,
theme: _appTheme,
locale: locale,
localizationsDelegates: localizationsDelegates,
supportedLocales: supportedLocales,
debugShowCheckedModeBanner: false));
final _appTheme = ThemeData(
primaryColor: Colors.blueGrey,
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.blueGrey,
),
bottomSheetTheme: BottomSheetThemeData(
backgroundColor: Colors.blueGrey[600],
));