Fix timetable not displaying in profile-mode
This commit is contained in:
parent
240e457fb5
commit
f5d030fbfb
2
.idea/libraries/Flutter_Plugins.xml
generated
2
.idea/libraries/Flutter_Plugins.xml
generated
@ -2,6 +2,7 @@
|
|||||||
<library name="Flutter Plugins" type="FlutterPluginsLibraryType">
|
<library name="Flutter Plugins" type="FlutterPluginsLibraryType">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.2" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.2" />
|
||||||
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/flutter_native_splash-2.2.18" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.2" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.2" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider-2.0.12" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider-2.0.12" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.23" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.23" />
|
||||||
@ -19,7 +20,6 @@
|
|||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.4" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.4" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.3" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.3" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.15" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.15" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/flutter_native_splash-2.2.18" />
|
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES />
|
<SOURCES />
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</content>
|
</content>
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="Dart SDK" level="project" />
|
<orderEntry type="library" name="Dart SDK" level="project" />
|
||||||
<orderEntry type="library" name="Dart Packages" level="project" />
|
|
||||||
<orderEntry type="library" name="Flutter Plugins" level="project" />
|
<orderEntry type="library" name="Flutter Plugins" level="project" />
|
||||||
|
<orderEntry type="library" name="Dart Packages" level="project" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
59
flutter_02.log
Normal file
59
flutter_02.log
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Flutter crash report.
|
||||||
|
Please report a bug at https://github.com/flutter/flutter/issues.
|
||||||
|
|
||||||
|
## command
|
||||||
|
|
||||||
|
flutter --no-color run --machine --device-id=5200de3d4dd02295 --profile --dart-define=flutter.inspector.structuredErrors=true lib/main.dart
|
||||||
|
|
||||||
|
## exception
|
||||||
|
|
||||||
|
String: failed to connect to http://127.0.0.1:45527/cpTOi69XvcE=/
|
||||||
|
|
||||||
|
```
|
||||||
|
```
|
||||||
|
|
||||||
|
## flutter doctor
|
||||||
|
|
||||||
|
```
|
||||||
|
[!] Flutter (Channel stable, 3.7.4, on Linux Mint 20.3 5.15.0-60-generic, locale de_DE.UTF-8)
|
||||||
|
• Flutter version 3.7.4 on channel stable at /opt/flutter
|
||||||
|
! The flutter binary is not on your path. Consider adding /opt/flutter/bin to your path.
|
||||||
|
! The dart binary is not on your path. Consider adding /opt/flutter/bin to your path.
|
||||||
|
• Upstream repository https://github.com/flutter/flutter.git
|
||||||
|
• Framework revision b4bce91dd0 (vor 22 Stunden), 2023-02-21 09:50:50 +0800
|
||||||
|
• Engine revision 248290d6d5
|
||||||
|
• Dart version 2.19.2
|
||||||
|
• DevTools version 2.20.1
|
||||||
|
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
|
||||||
|
|
||||||
|
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
|
||||||
|
• Android SDK at /home/elias/Android/Sdk
|
||||||
|
• Platform android-33, build-tools 33.0.0
|
||||||
|
• Java binary at: /home/elias/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/jre/bin/java
|
||||||
|
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
|
||||||
|
• All Android licenses accepted.
|
||||||
|
|
||||||
|
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
|
||||||
|
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
|
||||||
|
|
||||||
|
[✓] Linux toolchain - develop for Linux desktop
|
||||||
|
• clang version 10.0.0-4ubuntu1
|
||||||
|
• cmake version 3.16.3
|
||||||
|
• ninja version 1.10.0
|
||||||
|
• pkg-config version 0.29.1
|
||||||
|
|
||||||
|
[✓] Android Studio (version 2021.3)
|
||||||
|
• Android Studio at /home/elias/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335
|
||||||
|
• Flutter plugin version 72.1.1
|
||||||
|
• Dart plugin version 213.7433
|
||||||
|
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
|
||||||
|
|
||||||
|
[✓] Connected device (2 available)
|
||||||
|
• SM G800F (mobile) • 5200de3d4dd02295 • android-arm • Android 6.0.1 (API 23)
|
||||||
|
• Linux (desktop) • linux • linux-x64 • Linux Mint 20.3 5.15.0-60-generic
|
||||||
|
|
||||||
|
[✓] HTTP Host Availability
|
||||||
|
• All required HTTP hosts are available
|
||||||
|
|
||||||
|
! Doctor found issues in 2 categories.
|
||||||
|
```
|
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
import 'dart:developer';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:marianum_mobile/data/timetable/timetableProps.dart';
|
import 'package:marianum_mobile/data/timetable/timetableProps.dart';
|
||||||
import 'package:marianum_mobile/screen/pages/timetable/weekView.dart';
|
import 'package:marianum_mobile/screen/pages/timetable/weekView.dart';
|
||||||
@ -26,8 +24,6 @@ class _TimetableState extends State<Timetable> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
double movement = 0;
|
|
||||||
|
|
||||||
return Consumer<TimetableProps>(
|
return Consumer<TimetableProps>(
|
||||||
builder: (context, value, child) {
|
builder: (context, value, child) {
|
||||||
if(value.primaryLoading()) {
|
if(value.primaryLoading()) {
|
||||||
@ -39,14 +35,8 @@ class _TimetableState extends State<Timetable> {
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
child: Positioned(
|
child: WeekView(value),
|
||||||
left: movement,
|
//onDoubleTap: () => timetable.nearest(),
|
||||||
child: WeekView(value),
|
|
||||||
),
|
|
||||||
onHorizontalDragUpdate: (details) {
|
|
||||||
log("${details.globalPosition.dx}");
|
|
||||||
movement = details.globalPosition.dx;
|
|
||||||
},
|
|
||||||
onHorizontalDragEnd: (details) {
|
onHorizontalDragEnd: (details) {
|
||||||
if(details.primaryVelocity! < 0) {
|
if(details.primaryVelocity! < 0) {
|
||||||
timetable.switchWeek();
|
timetable.switchWeek();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user