structure widget folder

main
Julian Gegner 2023-03-05 18:17:08 +01:00
parent 669e7032c1
commit 00ae7ae860
21 changed files with 47 additions and 50 deletions

View File

@ -1,9 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:smoke_cess_app/services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'package:smoke_cess_app/widgets/workout_form.dart'; import 'package:smoke_cess_app/widgets/view_form/workout_form.dart';
import 'package:smoke_cess_app/widgets/workout_view.dart'; import 'package:smoke_cess_app/widgets/view_form/workout_view.dart';
import 'package:smoke_cess_app/widgets/view_form/view_form_page.dart';
import '../widgets/view_form_page.dart';
class IntervalTimerPage extends StatelessWidget { class IntervalTimerPage extends StatelessWidget {
const IntervalTimerPage({super.key}); const IntervalTimerPage({super.key});

View File

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:smoke_cess_app/services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'package:smoke_cess_app/widgets/mood_form.dart'; import 'package:smoke_cess_app/widgets/view_form/mood_form.dart';
import 'package:smoke_cess_app/widgets/mood_view.dart'; import 'package:smoke_cess_app/widgets/view_form/mood_view.dart';
import 'package:smoke_cess_app/widgets/view_form_page.dart'; import 'package:smoke_cess_app/widgets/view_form/view_form_page.dart';
class MoodPage extends StatelessWidget { class MoodPage extends StatelessWidget {
const MoodPage({super.key}); const MoodPage({super.key});

View File

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:smoke_cess_app/services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'package:smoke_cess_app/widgets/relapse_form.dart'; import 'package:smoke_cess_app/widgets/view_form/relapse_form.dart';
import 'package:smoke_cess_app/widgets/relapse_view.dart'; import 'package:smoke_cess_app/widgets/view_form/relapse_view.dart';
import '../widgets/view_form_page.dart'; import 'package:smoke_cess_app/widgets/view_form/view_form_page.dart';
class RelapsePage extends StatelessWidget { class RelapsePage extends StatelessWidget {
const RelapsePage({super.key}); const RelapsePage({super.key});

View File

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:smoke_cess_app/services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'package:smoke_cess_app/widgets/sleep_form.dart'; import 'package:smoke_cess_app/widgets/view_form/sleep_form.dart';
import 'package:smoke_cess_app/widgets/sleep_view.dart'; import 'package:smoke_cess_app/widgets/view_form/sleep_view.dart';
import 'package:smoke_cess_app/widgets/view_form_page.dart'; import 'package:smoke_cess_app/widgets/view_form/view_form_page.dart';
class SleepPage extends StatelessWidget { class SleepPage extends StatelessWidget {
const SleepPage({super.key}); const SleepPage({super.key});

View File

@ -1,7 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../../providers/audio_provider.dart';
import '../providers/audio_provider.dart';
class MuteButton extends StatelessWidget { class MuteButton extends StatelessWidget {
const MuteButton({super.key}); const MuteButton({super.key});

View File

@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:smoke_cess_app/providers/timer_provider.dart'; import 'package:smoke_cess_app/providers/timer_provider.dart';
import 'package:smoke_cess_app/widgets/timer_widget.dart'; import 'package:smoke_cess_app/widgets/timer_widget.dart';
import '../services/date_service.dart'; import 'package:smoke_cess_app/services/date_service.dart';
import '../services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
void showTaskDonePopup(BuildContext context, Pages page) async { void showTaskDonePopup(BuildContext context, Pages page) async {
Duration duration = await getTimeTill(page); Duration duration = await getTimeTill(page);

View File

@ -3,11 +3,10 @@ import 'package:provider/provider.dart';
import 'package:smoke_cess_app/providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
import 'package:smoke_cess_app/services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'package:smoke_cess_app/widgets/slider.dart'; import 'package:smoke_cess_app/widgets/slider.dart';
import 'package:smoke_cess_app/widgets/submit_form_button.dart'; import 'package:smoke_cess_app/widgets/buttons/submit_form_button.dart';
import 'package:smoke_cess_app/widgets/text_formfield.dart'; import 'package:smoke_cess_app/widgets/text_formfield.dart';
import 'package:smoke_cess_app/providers/input_provider.dart';
import '../providers/input_provider.dart'; import 'package:smoke_cess_app/widgets/elevated_card.dart';
import 'elevated_card.dart';
class MoodForm extends StatelessWidget { class MoodForm extends StatelessWidget {
const MoodForm({super.key}); const MoodForm({super.key});

View File

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:syncfusion_flutter_charts/charts.dart'; import 'package:syncfusion_flutter_charts/charts.dart';
import '../models/mood.dart'; import 'package:smoke_cess_app/models/mood.dart';
import '../providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
class MoodView extends StatelessWidget { class MoodView extends StatelessWidget {
const MoodView({super.key}); const MoodView({super.key});

View File

@ -2,12 +2,12 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:smoke_cess_app/providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
import 'package:smoke_cess_app/widgets/drop_down.dart'; import 'package:smoke_cess_app/widgets/drop_down.dart';
import 'package:smoke_cess_app/widgets/submit_form_button.dart'; import 'package:smoke_cess_app/widgets/buttons/submit_form_button.dart';
import 'package:smoke_cess_app/widgets/text_formfield.dart'; import 'package:smoke_cess_app/widgets/text_formfield.dart';
import '../providers/input_provider.dart'; import 'package:smoke_cess_app/providers/input_provider.dart';
import '../providers/settings_provider.dart'; import 'package:smoke_cess_app/providers/settings_provider.dart';
import '../services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'elevated_card.dart'; import 'package:smoke_cess_app/widgets/elevated_card.dart';
class RelapseForm extends StatelessWidget { class RelapseForm extends StatelessWidget {
const RelapseForm({super.key}); const RelapseForm({super.key});

View File

@ -1,6 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
class RelapseView extends StatelessWidget { class RelapseView extends StatelessWidget {
const RelapseView({super.key}); const RelapseView({super.key});

View File

@ -3,12 +3,12 @@ import 'package:provider/provider.dart';
import 'package:smoke_cess_app/providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
import 'package:smoke_cess_app/widgets/elevated_card.dart'; import 'package:smoke_cess_app/widgets/elevated_card.dart';
import 'package:smoke_cess_app/widgets/slider.dart'; import 'package:smoke_cess_app/widgets/slider.dart';
import 'package:smoke_cess_app/widgets/submit_form_button.dart'; import 'package:smoke_cess_app/widgets/buttons/submit_form_button.dart';
import 'package:smoke_cess_app/widgets/text_formfield.dart'; import 'package:smoke_cess_app/widgets/text_formfield.dart';
import 'package:smoke_cess_app/widgets/timepicker.dart'; import 'package:smoke_cess_app/widgets/timepicker.dart';
import '../providers/input_provider.dart'; import 'package:smoke_cess_app/providers/input_provider.dart';
import '../services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
class SleepForm extends StatelessWidget { class SleepForm extends StatelessWidget {
const SleepForm({Key? key}) : super(key: key); const SleepForm({Key? key}) : super(key: key);

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:smoke_cess_app/models/sleep.dart'; import 'package:smoke_cess_app/models/sleep.dart';
import 'package:syncfusion_flutter_charts/charts.dart'; import 'package:syncfusion_flutter_charts/charts.dart';
import '../providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
class SleepView extends StatelessWidget { class SleepView extends StatelessWidget {
const SleepView({super.key}); const SleepView({super.key});

View File

@ -1,11 +1,11 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:smoke_cess_app/services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import 'package:smoke_cess_app/widgets/round_button_widget.dart'; import 'package:smoke_cess_app/widgets/buttons/round_button_widget.dart';
import '../providers/input_provider.dart'; import 'package:smoke_cess_app/providers/input_provider.dart';
import '../providers/page_provider.dart'; import 'package:smoke_cess_app/providers/page_provider.dart';
import '../providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
import 'popup_for_task_done.dart'; import 'package:smoke_cess_app/widgets/popup/popup_for_task_done.dart';
class ViewFormPage extends StatelessWidget { class ViewFormPage extends StatelessWidget {
final Widget form; final Widget form;

View File

@ -1,10 +1,10 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:smoke_cess_app/providers/audio_provider.dart'; import 'package:smoke_cess_app/providers/audio_provider.dart';
import '../providers/timer_provider.dart'; import 'package:smoke_cess_app/providers/timer_provider.dart';
import '../providers/workout_provider.dart'; import 'package:smoke_cess_app/providers/workout_provider.dart';
import 'mute_button.dart'; import 'package:smoke_cess_app/widgets/buttons/mute_button.dart';
import 'workout_timer_widget.dart'; import 'package:smoke_cess_app/widgets/workout_timer_widget.dart';
class WorkoutForm extends StatelessWidget { class WorkoutForm extends StatelessWidget {
WorkoutForm({super.key}); WorkoutForm({super.key});

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:smoke_cess_app/models/workout.dart'; import 'package:smoke_cess_app/models/workout.dart';
import 'package:syncfusion_flutter_charts/charts.dart'; import 'package:syncfusion_flutter_charts/charts.dart';
import '../providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
class WorkoutView extends StatelessWidget { class WorkoutView extends StatelessWidget {
const WorkoutView({super.key}); const WorkoutView({super.key});

View File

@ -4,13 +4,13 @@ import 'package:awesome_dialog/awesome_dialog.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../providers/page_provider.dart'; import 'package:smoke_cess_app/providers/page_provider.dart';
import '../providers/tasks_provider.dart'; import 'package:smoke_cess_app/providers/tasks_provider.dart';
import '../providers/workout_provider.dart'; import 'package:smoke_cess_app/providers/workout_provider.dart';
import '../services/pages_service.dart'; import 'package:smoke_cess_app/services/pages_service.dart';
import '../widgets/timer_widget.dart'; import 'package:smoke_cess_app/widgets/timer_widget.dart';
import '../providers/timer_provider.dart'; import 'package:smoke_cess_app/providers/timer_provider.dart';
import 'popup_for_start_and_stop.dart'; import 'package:smoke_cess_app/widgets/popup/popup_for_start_and_stop.dart';
class WorkoutTimerWidget extends StatelessWidget { class WorkoutTimerWidget extends StatelessWidget {
const WorkoutTimerWidget({super.key}); const WorkoutTimerWidget({super.key});