diff --git a/lib/content_views/finished_jobs_page.dart b/lib/content_views/finished_jobs_page.dart index 95815b1..617b2c9 100644 --- a/lib/content_views/finished_jobs_page.dart +++ b/lib/content_views/finished_jobs_page.dart @@ -41,10 +41,10 @@ class _FinishedJobsPageState extends State { return ListView( children: [ ListTile( - title: Column( + title: const Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, - children: const [ + children: [ Text( 'Dies ist ein linksbündigerText', textAlign: TextAlign.left, diff --git a/lib/content_views/main_page.dart b/lib/content_views/main_page.dart index 1c517b9..ac0fb82 100644 --- a/lib/content_views/main_page.dart +++ b/lib/content_views/main_page.dart @@ -27,7 +27,7 @@ class MainPage extends ContentViewWidget { return HeaderInfo( titleWidget: Container( padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 3), - child: Column(children: const [ + child: const Column(children: [ Text( 'Zeile 1', style: TextStyle( diff --git a/lib/content_views/messages_page.dart b/lib/content_views/messages_page.dart index f94f473..d8ad43c 100644 --- a/lib/content_views/messages_page.dart +++ b/lib/content_views/messages_page.dart @@ -1,15 +1,11 @@ -import 'dart:convert'; import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; import 'package:flutter_chat_ui/flutter_chat_ui.dart'; import 'package:flutter_chat_types/flutter_chat_types.dart' as types; import 'package:stadtbote/content_views/utils/content_view_widget.dart'; import 'package:stadtbote/content_views/utils/header_info.dart'; import 'package:stadtbote/popups/infos_popup.dart'; -import '../main.dart'; -import '../model/job.dart'; import '../tools/util.dart'; class MessagesPage extends ContentViewWidget { @@ -75,22 +71,6 @@ class _MessagesPageState extends State { ); } - void _test() async { - var json = await rootBundle.loadString('assets/job.json'); - var jsonMap = jsonDecode(json); - var payload = jsonMap["payload"]; - - var jobsPayload = JobsPayload.fromJson(payload); - - if (jobsPayload.jobs != null) { - MyApp.isarInstance.writeTxnSync(() { - for (var job in jobsPayload.jobs as List) { - MyApp.isarInstance.jobs.putSync(job); - } - }); - } - } - void _handleAttachmentPressed() { } diff --git a/lib/popups/infos_popup.dart b/lib/popups/infos_popup.dart index 272942a..b3d177f 100644 --- a/lib/popups/infos_popup.dart +++ b/lib/popups/infos_popup.dart @@ -41,10 +41,10 @@ void showInfosPopup(BuildContext context) { width: 0.5, ), ), - child: Padding( - padding: const EdgeInsets.all(12.0), + child: const Padding( + padding: EdgeInsets.all(12.0), child: Column( - children: const [ + children: [ Text('Dies sind die Infos\nBla') ], ), diff --git a/lib/popups/tasks_popups/signature_popup.dart b/lib/popups/tasks_popups/signature_popup.dart index 0a721b7..7c9a3e6 100644 --- a/lib/popups/tasks_popups/signature_popup.dart +++ b/lib/popups/tasks_popups/signature_popup.dart @@ -1,7 +1,4 @@ -import 'dart:math'; import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart'; import 'package:kumi_popup_window/kumi_popup_window.dart'; import 'package:signature/signature.dart'; import 'package:stadtbote/model/task_info.dart'; diff --git a/lib/popups/tasks_popups/station_notice_popup.dart b/lib/popups/tasks_popups/station_notice_popup.dart index d4cfc98..55eeeb6 100644 --- a/lib/popups/tasks_popups/station_notice_popup.dart +++ b/lib/popups/tasks_popups/station_notice_popup.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart'; import 'package:kumi_popup_window/kumi_popup_window.dart'; import 'package:stadtbote/model/task_info.dart'; import 'package:stadtbote/tools/util.dart'; @@ -53,7 +52,7 @@ KumiPopupWindow showStationNoticePopup(BuildContext context, TaskInfo taskInfo, children: [ Text(taskInfo.task.topic), const SizedBox(height: 20), - Container( + SizedBox( height: 100, child: Util.getDefaultTextField(taskInfo.task.topic, type: TextInputType.text, diff --git a/lib/popups/tasks_popups/take_photos_popup.dart b/lib/popups/tasks_popups/take_photos_popup.dart index c362af4..a73ec42 100644 --- a/lib/popups/tasks_popups/take_photos_popup.dart +++ b/lib/popups/tasks_popups/take_photos_popup.dart @@ -1,7 +1,6 @@ import 'package:carousel_slider/carousel_slider.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart'; import 'package:kumi_popup_window/kumi_popup_window.dart'; import 'package:stadtbote/model/task_info.dart'; import 'package:stadtbote/tools/util.dart';