mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Remove generated content from git
This commit is contained in:
parent
8381e5b753
commit
c02e8718d5
5 changed files with 7 additions and 507 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -43,4 +43,10 @@ app.*.map.json
|
||||||
/android/app/profile
|
/android/app/profile
|
||||||
/android/app/release
|
/android/app/release
|
||||||
|
|
||||||
*.lock
|
/lib/generated/*
|
||||||
|
/android/app/build/
|
||||||
|
/ios/build/
|
||||||
|
/ios/Runner.xcodeproj/project.pbxproj
|
||||||
|
|
||||||
|
pubspec.lock
|
||||||
|
/ios/Podfile.lock
|
|
@ -1,62 +0,0 @@
|
||||||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
|
|
||||||
// This is a library that looks up messages for specific locales by
|
|
||||||
// delegating to the appropriate library.
|
|
||||||
|
|
||||||
// Ignore issues from commonly used lints in this file.
|
|
||||||
// ignore_for_file:implementation_imports, file_names, unnecessary_new
|
|
||||||
// ignore_for_file:unnecessary_brace_in_string_interps, directives_ordering
|
|
||||||
// ignore_for_file:argument_type_not_assignable, invalid_assignment
|
|
||||||
// ignore_for_file:prefer_single_quotes, prefer_generic_function_type_aliases
|
|
||||||
// ignore_for_file:comment_references
|
|
||||||
|
|
||||||
import 'dart:async';
|
|
||||||
|
|
||||||
import 'package:intl/intl.dart';
|
|
||||||
import 'package:intl/message_lookup_by_library.dart';
|
|
||||||
import 'package:intl/src/intl_helpers.dart';
|
|
||||||
|
|
||||||
import 'messages_en.dart' as messages_en;
|
|
||||||
|
|
||||||
typedef Future<dynamic> LibraryLoader();
|
|
||||||
Map<String, LibraryLoader> _deferredLibraries = {
|
|
||||||
'en': () => new Future.value(null),
|
|
||||||
};
|
|
||||||
|
|
||||||
MessageLookupByLibrary? _findExact(String localeName) {
|
|
||||||
switch (localeName) {
|
|
||||||
case 'en':
|
|
||||||
return messages_en.messages;
|
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// User programs should call this before using [localeName] for messages.
|
|
||||||
Future<bool> initializeMessages(String localeName) async {
|
|
||||||
var availableLocale = Intl.verifiedLocale(
|
|
||||||
localeName, (locale) => _deferredLibraries[locale] != null,
|
|
||||||
onFailure: (_) => null);
|
|
||||||
if (availableLocale == null) {
|
|
||||||
return new Future.value(false);
|
|
||||||
}
|
|
||||||
var lib = _deferredLibraries[availableLocale];
|
|
||||||
await (lib == null ? new Future.value(false) : lib());
|
|
||||||
initializeInternalMessageLookup(() => new CompositeMessageLookup());
|
|
||||||
messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor);
|
|
||||||
return new Future.value(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool _messagesExistFor(String locale) {
|
|
||||||
try {
|
|
||||||
return _findExact(locale) != null;
|
|
||||||
} catch (e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
|
|
||||||
var actualLocale =
|
|
||||||
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
|
|
||||||
if (actualLocale == null) return null;
|
|
||||||
return _findExact(actualLocale);
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
|
|
||||||
// This is a library that provides messages for a en locale. All the
|
|
||||||
// messages from the main program should be duplicated here with the same
|
|
||||||
// function name.
|
|
||||||
|
|
||||||
// Ignore issues from commonly used lints in this file.
|
|
||||||
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
|
|
||||||
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
|
|
||||||
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
|
|
||||||
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
|
|
||||||
// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes
|
|
||||||
|
|
||||||
import 'package:intl/intl.dart';
|
|
||||||
import 'package:intl/message_lookup_by_library.dart';
|
|
||||||
|
|
||||||
final messages = new MessageLookup();
|
|
||||||
|
|
||||||
typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
|
|
||||||
|
|
||||||
class MessageLookup extends MessageLookupByLibrary {
|
|
||||||
String get localeName => 'en';
|
|
||||||
|
|
||||||
final messages = _notInlinedMessages(_notInlinedMessages);
|
|
||||||
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
|
||||||
"caffeine": MessageLookupByLibrary.simpleMessage("Caffeine"),
|
|
||||||
"cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
|
|
||||||
"fastestExposurePair": MessageLookupByLibrary.simpleMessage("Fastest"),
|
|
||||||
"filmSpeed": MessageLookupByLibrary.simpleMessage("Film speed"),
|
|
||||||
"haptics": MessageLookupByLibrary.simpleMessage("Haptics"),
|
|
||||||
"iso": MessageLookupByLibrary.simpleMessage("ISO"),
|
|
||||||
"keepsScreenOn":
|
|
||||||
MessageLookupByLibrary.simpleMessage("Keeps screen on"),
|
|
||||||
"nd": MessageLookupByLibrary.simpleMessage("ND"),
|
|
||||||
"ndFilterFactor": MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Neutral density filter factor"),
|
|
||||||
"none": MessageLookupByLibrary.simpleMessage("None"),
|
|
||||||
"openSettings": MessageLookupByLibrary.simpleMessage("Open settings"),
|
|
||||||
"permissionNeeded":
|
|
||||||
MessageLookupByLibrary.simpleMessage("Permission needed"),
|
|
||||||
"permissionNeededMessage": MessageLookupByLibrary.simpleMessage(
|
|
||||||
"To use Lightmeter, turn on Camera permissions."),
|
|
||||||
"select": MessageLookupByLibrary.simpleMessage("Select"),
|
|
||||||
"settings": MessageLookupByLibrary.simpleMessage("Settings"),
|
|
||||||
"slowestExposurePair": MessageLookupByLibrary.simpleMessage("Slowest")
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,238 +0,0 @@
|
||||||
// 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 S {
|
|
||||||
S();
|
|
||||||
|
|
||||||
static S? _current;
|
|
||||||
|
|
||||||
static S get current {
|
|
||||||
assert(_current != null,
|
|
||||||
'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.');
|
|
||||||
return _current!;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
|
|
||||||
|
|
||||||
static Future<S> 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 = S();
|
|
||||||
S._current = instance;
|
|
||||||
|
|
||||||
return instance;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
static S of(BuildContext context) {
|
|
||||||
final instance = S.maybeOf(context);
|
|
||||||
assert(instance != null,
|
|
||||||
'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?');
|
|
||||||
return instance!;
|
|
||||||
}
|
|
||||||
|
|
||||||
static S? maybeOf(BuildContext context) {
|
|
||||||
return Localizations.of<S>(context, S);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Permission needed`
|
|
||||||
String get permissionNeeded {
|
|
||||||
return Intl.message(
|
|
||||||
'Permission needed',
|
|
||||||
name: 'permissionNeeded',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `To use Lightmeter, turn on Camera permissions.`
|
|
||||||
String get permissionNeededMessage {
|
|
||||||
return Intl.message(
|
|
||||||
'To use Lightmeter, turn on Camera permissions.',
|
|
||||||
name: 'permissionNeededMessage',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Open settings`
|
|
||||||
String get openSettings {
|
|
||||||
return Intl.message(
|
|
||||||
'Open settings',
|
|
||||||
name: 'openSettings',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Fastest`
|
|
||||||
String get fastestExposurePair {
|
|
||||||
return Intl.message(
|
|
||||||
'Fastest',
|
|
||||||
name: 'fastestExposurePair',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Slowest`
|
|
||||||
String get slowestExposurePair {
|
|
||||||
return Intl.message(
|
|
||||||
'Slowest',
|
|
||||||
name: 'slowestExposurePair',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `ISO`
|
|
||||||
String get iso {
|
|
||||||
return Intl.message(
|
|
||||||
'ISO',
|
|
||||||
name: 'iso',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Film speed`
|
|
||||||
String get filmSpeed {
|
|
||||||
return Intl.message(
|
|
||||||
'Film speed',
|
|
||||||
name: 'filmSpeed',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `ND`
|
|
||||||
String get nd {
|
|
||||||
return Intl.message(
|
|
||||||
'ND',
|
|
||||||
name: 'nd',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Neutral density filter factor`
|
|
||||||
String get ndFilterFactor {
|
|
||||||
return Intl.message(
|
|
||||||
'Neutral density filter factor',
|
|
||||||
name: 'ndFilterFactor',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `None`
|
|
||||||
String get none {
|
|
||||||
return Intl.message(
|
|
||||||
'None',
|
|
||||||
name: 'none',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Cancel`
|
|
||||||
String get cancel {
|
|
||||||
return Intl.message(
|
|
||||||
'Cancel',
|
|
||||||
name: 'cancel',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Select`
|
|
||||||
String get select {
|
|
||||||
return Intl.message(
|
|
||||||
'Select',
|
|
||||||
name: 'select',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Settings`
|
|
||||||
String get settings {
|
|
||||||
return Intl.message(
|
|
||||||
'Settings',
|
|
||||||
name: 'settings',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Caffeine`
|
|
||||||
String get caffeine {
|
|
||||||
return Intl.message(
|
|
||||||
'Caffeine',
|
|
||||||
name: 'caffeine',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Keeps screen on`
|
|
||||||
String get keepsScreenOn {
|
|
||||||
return Intl.message(
|
|
||||||
'Keeps screen on',
|
|
||||||
name: 'keepsScreenOn',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `Haptics`
|
|
||||||
String get haptics {
|
|
||||||
return Intl.message(
|
|
||||||
'Haptics',
|
|
||||||
name: 'haptics',
|
|
||||||
desc: '',
|
|
||||||
args: [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
|
||||||
const AppLocalizationDelegate();
|
|
||||||
|
|
||||||
List<Locale> get supportedLocales {
|
|
||||||
return const <Locale>[
|
|
||||||
Locale.fromSubtags(languageCode: 'en'),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool isSupported(Locale locale) => _isSupported(locale);
|
|
||||||
@override
|
|
||||||
Future<S> load(Locale locale) => S.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;
|
|
||||||
}
|
|
||||||
}
|
|
160
pubspec.lock
160
pubspec.lock
|
@ -1,160 +0,0 @@
|
||||||
# Generated by pub
|
|
||||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
|
||||||
packages:
|
|
||||||
async:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: async
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.9.0"
|
|
||||||
boolean_selector:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: boolean_selector
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.0"
|
|
||||||
characters:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: characters
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.1"
|
|
||||||
clock:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: clock
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.1"
|
|
||||||
collection:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: collection
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.16.0"
|
|
||||||
cupertino_icons:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: cupertino_icons
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.5"
|
|
||||||
fake_async:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: fake_async
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.3.1"
|
|
||||||
flutter:
|
|
||||||
dependency: "direct main"
|
|
||||||
description: flutter
|
|
||||||
source: sdk
|
|
||||||
version: "0.0.0"
|
|
||||||
flutter_lints:
|
|
||||||
dependency: "direct dev"
|
|
||||||
description:
|
|
||||||
name: flutter_lints
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.0.1"
|
|
||||||
flutter_test:
|
|
||||||
dependency: "direct dev"
|
|
||||||
description: flutter
|
|
||||||
source: sdk
|
|
||||||
version: "0.0.0"
|
|
||||||
lints:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: lints
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.0.0"
|
|
||||||
matcher:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: matcher
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.12.12"
|
|
||||||
material_color_utilities:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: material_color_utilities
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.1.5"
|
|
||||||
meta:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: meta
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.8.0"
|
|
||||||
path:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: path
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.8.2"
|
|
||||||
sky_engine:
|
|
||||||
dependency: transitive
|
|
||||||
description: flutter
|
|
||||||
source: sdk
|
|
||||||
version: "0.0.99"
|
|
||||||
source_span:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: source_span
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.9.0"
|
|
||||||
stack_trace:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: stack_trace
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.10.0"
|
|
||||||
stream_channel:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: stream_channel
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.0"
|
|
||||||
string_scanner:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: string_scanner
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.1"
|
|
||||||
term_glyph:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: term_glyph
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.1"
|
|
||||||
test_api:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: test_api
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.4.12"
|
|
||||||
vector_math:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: vector_math
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.2"
|
|
||||||
sdks:
|
|
||||||
dart: ">=2.18.0 <3.0.0"
|
|
Loading…
Reference in a new issue