fr_mvvm_locale 2.0.1 copy "fr_mvvm_locale: ^2.0.1" to clipboard
fr_mvvm_locale: ^2.0.1 copied to clipboard

Locale switching helpers for FlowR MVVM Flutter apps, including a locale view model, formatter extensions, and menu UI widgets.

example/lib/main.dart

import 'package:flowr/flowr_mvvm.dart';
import 'package:flutter/material.dart';
import 'package:fr_mvvm_locale/fr_mvvm_locale.dart';

class YourEnvViewModel extends FrLocaleViewModel {
  YourEnvViewModel({
    super.initialState = const Locale('en'),
    super.all = const [Locale('en'), Locale('zh'), Locale('zh')],
  });
}

void main() {
  runApp(
    FrProvider(
      (context) => YourEnvViewModel(),
      child: const MaterialApp(
        home: Scaffold(
          body: Center(child: FrLocaleSwitchView<YourEnvViewModel>()),
        ),
      ),
    ),
  );
}
0
likes
160
points
169
downloads

Documentation

API reference

Publisher

verified publisherwyattcoder.top

Weekly Downloads

Locale switching helpers for FlowR MVVM Flutter apps, including a locale view model, formatter extensions, and menu UI widgets.

Repository (GitHub)
View/report issues

Topics

#flowr #localization

License

MIT (license)

Dependencies

flowr, flutter

More

Packages that depend on fr_mvvm_locale