#576 und Refactoring
This commit is contained in:
1 parent
7d9a5f6729
commit
d59260fe24
8 files changed
+8
-11
No files matched your search
@@ -1,4 +1,3 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:stadtbote/main.dart';
|
import 'package:stadtbote/main.dart';
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class _AssignedJobsPageState extends State<AssignedJobsPage> {
|
|||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: const Text('asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd '),
|
child: Text(job.rem),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:isar/isar.dart';
|
import 'package:isar/isar.dart';
|
||||||
import 'package:stadtbote/content_views/accepted_jobs_page.dart';
|
import 'package:stadtbote/content_views/accepted_jobs_page.dart';
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class _MessagesPageState extends State<MessagesPage> {
|
|||||||
author: message.from == _sid ? _user : _central,
|
author: message.from == _sid ? _user : _central,
|
||||||
createdAt: DateTime.parse(message.time).toLocal().millisecondsSinceEpoch,
|
createdAt: DateTime.parse(message.time).toLocal().millisecondsSinceEpoch,
|
||||||
id: message.id.toString(),
|
id: message.id.toString(),
|
||||||
text: message.subj + "\n" + message.text,
|
text: "${message.subj}\n${message.text}",
|
||||||
));
|
));
|
||||||
|
|
||||||
_messages.sort((a, b) => b.createdAt! > a.createdAt! ? 1 : 0);
|
_messages.sort((a, b) => b.createdAt! > a.createdAt! ? 1 : 0);
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class _TaskListPageState extends State<TaskListPage> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: _commisionNumber.length > 0,
|
visible: _commisionNumber.isNotEmpty,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Text('Komm-#: $_commisionNumber', style: const TextStyle(fontSize: 20), textAlign: TextAlign.left),
|
Text('Komm-#: $_commisionNumber', style: const TextStyle(fontSize: 20), textAlign: TextAlign.left),
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import 'dart:async';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:geolocator/geolocator.dart';
|
import 'package:geolocator/geolocator.dart';
|
||||||
import 'package:is_lock_screen/is_lock_screen.dart';
|
|
||||||
import 'package:isar/isar.dart';
|
import 'package:isar/isar.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:stadtbote/messages/pop_content_view_message.dart';
|
import 'package:stadtbote/messages/pop_content_view_message.dart';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import 'package:carousel_slider/carousel_slider.dart';
|
import 'package:carousel_slider/carousel_slider.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:image/image.dart' as imageLib;
|
import 'package:image/image.dart' as image_lib;
|
||||||
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';
|
||||||
|
|
||||||
@@ -26,12 +26,12 @@ Future<void> showTakePhotosPopup(BuildContext context, TaskInfo taskInfo, Functi
|
|||||||
if (photo != null) {
|
if (photo != null) {
|
||||||
var fullsizeImageData = await photo.readAsBytes();
|
var fullsizeImageData = await photo.readAsBytes();
|
||||||
|
|
||||||
imageLib.Image? image = imageLib.decodeImage(fullsizeImageData);
|
image_lib.Image? image = image_lib.decodeImage(fullsizeImageData);
|
||||||
|
|
||||||
if (image != null) {
|
if (image != null) {
|
||||||
var thumbnail = imageLib.copyResize(image, width: 800);
|
var thumbnail = image_lib.copyResize(image, width: 800);
|
||||||
|
|
||||||
var resizedImageData = imageLib.encodeJpg(thumbnail, quality: 75);
|
var resizedImageData = image_lib.encodeJpg(thumbnail, quality: 75);
|
||||||
|
|
||||||
photo.delete();
|
photo.delete();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 301.0.0+301
|
version: 302.0.0+302
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.19.6 <3.0.0'
|
sdk: '>=2.19.6 <3.0.0'
|
||||||
|
|||||||
Reference in new issue
Block a user