mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 20:25:26 +00:00
Update "generated" file
This commit is contained in:
@ -1,8 +1,7 @@
|
|||||||
|
import "dart:async";
|
||||||
|
|
||||||
import "dart:async';
|
import "package:flutter/foundation.dart";
|
||||||
|
import "package:flutter/material.dart";
|
||||||
import "package:flutter/foundation.dart';
|
|
||||||
import "package:flutter/material.dart';
|
|
||||||
// ignore_for_file: non_constant_identifier_names
|
// ignore_for_file: non_constant_identifier_names
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: prefer_single_quotes
|
// ignore_for_file: prefer_single_quotes
|
||||||
@ -12,28 +11,27 @@ import "package:flutter/material.dart';
|
|||||||
class S implements WidgetsLocalizations {
|
class S implements WidgetsLocalizations {
|
||||||
const S();
|
const S();
|
||||||
|
|
||||||
static const GeneratedLocalizationsDelegate delegate = GeneratedLocalizationsDelegate();
|
static const GeneratedLocalizationsDelegate delegate =
|
||||||
|
GeneratedLocalizationsDelegate();
|
||||||
|
|
||||||
static S of(BuildContext context) => Localizations.of<S>(context, WidgetsLocalizations);
|
static S of(BuildContext context) =>
|
||||||
|
Localizations.of<S>(context, WidgetsLocalizations);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TextDirection get textDirection => TextDirection.ltr;
|
TextDirection get textDirection => TextDirection.ltr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class en extends S {
|
class en extends S {
|
||||||
const en();
|
const en();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class GeneratedLocalizationsDelegate
|
||||||
class GeneratedLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocalizations> {
|
extends LocalizationsDelegate<WidgetsLocalizations> {
|
||||||
const GeneratedLocalizationsDelegate();
|
const GeneratedLocalizationsDelegate();
|
||||||
|
|
||||||
List<Locale> get supportedLocales {
|
List<Locale> get supportedLocales {
|
||||||
return const <Locale>[
|
return const <Locale>[
|
||||||
|
|
||||||
const Locale("en", ""),
|
const Locale("en", ""),
|
||||||
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,7 +53,6 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocali
|
|||||||
Future<WidgetsLocalizations> load(Locale locale) {
|
Future<WidgetsLocalizations> load(Locale locale) {
|
||||||
final String lang = getLang(locale);
|
final String lang = getLang(locale);
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
|
|
||||||
case "en":
|
case "en":
|
||||||
return new SynchronousFuture<WidgetsLocalizations>(const en());
|
return new SynchronousFuture<WidgetsLocalizations>(const en());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user