language_code 0.1.1 copy "language_code: ^0.1.1" to clipboard
language_code: ^0.1.1 copied to clipboard

This plugin helps you to get the current language code and Locale.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: ${LanguageCode.rawCode}'),
        ),
      ),
    );
  }
}
9
likes
0
pub points
90%
popularity

Publisher

verified publisherlamnhan.dev

This plugin helps you to get the current language code and Locale.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on language_code