Skip to content

Commit

Permalink
General cleanup and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Jan 18, 2025
1 parent a229855 commit f78c8b3
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 352 deletions.
17 changes: 17 additions & 0 deletions lib/constants/strings.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const String aboutText = "OpenHIIT is a free and open-source interval timer.";

const String intervalTimerTitle = "Interval Timer";
const String intervalTimerDescription =
"Create an interval timer that alternates between work and rest periods. Includes options for warm-up, cool-down, and more.";
const String workoutTitle = "Workout";
const String workoutDescription =
"Create a workout that lets you define exercises with an interval timer.";
const String importTitle = "Import";
const String importDescription =
"Import a workout or timer from a file on your device.";

const String noSavedTimers = "No saved timers";
const String noSavedTimersDescription =
"Hit the + at the bottom to get started!";
const String fetchingTimers = "Fetching timers...";
const String exportingFiles = "Exporting file(s)";
5 changes: 0 additions & 5 deletions lib/pages/create_timer/create_timer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ class CreateTimerState extends State<CreateTimer> {
Widget build(BuildContext context) {
final formKey = GlobalKey<FormState>();

/// Submit and form, save the workout values, and move
/// to the next view.
///
void submitForm(TimerType timer) {
// Validate returns true if the form is valid, or false otherwise.
final form = formKey.currentState!;
if (form.validate()) {
form.save();
Expand All @@ -38,7 +34,6 @@ class CreateTimerState extends State<CreateTimer> {
);
}
}
// ---

return Scaffold(
appBar: AppBar(
Expand Down
Loading

0 comments on commit f78c8b3

Please sign in to comment.