From b368baf744c84e3aa4fef6f9644d14800a6d704f Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Sun, 19 Feb 2023 17:54:30 +0100 Subject: [PATCH] rename settingpage --- lib/pages/main_page.dart | 12 ++++++------ lib/pages/scanner_page.dart | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/pages/main_page.dart b/lib/pages/main_page.dart index 711efb1..6e479e5 100644 --- a/lib/pages/main_page.dart +++ b/lib/pages/main_page.dart @@ -24,12 +24,12 @@ class MyHomePageState extends State { 'Rückfall', 'Scanner' ]; - static final List _widgetOptions = [ - const MoodPage(), - const SleepPage(), - const StopWatchTimerPage(), - const RelapsePage(), - SettingsPage(), + static const List _widgetOptions = [ + MoodPage(), + SleepPage(), + StopWatchTimerPage(), + RelapsePage(), + ScannerPage(), ]; Future _onItemTapped(int index) async { diff --git a/lib/pages/scanner_page.dart b/lib/pages/scanner_page.dart index 73a6a45..5ebb699 100644 --- a/lib/pages/scanner_page.dart +++ b/lib/pages/scanner_page.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:smoke_cess_app/service/settings_service.dart'; -class SettingsPage extends StatelessWidget { - SettingsPage({super.key}); +class ScannerPage extends StatelessWidget { + const ScannerPage({super.key}); @override Widget build(BuildContext context) {