localization 0.1.0 copy "localization: ^0.1.0" to clipboard
localization: ^0.1.0 copied to clipboard

outdated

Package to simplify the package translation.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:localization/localization.dart';

void main() async {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: LocalizationWidget(child: HomePage()),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("homeTitle".i18n()),
      ),
    );
  }
}
178
likes
20
pub points
97%
popularity

Publisher

verified publisherflutterando.com.br

Package to simplify the package translation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on localization