flutterx_application 1.0.2-dev copy "flutterx_application: ^1.0.2-dev" to clipboard
flutterx_application: ^1.0.2-dev copied to clipboard

outdated

Core functionalities of a flutter application including translations, lifecycle events, navigation, dialogs

example/lib/main.dart

import 'package:example/localization/labels.dart';
import 'package:example/ui/activity_home.dart';
import 'package:flutter/material.dart';
import 'package:flutterx_application/flutterx_application.dart';

void main() => runMaterialApp(
    name: 'Flutterx Application Demo',
    initialRoute: HomeActivity.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],
    ));
4
likes
0
points
164
downloads

Publisher

unverified uploader

Weekly Downloads

Core functionalities of a flutter application including translations, lifecycle events, navigation, dialogs

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

collection, flutter, flutter_localizations, flutterx_live_data, flutterx_utils

More

Packages that depend on flutterx_application