// GENERATED CODE - DO NOT MODIFY BY HAND import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'intl/messages_all.dart'; // ************************************************************************** // Generator: Flutter Intl IDE plugin // Made by Localizely // ************************************************************************** // ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars // ignore_for_file: join_return_with_assignment, prefer_final_in_for_each // ignore_for_file: avoid_redundant_argument_values, avoid_escaping_inner_quotes class Strings { Strings(); static Strings? _current; static Strings get current { assert(_current != null, 'No instance of Strings was loaded. Try to initialize the Strings delegate before accessing Strings.current.'); return _current!; } static const AppLocalizationDelegate delegate = AppLocalizationDelegate(); static Future load(Locale locale) { final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString(); final localeName = Intl.canonicalizedLocale(name); return initializeMessages(localeName).then((_) { Intl.defaultLocale = localeName; final instance = Strings(); Strings._current = instance; return instance; }); } static Strings of(BuildContext context) { final instance = Strings.maybeOf(context); assert(instance != null, 'No instance of Strings present in the widget tree. Did you add Strings.delegate in localizationsDelegates?'); return instance!; } static Strings? maybeOf(BuildContext context) { return Localizations.of(context, Strings); } /// `Something went wrong` String get somethingWentWrong { return Intl.message( 'Something went wrong', name: 'somethingWentWrong', desc: '', args: [], ); } /// `Image` String get image { return Intl.message( 'Image', name: 'image', desc: '', args: [], ); } /// `Gallery` String get gallery { return Intl.message( 'Gallery', name: 'gallery', desc: '', args: [], ); } /// `Press me to start loading` String get startLoadingPrompt { return Intl.message( 'Press me to start loading', name: 'startLoadingPrompt', desc: '', args: [], ); } /// `Image carousel` String get imageCarousel { return Intl.message( 'Image carousel', name: 'imageCarousel', desc: '', args: [], ); } /// `Lorem ipsum dolor sit amet. A odio aliquam est sunt explicabo cum galisum asperiores qui voluptas tempora qui aliquid similique. Ut quam laborum ex nostrum recusandae ab sunt ratione quo tempore corporis 33 voluptas nulla aut obcaecati perspiciatis.\n\nAd eveniet exercitationem ad odit quidem aut omnis corporis ea nulla illum qui quisquam temporibus? Est obcaecati similique et quisquam unde ea impedit mollitia ea accusamus natus hic doloribus quis! Et dolorem rerum id doloribus sint ea porro quia ut reprehenderit ratione?` String get imageDetails { return Intl.message( 'Lorem ipsum dolor sit amet. A odio aliquam est sunt explicabo cum galisum asperiores qui voluptas tempora qui aliquid similique. Ut quam laborum ex nostrum recusandae ab sunt ratione quo tempore corporis 33 voluptas nulla aut obcaecati perspiciatis.\n\nAd eveniet exercitationem ad odit quidem aut omnis corporis ea nulla illum qui quisquam temporibus? Est obcaecati similique et quisquam unde ea impedit mollitia ea accusamus natus hic doloribus quis! Et dolorem rerum id doloribus sint ea porro quia ut reprehenderit ratione?', name: 'imageDetails', desc: '', args: [], ); } /// `Are you sure that you're connected to the internet?` String get noInternetMessage { return Intl.message( 'Are you sure that you\'re connected to the internet?', name: 'noInternetMessage', desc: '', args: [], ); } } class AppLocalizationDelegate extends LocalizationsDelegate { const AppLocalizationDelegate(); List get supportedLocales { return const [ Locale.fromSubtags(languageCode: 'en'), ]; } @override bool isSupported(Locale locale) => _isSupported(locale); @override Future load(Locale locale) => Strings.load(locale); @override bool shouldReload(AppLocalizationDelegate old) => false; bool _isSupported(Locale locale) { for (var supportedLocale in supportedLocales) { if (supportedLocale.languageCode == locale.languageCode) { return true; } } return false; } }