Cleanup
This commit is contained in:
1 parent
308183d6cd
commit
2e53482a3c
7 files changed
+7
-32
No files matched your search
@@ -41,10 +41,10 @@ class _FinishedJobsPageState extends State<FinishedJobsPage> {
|
|||||||
return ListView(
|
return ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Column(
|
title: const Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
'Dies ist ein linksbündigerText',
|
'Dies ist ein linksbündigerText',
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class MainPage extends ContentViewWidget {
|
|||||||
return HeaderInfo(
|
return HeaderInfo(
|
||||||
titleWidget: Container(
|
titleWidget: Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 3),
|
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 3),
|
||||||
child: Column(children: const [
|
child: const Column(children: [
|
||||||
Text(
|
Text(
|
||||||
'Zeile 1',
|
'Zeile 1',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
|
||||||
import 'package:flutter_chat_ui/flutter_chat_ui.dart';
|
import 'package:flutter_chat_ui/flutter_chat_ui.dart';
|
||||||
import 'package:flutter_chat_types/flutter_chat_types.dart' as types;
|
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/content_view_widget.dart';
|
||||||
import 'package:stadtbote/content_views/utils/header_info.dart';
|
import 'package:stadtbote/content_views/utils/header_info.dart';
|
||||||
import 'package:stadtbote/popups/infos_popup.dart';
|
import 'package:stadtbote/popups/infos_popup.dart';
|
||||||
|
|
||||||
import '../main.dart';
|
|
||||||
import '../model/job.dart';
|
|
||||||
import '../tools/util.dart';
|
import '../tools/util.dart';
|
||||||
|
|
||||||
class MessagesPage extends ContentViewWidget {
|
class MessagesPage extends ContentViewWidget {
|
||||||
@@ -75,22 +71,6 @@ class _MessagesPageState extends State<MessagesPage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
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<Job>) {
|
|
||||||
MyApp.isarInstance.jobs.putSync(job);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void _handleAttachmentPressed() {
|
void _handleAttachmentPressed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ void showInfosPopup(BuildContext context) {
|
|||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: const Padding(
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: EdgeInsets.all(12.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: const [
|
children: [
|
||||||
Text('Dies sind die Infos\nBla')
|
Text('Dies sind die Infos\nBla')
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
import 'dart:math';
|
|
||||||
import 'package:flutter/material.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:kumi_popup_window/kumi_popup_window.dart';
|
||||||
import 'package:signature/signature.dart';
|
import 'package:signature/signature.dart';
|
||||||
import 'package:stadtbote/model/task_info.dart';
|
import 'package:stadtbote/model/task_info.dart';
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.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:kumi_popup_window/kumi_popup_window.dart';
|
||||||
import 'package:stadtbote/model/task_info.dart';
|
import 'package:stadtbote/model/task_info.dart';
|
||||||
import 'package:stadtbote/tools/util.dart';
|
import 'package:stadtbote/tools/util.dart';
|
||||||
@@ -53,7 +52,7 @@ KumiPopupWindow showStationNoticePopup(BuildContext context, TaskInfo taskInfo,
|
|||||||
children: [
|
children: [
|
||||||
Text(taskInfo.task.topic),
|
Text(taskInfo.task.topic),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
Container(
|
SizedBox(
|
||||||
height: 100,
|
height: 100,
|
||||||
child: Util.getDefaultTextField(taskInfo.task.topic,
|
child: Util.getDefaultTextField(taskInfo.task.topic,
|
||||||
type: TextInputType.text,
|
type: TextInputType.text,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import 'package:carousel_slider/carousel_slider.dart';
|
import 'package:carousel_slider/carousel_slider.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.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:kumi_popup_window/kumi_popup_window.dart';
|
||||||
import 'package:stadtbote/model/task_info.dart';
|
import 'package:stadtbote/model/task_info.dart';
|
||||||
import 'package:stadtbote/tools/util.dart';
|
import 'package:stadtbote/tools/util.dart';
|
||||||
|
|||||||
Reference in new issue
Block a user