-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
150357e
commit 95077ec
Showing
7 changed files
with
98 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
// Copyright 2020-2024 Hellogramming. All rights reserved. | ||
// Use of this source code is governed by an MIT-style | ||
// license that can be found in the LICENSE file or at | ||
// https://hellogramming.com/helloworldcounters/license/. | ||
|
||
/// App wide UI string constants. | ||
library; | ||
|
||
import '../screens/home.dart'; | ||
|
||
const String appName = 'Hello World Counters'; | ||
|
||
// ----------------------------------------------------------------------------------------------- | ||
// App Drawer | ||
// ----------------------------------------------------------------------------------------------- | ||
|
||
const String drawerTitle = appName; | ||
const String settingsItemTitle = 'Settings'; | ||
const String aboutItemTitle = 'About This App'; | ||
const String viewSourceItemTitle = 'View Source Code'; | ||
const String feedbackItemTitle = 'Send Feedback'; | ||
|
||
const Map<MenuAction, String> menuActions = { | ||
MenuAction.reset: 'Reset counter', | ||
MenuAction.share: 'Share...', | ||
}; | ||
|
||
const String resetConfirm = 'Reset counter to zero?'; | ||
const String resetConfirmReset = 'Reset'; | ||
const String resetConfirmCancel = 'Cancel'; | ||
|
||
String shareText(String name, String value) => 'The $name is $value'; | ||
|
||
// ----------------------------------------------------------------------------------------------- | ||
// Home Screen - Main | ||
// ----------------------------------------------------------------------------------------------- | ||
|
||
const String incrementTooltip = 'Increment'; | ||
const String incrementHeroTag = 'incrementHeroTag'; | ||
const String decrementTooltip = 'Decrement'; | ||
const String decrementHeroTag = 'decrementHeroTag'; | ||
|
||
// ----------------------------------------------------------------------------------------------- | ||
// Settings Screen | ||
// ----------------------------------------------------------------------------------------------- | ||
|
||
const String settingsTitle = 'Settings'; | ||
const String counterTapModeTitle = 'Counter tap mode'; | ||
const String counterTapModeSubtitle = 'Tap anywhere to increase counter'; |
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,16 @@ | ||
// Copyright 2020-2024 Hellogramming. All rights reserved. | ||
// Use of this source code is governed by an MIT-style | ||
// license that can be found in the LICENSE file or at | ||
// https://hellogramming.com/helloworldcounters/license/. | ||
|
||
/// URLs used in the app. | ||
library; | ||
|
||
/// The app's home page URL. | ||
const String aboutURL = 'https://hellogramming.com/helloworldcounters/'; | ||
|
||
/// The URL to the source code repository of the app. | ||
const String viewSourceURL = 'https://github.com/Hellogramming/hello_world_counters'; | ||
|
||
/// The URL for sending feedback. | ||
const String feedbackURL = 'https://hellogramming.com/helloworldcounters/feedback/'; |
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