1

I have a web page project in flutter but there is a problem.

When I write the page with VScode and run it locally on Google, the scroll bar does not come to scroll down the page.

enter image description here

The rightmost scroll bar on the pages does not appear when flutter web projects are built.

enter image description here

What is the reason for this?

Is this how Google developers designed it?

Could it have something to do with the native development environment?

Akif
  • 7,098
  • 7
  • 27
  • 53
Ali ÜSTÜNEL
  • 183
  • 2
  • 9
  • how we are supposed to debug this from a screenshot? – GBra 4.669 Jan 10 '21 at 15:03
  • this screenshot is an example. There is a scroll bar on the internet pages for us to scroll up and down on the far right. But when flutter web projects are built, this bar does not come up. – Ali ÜSTÜNEL Jan 10 '21 at 16:00
  • hi ali , did you find the answer of your question ? if you did can you please help me out i have the same problem – Miran GAMER Jun 26 '22 at 12:03

1 Answers1

4

You need to wrap your body with the Scrollbar widget, and do not forget to set isAlwaysShown attribute to true.

body: Scrollbar(
         isAlwaysShown: true,
Akif
  • 7,098
  • 7
  • 27
  • 53
  • that's right I think I am constantly developing on MaterialDesign, but on the web side, I need to develop in accordance with the HTML structure instead of MaterialApp. – Ali ÜSTÜNEL Jan 10 '21 at 17:20
  • 1
    Ok, then you can show us some code about your page. – Akif Jan 10 '21 at 17:22