Giter Club home page Giter Club logo

Comments (10)

jonahzheng avatar jonahzheng commented on July 20, 2024 3

it is fixed on the flutter master branch.

flutter channel master

from fluent_ui.

NicolaVerbeeck avatar NicolaVerbeeck commented on July 20, 2024 2

Seems like it is fixed on the flutter master branch

from fluent_ui.

WinXaito avatar WinXaito commented on July 20, 2024 1

Seems to be fixed with:

child: Scrollbar(
  controller: pane.scrollController ?? ScrollController(),
  ...
)

At these lines:

https://github.com/bdlukaa/fluent_ui/blob/master/lib/src/controls/navigation/navigation_view/pane.dart#L340
https://github.com/bdlukaa/fluent_ui/blob/master/lib/src/controls/navigation/navigation_view/pane.dart#L464
https://github.com/bdlukaa/fluent_ui/blob/master/lib/src/controls/navigation/navigation_view/pane.dart#L583

But after that, I've the following error (only at the changement compact -> open and open -> compact, otherwise when I resize the window I don't have any errors.

======== 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:1285:9)
#1      RawScrollbarState._debugCheckHasValidScrollPosition (package:flutter/src/widgets/scrollbar.dart:1310:6)
#2      RawScrollbarState._maybeTriggerScrollbar.<anonymous closure> (package:flutter/src/widgets/scrollbar.dart:1242:16)
#3      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#4      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1088:9)
#5      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
#9      _invoke (dart:ui/hooks.dart:166:10)
#10     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
#11     _drawFrame (dart:ui/hooks.dart:129:31)
(elided 3 frames from dart:async)
====================================================================================================

from fluent_ui.

shiwenwang avatar shiwenwang commented on July 20, 2024 1

@bdlukaa what about this ?

I got that with TabView... :(

me too, so what's the solution for TabView?

flutter version: 2.10.5
fluent_ui version: 3.11.0

from fluent_ui.

bdlukaa avatar bdlukaa commented on July 20, 2024

This issue is happening since I ever implemented scrollbars. It happens when we resize the window I think.

Tho, this is a Flutter issue. It happens on RawScrollbar

from fluent_ui.

TerryLiu avatar TerryLiu commented on July 20, 2024

I met the same problem

from fluent_ui.

YehudaKremer avatar YehudaKremer commented on July 20, 2024

same here.

  1. clone repo
  2. debug example:
    image

from fluent_ui.

bdlukaa avatar bdlukaa commented on July 20, 2024

flutter/flutter#92657 seems to have fixed it. Tho it might take a while to land on stable

from fluent_ui.

bdlukaa avatar bdlukaa commented on July 20, 2024

flutter/flutter#82573

from fluent_ui.

WinXaito avatar WinXaito commented on July 20, 2024

@bdlukaa what about this ?

I got that with TabView... :(

from fluent_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.