mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-15 11:45:31 +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: camel_case_types
|
||||
// ignore_for_file: prefer_single_quotes
|
||||
@ -12,28 +11,27 @@ import "package:flutter/material.dart';
|
||||
class S implements WidgetsLocalizations {
|
||||
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
|
||||
TextDirection get textDirection => TextDirection.ltr;
|
||||
|
||||
}
|
||||
|
||||
class en extends S {
|
||||
const en();
|
||||
}
|
||||
|
||||
|
||||
class GeneratedLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocalizations> {
|
||||
class GeneratedLocalizationsDelegate
|
||||
extends LocalizationsDelegate<WidgetsLocalizations> {
|
||||
const GeneratedLocalizationsDelegate();
|
||||
|
||||
List<Locale> get supportedLocales {
|
||||
return const <Locale>[
|
||||
|
||||
const Locale("en", ""),
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
@ -55,7 +53,6 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocali
|
||||
Future<WidgetsLocalizations> load(Locale locale) {
|
||||
final String lang = getLang(locale);
|
||||
switch (lang) {
|
||||
|
||||
case "en":
|
||||
return new SynchronousFuture<WidgetsLocalizations>(const en());
|
||||
|
||||
|
Reference in New Issue
Block a user