Erweiterungen
This commit is contained in:
1 parent
286c6537b9
commit
4526dd174f
9 files changed
+160
-93
No files matched your search
@@ -59,7 +59,22 @@ class _ApproachAreaPageState extends State<ApproachAreaPage> {
|
||||
return Util.getWaitWidget(context);
|
||||
}
|
||||
|
||||
return const Text("Hello World!");
|
||||
return SingleChildScrollView(
|
||||
scrollDirection: Axis.vertical,
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
children: [
|
||||
Container(width: 80, child: Text('Row 1')),
|
||||
Container(width: 80, child: Text('Row 2')),
|
||||
Container(width: 80, child: Text('Row 3')),
|
||||
Container(width: 80, child: Text('Row 4')),
|
||||
Container(width: 80, child: Text('Row 5')),
|
||||
Container(width: 80, child: Text('Row 6')),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _clicked(Job job) {
|
||||
|
||||
@@ -9,6 +9,7 @@ import 'package:stadtbote/main.dart';
|
||||
import 'package:stadtbote/model/message.dart' as sbmessage;
|
||||
import 'package:stadtbote/model/status.dart';
|
||||
import 'package:stadtbote/popups/infos_popup.dart';
|
||||
import 'package:stadtbote/tools/mqtt_core.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
import '../tools/util.dart';
|
||||
@@ -94,12 +95,14 @@ class _MessagesPageState extends State<MessagesPage> {
|
||||
message.from = _sid;
|
||||
message.subj = '';
|
||||
message.time = DateFormat("yyyy.mm.dd HH:mm").format(DateTime.now());
|
||||
message.id = 0;
|
||||
message.id = await sbmessage.Message.getNextId();
|
||||
|
||||
MyApp.isarInstance.writeTxnSync(() {
|
||||
MyApp.isarInstance.messages.putSync(message);
|
||||
});
|
||||
|
||||
MqttCore.instance.publishPayloadMessage('mssg', message.toJson());
|
||||
|
||||
_messages.insert(0, types.TextMessage(
|
||||
author: _user,
|
||||
createdAt: DateTime.now().millisecondsSinceEpoch,
|
||||
@@ -120,7 +123,7 @@ class _MessagesPageState extends State<MessagesPage> {
|
||||
text += '$textLine\n';
|
||||
}
|
||||
|
||||
_messages.add(types.TextMessage(
|
||||
_messages.insert(0, types.TextMessage(
|
||||
author: message.from == _sid ? _user : _central,
|
||||
createdAt: DateTime.now().millisecondsSinceEpoch,
|
||||
id: const Uuid().v4().toString(),
|
||||
|
||||
@@ -148,7 +148,7 @@ class _TaskListPageState extends State<TaskListPage> {
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
utf8.decode(taskInfo.task.topic.codeUnits),
|
||||
taskInfo.task.topic,
|
||||
textAlign: TextAlign.left,
|
||||
style: TextStyle(
|
||||
color: textColor,
|
||||
@@ -332,7 +332,7 @@ class _TaskListPageState extends State<TaskListPage> {
|
||||
|
||||
void _processPickupDeliveryStatusTask(TaskInfo taskInfo) {
|
||||
Future.delayed(const Duration(seconds: 1), () async {
|
||||
_popup = showPickupDeliveryStatusPopup(context, taskInfo, () => {
|
||||
_popup = showPickupDeliveryStatusPopup(context, taskInfo, (tourEntry) => {
|
||||
_popup.dismiss(context),
|
||||
|
||||
taskInfo.completed = true,
|
||||
|
||||
Reference in new issue
Block a user