-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
2,044 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,7 @@ class AppConfig { | |
static const AppPlayStoreUrl = "https://play.google.com/store/apps/details?id=" + AppPackageName; | ||
static const AppGitHubUrl = "https://github.com/iHTCboy/iPomodoro-Flutter"; | ||
static const AppLicenseUrl = "https://raw.githubusercontent.com/iHTCboy/iPomodoro-Flutter/master/LICENSE"; | ||
static const AppShareText = "Hello, ${AppName}! 这是一款番茄时间管理规划的App,不再分心!不再拖延!高效!专注!学习必备的好工具哦!iOS下载链接:${AppAppStoreUrl}"; | ||
static const kiHTCboyUrl = "https://ihtcboy.com"; | ||
static const kiHTCboyer = "https://apps.apple.com/cn/developer/iHTCboy/id914453386"; | ||
static const kEmail = "[email protected]"; | ||
static const kAppDesc = "番茄时间管理和学习规划,妈妈再也不用担心我的学习啦!不再分心!不再拖延!高效!专注!,让大家在学习时可以更加专注也可以快速和简单的学习get! \n \n" | ||
"1、番茄学习模式,使用番茄工作法学习,让你劳逸结合!\n2、计时学习模式,按照设定的时长学习,想学多久就学多久!\n3、定时任务模式,倒数日、任务记录,每日学习任务!杜绝学习没有目标!满足你对学习的求知欲望!"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// 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; | ||
import 'messages_zh.dart' as messages_zh; | ||
|
||
typedef Future<dynamic> LibraryLoader(); | ||
Map<String, LibraryLoader> _deferredLibraries = { | ||
'en': () => new Future.value(null), | ||
'zh': () => new Future.value(null), | ||
}; | ||
|
||
MessageLookupByLibrary _findExact(String localeName) { | ||
switch (localeName) { | ||
case 'en': | ||
return messages_en.messages; | ||
case 'zh': | ||
return messages_zh.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); | ||
} |
Oops, something went wrong.