You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Flutter project with the 3.22.0 version
Write a simple Widget that uses PageView (1 simple page will suffice)
Expected results
The simple page is displayed on the screen embedded inside the PageView Widget.
Actual results
The application crushes as soon as it starts running, showing the following error:
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
../../../../../.pub-cache/hosted/pub.dev/page_indicator-0.4.1/lib/src/container.dart:56:42: Error: Property 'initialPage' cannot be accessed on 'PageController?' because it is potentially null.
'PageController' is from 'package:flutter/src/widgets/page_view.dart' ('../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/page_view.dart').
Try accessing using ?. instead.
final initPage = pageView.controller.initialPage;
^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/home//snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 2s
Error: Gradle task assembleDebug failed with exit code 1
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel stable, 3.22.0, on Ubuntu 22.04.4 LTS 6.5.0-27-generic, locale en_US.UTF-8)[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)[✓] Chrome - develop for the web[✓] Linux toolchain - develop for Linux desktop[✓] Android Studio (version 2023.2)[✓] IntelliJ IDEA Community Edition (version 2024.1)[✓] VS Code (version 1.89.1)[✓] Connected device (3 available)[✓] Network resources• No issues found!
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Steps to reproduce
Create a Flutter project with the 3.22.0 version
Write a simple Widget that uses PageView (1 simple page will suffice)
Expected results
The simple page is displayed on the screen embedded inside the PageView Widget.
Actual results
The application crushes as soon as it starts running, showing the following error:
Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
../../../../../.pub-cache/hosted/pub.dev/page_indicator-0.4.1/lib/src/container.dart:56:42: Error: Property 'initialPage' cannot be accessed on 'PageController?' because it is potentially null.
Try accessing using ?. instead.
final initPage = pageView.controller.initialPage;
^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileFlutterBuildDebug'.
BUILD FAILED in 2s
Error: Gradle task assembleDebug failed with exit code 1
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: