Material-Lokalisierungsdelegates und unterstützte deutsche/englische Locales für MaterialApp.
| Mitglied / Typ / Rückgabe | Bedeutung |
|---|---|
static const List<LocalizationsDelegate<dynamic>> delegates = GlobalMaterialLocalizations.delegates | In MaterialApp.localizationsDelegates einbinden. |
static const List<Locale> supportedLocales = [Locale('de'), Locale('en')] | In MaterialApp.supportedLocales einbinden. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
print(MaterialApp(localizationsDelegates: TxLocalizations.delegates, supportedLocales: TxLocalizations.supportedLocales));
}