stacked_localisation 0.2.2 copy "stacked_localisation: ^0.2.2" to clipboard
stacked_localisation: ^0.2.2 copied to clipboard

discontinued

A service class that helps with implementing localisation functionality in your application

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:stacked_localisation/stacked_localisation.dart';
import 'package:stacked_services/stacked_services.dart';

import 'core/router.gr.dart';
import 'core/setup_locator.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // sets up the internal locator for the localisation service
  await setupLocator();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(),
      initialRoute: Routes.homeView,
      navigatorKey: locator<NavigationService>().navigatorKey,
      onGenerateRoute: Router().onGenerateRoute,
    );
  }
}
4
likes
30
points
35
downloads

Publisher

verified publisherfilledstacks.com

Weekly Downloads

A service class that helps with implementing localisation functionality in your application

License

MIT (license)

Dependencies

devicelocale, flutter, get_it

More

Packages that depend on stacked_localisation