native_i18n_flutter_plugin 0.1.15 copy "native_i18n_flutter_plugin: ^0.1.15" to clipboard
native_i18n_flutter_plugin: ^0.1.15 copied to clipboard

Internationalization Flutter plugin based on Native APIs besides a command line tool to hep you during development phase

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:i18n_plugin_example/i18n.dart';
import 'package:native_i18n_flutter_plugin/widgets/i18n_widget_builder.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: I18nWidgetBuilder(
            translations: [I18n.test('Paco')],
            builder: (context, translations) => Text(translations[I18n.keys.test]),
          ),
        ),
      ),
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Internationalization Flutter plugin based on Native APIs besides a command line tool to hep you during development phase

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

args, dcache, flutter, logger, path, process_run, sprintf, watcher, xml

More

Packages that depend on native_i18n_flutter_plugin