t×tecexpressby TeKOcloud
ENv0.7.1
API & Datentypen / FLUTTER

TxLocalizations.

Material-Lokalisierungsdelegates und unterstützte deutsche/englische Locales für MaterialApp.

Mitglied / Typ / RückgabeBedeutung
static const List<LocalizationsDelegate<dynamic>> delegates = GlobalMaterialLocalizations.delegatesIn MaterialApp.localizationsDelegates einbinden.
static const List<Locale> supportedLocales = [Locale('de'), Locale('en')]In MaterialApp.supportedLocales einbinden.
dart
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';

Future<void> example() async {
  print(MaterialApp(localizationsDelegates: TxLocalizations.delegates, supportedLocales: TxLocalizations.supportedLocales));
}