Material localization delegates and supported German/English locales for MaterialApp.
| Member / type / return | Meaning |
|---|---|
static const List<LocalizationsDelegate<dynamic>> delegates = GlobalMaterialLocalizations.delegates | Assign to MaterialApp.localizationsDelegates. |
static const List<Locale> supportedLocales = [Locale('de'), Locale('en')] | Assign to MaterialApp.supportedLocales. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
print(MaterialApp(localizationsDelegates: TxLocalizations.delegates, supportedLocales: TxLocalizations.supportedLocales));
}