Erweiterungen
This commit is contained in:
1 parent
25a2455ce1
commit
1732a634be
10 files changed
+268
-116
No files matched your search
@@ -1,13 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:stadtbote/content_views/tour_list_page.dart';
|
||||
import 'package:stadtbote/content_views/utils/content_view_widget.dart';
|
||||
import 'package:stadtbote/content_views/utils/header_info.dart';
|
||||
import 'package:stadtbote/tools/message_service.dart';
|
||||
|
||||
import '../main.dart';
|
||||
import '../model/job.dart';
|
||||
import '../tools/constants.dart';
|
||||
import '../tools/util.dart';
|
||||
|
||||
class ApproachAreaPage extends ContentViewWidget {
|
||||
@@ -36,14 +30,14 @@ class ApproachAreaPage extends ContentViewWidget {
|
||||
}
|
||||
|
||||
class _ApproachAreaPageState extends State<ApproachAreaPage> {
|
||||
late List<Job> _jobs;
|
||||
//late List<Job> _jobs;
|
||||
|
||||
late bool _initCompleted = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
Future.delayed(const Duration(seconds: 0), () async {
|
||||
_jobs = await MyApp.isarInstance.jobs.filter().stateEqualTo(1).findAll();
|
||||
//_jobs = await MyApp.isarInstance.jobs.filter().stateEqualTo(1).findAll();
|
||||
|
||||
_initCompleted = true;
|
||||
|
||||
@@ -59,25 +53,25 @@ class _ApproachAreaPageState extends State<ApproachAreaPage> {
|
||||
return Util.getWaitWidget(context);
|
||||
}
|
||||
|
||||
return SingleChildScrollView(
|
||||
return const 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')),
|
||||
SizedBox(width: 80, child: Text('Row 1')),
|
||||
SizedBox(width: 80, child: Text('Row 2')),
|
||||
SizedBox(width: 80, child: Text('Row 3')),
|
||||
SizedBox(width: 80, child: Text('Row 4')),
|
||||
SizedBox(width: 80, child: Text('Row 5')),
|
||||
SizedBox(width: 80, child: Text('Row 6')),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _clicked(Job job) {
|
||||
/*void _clicked(Job job) {
|
||||
MessageService().publish<ContentViewWidget>(Constants.messageTopicPushContentView, arguments: TourListPage(job: job));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
Reference in new issue
Block a user