Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the big green right arrow (-->) mean in DevTools with Flutter?

What's the big green right arrow (-->) mean in DevTools with Flutter?

I guess it's related to the interactable area, but I'm not sure.

screen capture

The code is the same as in Flutter, Page two can't click when it's on Page 1. Here is the simplified code:

PageController _controller = PageController(initialPage: 0, viewportFraction: 0.5);

@override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.yellow,
      child: PageView(
        controller: _controller,
        children: <Widget>[
          Center(
            child: FlatButton(
              onPressed: () {},
              color: Colors.red,
              child: Text('First Tab'),
            ),
          ),
          Center(
            child: FlatButton(
              onPressed: () {},
              color: Colors.blue,
              child: Text('Second Tab'),
            ),
          ),
          Center(
            child: FlatButton(
              onPressed: () {},
              color: Colors.green,
              child: Text('Third Tab'),
            ),
          ),
        ],
      ),
    );
}
like image 491
JerryZhou Avatar asked Jun 08 '19 18:06

JerryZhou


People also ask

What is debugging in Flutter?

Flutter Debugging : It is a suite of performance and profiling tools run on a browser. Logging: Logging view widget Inspector working in DevTools and also indirectly from the Android Studio & IntelliJ. The inspector allows checking the visual representation of widget trees.

What are DevTools in Flutter?

DevTools is a tooling suite for Flutter and Dart developers consisting of layout inspection tools, performance tools, memory tools & many other debugging tools that you need to be an efficient and effective Flutter developer, all bundled into a single web suite for you!


1 Answers

These green arrows in the so-called "Debug Paint" indicate scroll views.

The direction of the arrows shows which way the scroll view extends, i.e. the arrows will either point to the right or down.
This will appear for e.g. ListView, SingleChildScrollView etc.

Learn more about visual debugging in Flutter.

like image 117
creativecreatorormaybenot Avatar answered Oct 06 '22 07:10

creativecreatorormaybenot