close
Skip to content

Window Translucency Effect not workingΒ #332

Description

@Chandram-Dutta

Description

The window translucency effect does not work and shows a black background, this occurred after updating flutter to 3.7.0. It was working fine before

Steps To Reproduce

Details The mason build macosui_starter app has the issue.

Expected behavior
The macOS translucency effect should work like any other macOS app

Screenshots
Screenshot 2023-01-27 at 12 02 58 AM

Logs

Logs
flutter run
Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008112-000C24493CF1401E }
{ platform:macOS, arch:x86_64, id:00008112-000C24493CF1401E }
warning: invalid character in Bundle Identifier. This string must be a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters. (in target 'Runner' from project 'Runner')
Building macOS application...                                           
Syncing files to device macOS...                                    41ms

Flutter run key commands.
r Hot reload. πŸ”₯πŸ”₯πŸ”₯
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

πŸ’ͺ Running with sound null safety πŸ’ͺ

An Observatory debugger and profiler on macOS is available at: http://127.0.0.1:55169/gVlAfYRXK-c=/

══║ EXCEPTION CAUGHT BY SCHEDULER LIBRARY β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
The following assertion was thrown during a scheduler callback:
The Scrollbar's ScrollController has no ScrollPosition attached.
A Scrollbar cannot be painted without a ScrollPosition.
The Scrollbar attempted to use the provided ScrollController. This ScrollController should be
associated with the ScrollView that the Scrollbar is being applied to.When providing your own
ScrollController, ensure both the Scrollbar and the Scrollable widget use the same one.

When the exception was thrown, this was the stack:
#0      RawScrollbarState._debugCheckHasValidScrollPosition.<anonymous closure> (package:flutter/src/widgets/scrollbar.dart:1597:9)
#1      RawScrollbarState._debugCheckHasValidScrollPosition (package:flutter/src/widgets/scrollbar.dart:1622:6)
#2      RawScrollbarState._debugScheduleCheckHasValidScrollPosition.<anonymous closure> (package:flutter/src/widgets/scrollbar.dart:1551:14)
#3      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1289:15)
#4      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1227:9)
#5      SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:942:7)
#9      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)
(elided 3 frames from class _Timer and dart:async-patch)
════════════════════════════════════════════════════════════════════════════════════════════════════

Another exception was thrown: The Scrollbar's ScrollController has no ScrollPosition attached.
The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:55169/gVlAfYRXK-c=/

Another exception was thrown: The Scrollbar's ScrollController has no ScrollPosition attached.
Application finished.

flutter analyze
Analyzing macosui_starter...                                            

   info β€’ 'body' is deprecated and shouldn't be used. Use the child attribute instead. This feature was deprecated after v3.1.0-0.0.pre β€’ lib/main.dart:130:7
          β€’ deprecated_member_use

1 issue found. (ran in 1.4s)
flutter doctor -v
[βœ“] Flutter (Channel stable, 3.7.0, on macOS 13.2 22D49 darwin-arm64, locale en-IN)
    β€’ Flutter version 3.7.0 on channel stable at /Users/chandramdutta/Developer/SDK/flutter
    β€’ Upstream repository https://github.com/flutter/flutter.git
    β€’ Framework revision b06b8b2710 (3 days ago), 2023-01-23 16:55:55 -0800
    β€’ Engine revision b24591ed32
    β€’ Dart version 2.19.0
    β€’ DevTools version 2.20.1

[βœ“] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    β€’ Android SDK at /Users/chandramdutta/Library/Android/sdk
    β€’ Platform android-33, build-tools 33.0.1
    β€’ Java binary at: /Users/chandramdutta/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    β€’ Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 14.2)
    β€’ Xcode at /Applications/Xcode.app/Contents/Developer
    β€’ Build 14C18
    β€’ CocoaPods version 1.11.3

[βœ“] Chrome - develop for the web
    β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2021.3)
    β€’ Android Studio at /Users/chandramdutta/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/Android
      Studio.app/Contents
    β€’ Flutter plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/9212-flutter
    β€’ Dart plugin can be installed from:
      πŸ”¨ https://plugins.jetbrains.com/plugin/6351-dart
    β€’ Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[βœ“] VS Code (version 1.74.3)
    β€’ VS Code at /Applications/Visual Studio Code.app/Contents
    β€’ Flutter extension version 3.58.0

[βœ“] Connected device (2 available)
    β€’ macOS (desktop) β€’ macos  β€’ darwin-arm64   β€’ macOS 13.2 22D49 darwin-arm64
    β€’ Chrome (web)    β€’ chrome β€’ web-javascript β€’ Google Chrome 109.0.5414.119

[βœ“] HTTP Host Availability
    β€’ All required HTTP hosts are available

β€’ No issues found!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions