flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.15k stars 27.47k forks source link

NestedScrollView Causes Failed assertion exception on state change in specific case with Tabs and CustomScrollViews #51205

Closed jimmyff closed 3 years ago

jimmyff commented 4 years ago

I spent the afternoon tracking down a bug, however I have created a reproducable example of it. This error is triggered when changing state during a tab change callback when the TabBarView contains multiple CustomScrollViews. The error:

package:flutter/src/widgets/nested_scroll_view.dart': Failed assertion: line 590 pos 14: 'position.minScrollExtent != null && position.pixels != null': is not true.

The error only occurs if you move tabs to a tab that is not immedatley ajecent to another tab. (eg: going from tab 1 -> 3, or 3 -> 1. ) The reason I need to update the state on tab change is so I can change the action bar buttons.

The error seems to be caused by the CustomScrollView in the middle (that is getting jumped over). If I change this to a Container() the error goes away.

Here is the Widget that reproduces the problem:

import 'package:flutter/material.dart';

class ExampleErrorScreen extends StatefulWidget {

  ExampleErrorScreen();

  @override
  _ExampleErrorScreenState createState() => _ExampleErrorScreenState();
}

class _ExampleErrorScreenState extends State<ExampleErrorScreen>
    with SingleTickerProviderStateMixin {
  TabController _tabController;
  int selectedTab = 0;

  @override
  initState() {
    super.initState();
    _tabController = TabController(initialIndex: 0, length: 3, vsync: this);
    _tabController.addListener(tabChange);
  }

  @override
  void dispose() {
    _tabController.dispose();
    super.dispose();
  }

  tabChange() {
    if (_tabController.indexIsChanging == false)
      setState(() {
        selectedTab = _tabController.index;
      });
  }

  @override
  Widget build(BuildContext context) {
    return StoreConnector<AppState, MediaPanelViewModel>(
        converter: (store) => MediaPanelViewModel.fromStore(store),
        builder: (context, viewModel) =>
            LayoutBuilder(builder: (context, constraint) {
              return Scaffold(
                body: NestedScrollView(
                  headerSliverBuilder:
                      (BuildContext context, bool innerBoxIsScrolled) {
                    return <Widget>[
                      SliverAppBar(
                        backgroundColor: Colors.grey.shade900,
                        expandedHeight: 400,
                        floating: false,
                        actions: <Widget>[
                          if (_tabController.index == 1)
                            IconButton(
                              icon: Icon(Icons.access_time),
                              onPressed: () => print('pressed'),
                            ),
                          if (_tabController.index == 2)
                            IconButton(
                              icon: Icon(Icons.ac_unit),
                              onPressed: () => print('pressed'),
                            )
                        ],
                        pinned: true,
                        bottom: TabBar(
                            controller: _tabController,
                            isScrollable: true,
                            tabs: [
                              Tab(
                                text: '1',
                                icon: Icon(Icons.account_balance),
                              ),
                              Tab(
                                text: '2',
                                icon: Icon(Icons.account_balance),
                              ),
                              Tab(
                                text: '3',
                                icon: Icon(Icons.account_balance),
                              ),
                            ]),
                        flexibleSpace: FlexibleSpaceBar(
                          titlePadding: EdgeInsets.only(bottom: 96),
                          centerTitle: true,
                          title: Text(
                            'test',
                            style: TextStyle(
                              color: Colors.white,
                              fontSize: 16.0,
                            ),
                          ),
                        ),
                      ),
                    ];
                  },
                  body: TabBarView(controller: _tabController, children: [
                    CustomScrollView(
                      slivers: <Widget>[SliverToBoxAdapter(child: Container())],
                    ),
                    CustomScrollView(
                      slivers: <Widget>[SliverToBoxAdapter(child: Container())],
                    ),
                    CustomScrollView(
                      slivers: <Widget>[SliverToBoxAdapter(child: Container())],
                    ),
                  ]),
                ),
              );
            }));
  }
}

Screenshots demonstrating the issue:

This is what you will see when you run the code: photo_2020-02-21 15 47 11

After sliding to the right (or using Tab button 2) photo_2020-02-21 15 47 13

From 2, after sliding to the right (or using Tab button 3) photo_2020-02-21 15 47 13 (1)

But then if you go back to the first tab using the Tab buttons you will trigger the error: photo_2020-02-21 15 47 09

TahaTesser commented 4 years ago

Hi @jimmyff can you please provide your flutter doctor -v and flutter run --verbose? Running your code doesn't seem to produce errors Dartpad Gist Thank you

jimmyff commented 4 years ago

Hey @TahaTesser, it definetly causes an erorr, I just created a new project to test it. I've included the app code below.

In order to get the error:

  1. Select tab 2
  2. Select tab 3
  3. Go back to tab 1

This should create the red screen of death.

main.dart

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Tab state error',
      theme: ThemeData(
        primarySwatch: Colors.amber,
      ),
      home: ExampleErrorScreen(),
    );
  }
}

class ExampleErrorScreen extends StatefulWidget {
  ExampleErrorScreen();

  @override
  _ExampleErrorScreenState createState() => _ExampleErrorScreenState();
}

class _ExampleErrorScreenState extends State<ExampleErrorScreen>
    with SingleTickerProviderStateMixin {
  TabController _tabController;
  int selectedTab = 0;

  @override
  initState() {
    super.initState();
    _tabController = TabController(initialIndex: 0, length: 3, vsync: this);
    _tabController.addListener(tabChange);
  }

  @override
  void dispose() {
    _tabController.dispose();
    super.dispose();
  }

  tabChange() {
    if (_tabController.indexIsChanging == false)
      setState(() {
        selectedTab = _tabController.index;
      });
  }

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(builder: (context, constraint) {
      return Scaffold(
        body: NestedScrollView(
          headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
            return <Widget>[
              SliverAppBar(
                backgroundColor: Colors.amberAccent,
                expandedHeight: 400,
                floating: false,
                actions: <Widget>[
                  if (_tabController.index == 1)
                    IconButton(
                      icon: Icon(Icons.access_time),
                      onPressed: () => print('pressed'),
                    ),
                  if (_tabController.index == 2)
                    IconButton(
                      icon: Icon(Icons.ac_unit),
                      onPressed: () => print('pressed'),
                    )
                ],
                pinned: true,
                bottom: TabBar(
                    controller: _tabController,
                    isScrollable: true,
                    tabs: [
                      Tab(
                        text: '1',
                        icon: Icon(Icons.access_alarm),
                      ),
                      Tab(
                        text: '2',
                        icon: Icon(Icons.account_balance),
                      ),
                      Tab(
                        text: '3',
                        icon: Icon(Icons.business),
                      ),
                    ]),
                flexibleSpace: FlexibleSpaceBar(
                  titlePadding: EdgeInsets.only(bottom: 96),
                  centerTitle: true,
                  title: Text(
                    'test',
                    style: TextStyle(
                      color: Colors.black,
                      fontSize: 16.0,
                    ),
                  ),
                ),
              ),
            ];
          },
          body: TabBarView(controller: _tabController, children: [
            CustomScrollView(
              slivers: <Widget>[SliverToBoxAdapter(child: Container())],
            ),
            CustomScrollView(
              slivers: <Widget>[SliverToBoxAdapter(child: Container())],
            ),
            CustomScrollView(
              slivers: <Widget>[SliverToBoxAdapter(child: Container())],
            ),
          ]),
        ),
      );
    });
  }
}
[✓] Flutter (Channel master, v1.15.4-pre.155, on Mac OS X
    10.14.6 18G1012, locale en-GB)
    • Flutter version 1.15.4-pre.155 at
      /Users/jimmyff/flutter-sdk
    • Framework revision 2078cc4d5f (6 days ago), 2020-02-25
      01:02:26 -0500
    • Engine revision 888a62cf22
    • Dart version 2.8.0 (build 2.8.0-dev.10.0 73f6d15665)
Checking Android licenses is taking an unexpectedly long time..                                                [✓] Android toolchain - develop for Android devices (Android
    SDK version 28.0.3)
    • Android SDK at /Users/jimmyff/Library/Android/sdk
    • Android NDK location not configured (optional; useful for
      native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Development/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Development/Android
      Studio.app/Contents
    • Flutter plugin version 40.2.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2017.2)
    • IntelliJ at /Applications/Development/IntelliJ IDEA.app
    ✗ Flutter plugin version 15.1 - the recommended minimum
      version is 16.0.0
    • Dart plugin version 172.3317.48
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugin
      s

[✓] Connected device (1 available)
    • Pixel 3 • 8B5X140C0 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 1 category.
logs ``` { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad11,3", "identifier" : "8AC856CC-6564-4E92-866D-6D8AE6C35F6C", "architecture" : "x86_64", "modelName" : "iPad Air (3rd generation)", "name" : "iPad Air (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17K446)", "available" : true, "platform" : "com.apple.platform.appletvsimulator", "modelCode" : "AppleTV6,2", "identifier" : "84327A21-F7C1-4A79-9929-4E4891F1B6AE", "architecture" : "x86_64", "modelName" : "Apple TV 4K (at 1080p)", "name" : "Apple TV 4K (at 1080p)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,5", "identifier" : "2CFF0523-029C-42F7-B325-C429B39640FE", "architecture" : "x86_64", "modelName" : "iPhone 8 Plus", "name" : "iPhone 8 Plus" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,3", "identifier" : "2D3D135C-1E25-4A6A-9F13-4534A9121A68", "architecture" : "x86_64", "modelName" : "iPhone 11 Pro", "name" : "iPhone 11 Pro" }, { "simulator" : true, "operatingSystemVersion" : "6.1.1 (17S445)", "available" : true, "platform" : "com.apple.platform.watchsimulator", "modelCode" : "Watch5,4", "identifier" : "255D1578-EE1C-45AF-B645-ED691A4253B4", "architecture" : "i386", "modelName" : "Apple Watch Series 5 - 44mm", "name" : "Apple Watch Series 5 - 44mm" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17K446)", "available" : true, "platform" : "com.apple.platform.appletvsimulator", "modelCode" : "AppleTV5,3", "identifier" : "6EBFD228-3926-42FD-B0E0-1B073928AE0B", "architecture" : "x86_64", "modelName" : "Apple TV", "name" : "Apple TV" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,4", "identifier" : "5C373FE9-C6FD-47A9-A533-2A41E2BF4C33", "architecture" : "x86_64", "modelName" : "iPad Pro (9.7-inch)", "name" : "iPad Pro (9.7-inch)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17K446)", "available" : true, "platform" : "com.apple.platform.appletvsimulator", "modelCode" : "AppleTV6,2", "identifier" : "828C730F-E5B2-4886-B3E4-FC250CA65561", "architecture" : "x86_64", "modelName" : "Apple TV 4K", "name" : "Apple TV 4K" } ] [ +9 ms] /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell getprop [ +125 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +69 ms] Running "flutter pub get" in tabsbug... [ +6 ms] executing: [/Users/jimmyff/Development/tabsbug/] /Users/jimmyff/flutter-sdk/bin/cache/dart-sdk/bin/pub --verbose get --no-precompile [ +80 ms] FINE: Pub 2.8.0-dev.10.0.flutter-73f6d15665 [ +104 ms] MSG : Resolving dependencies... [ +12 ms] SLVR: fact: tabsbug is 1.0.0+1 [ +10 ms] SLVR: derived: tabsbug [ +29 ms] SLVR: fact: tabsbug depends on flutter any from sdk [ ] SLVR: fact: tabsbug depends on cupertino_icons ^0.1.3 [ ] SLVR: fact: tabsbug depends on flutter_test any from sdk [ +1 ms] SLVR: selecting tabsbug [ ] SLVR: derived: flutter_test any from sdk [ ] SLVR: derived: cupertino_icons ^0.1.3 [ ] SLVR: derived: flutter any from sdk [ +16 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on flutter any from sdk [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on test_api 0.2.14 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on path 1.6.4 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on image 2.1.4 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on quiver 2.0.5 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on stack_trace 1.9.3 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on vector_math 2.0.8 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on archive 2.0.11 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on args 1.5.2 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on async 2.4.0 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on boolean_selector 1.0.5 [ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on charcode 1.1.2 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on collection 1.14.11 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on convert 2.1.1 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on crypto 2.1.3 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on matcher 0.12.6 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on meta 1.1.8 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on petitparser 2.4.0 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on source_span 1.5.5 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on stream_channel 2.0.0 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on string_scanner 1.0.5 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on term_glyph 1.1.0 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on typed_data 1.1.6 [ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on xml 3.5.0 [ ] SLVR: selecting flutter_test 0.0.0 from sdk [ ] SLVR: derived: xml 3.5.0 [ ] SLVR: derived: typed_data 1.1.6 [ ] SLVR: derived: term_glyph 1.1.0 [ ] SLVR: derived: string_scanner 1.0.5 [ ] SLVR: derived: stream_channel 2.0.0 [ ] SLVR: derived: source_span 1.5.5 [ ] SLVR: derived: petitparser 2.4.0 [ ] SLVR: derived: meta 1.1.8 [ ] SLVR: derived: matcher 0.12.6 [ ] SLVR: derived: crypto 2.1.3 [ +6 ms] SLVR: derived: convert 2.1.1 [ ] SLVR: derived: collection 1.14.11 [ ] SLVR: derived: charcode 1.1.2 [ ] SLVR: derived: boolean_selector 1.0.5 [ ] SLVR: derived: async 2.4.0 [ ] SLVR: derived: args 1.5.2 [ ] SLVR: derived: archive 2.0.11 [ ] SLVR: derived: vector_math 2.0.8 [ ] SLVR: derived: stack_trace 1.9.3 [ ] SLVR: derived: quiver 2.0.5 [ ] SLVR: derived: image 2.1.4 [ ] SLVR: derived: path 1.6.4 [ ] SLVR: derived: test_api 0.2.14 [ +12 ms] SLVR: selecting cupertino_icons 0.1.3 [ +10 ms] SLVR: fact: flutter 0.0.0 from sdk depends on collection 1.14.11 [ ] SLVR: fact: flutter 0.0.0 from sdk depends on meta 1.1.8 [ ] SLVR: fact: flutter 0.0.0 from sdk depends on typed_data 1.1.6 [ ] SLVR: fact: flutter 0.0.0 from sdk depends on vector_math 2.0.8 [ ] SLVR: fact: flutter 0.0.0 from sdk depends on sky_engine any from sdk [ ] SLVR: selecting flutter 0.0.0 from sdk [ ] SLVR: derived: sky_engine any from sdk [ +5 ms] SLVR: fact: xml 3.5.0 depends on petitparser ^2.3.0 [ ] SLVR: fact: xml 3.5.0 depends on collection ^1.14.0 [ ] SLVR: fact: xml 3.5.0 depends on convert ^2.1.0 [ ] SLVR: selecting xml 3.5.0 [ +6 ms] SLVR: selecting typed_data 1.1.6 [ +6 ms] SLVR: selecting term_glyph 1.1.0 [ +7 ms] SLVR: fact: string_scanner 1.0.5 depends on charcode ^1.1.0 [ ] SLVR: fact: string_scanner 1.0.5 depends on meta ^1.1.0 [ ] SLVR: fact: string_scanner 1.0.5 depends on source_span ^1.4.0 [ ] SLVR: selecting string_scanner 1.0.5 [ +5 ms] SLVR: fact: stream_channel 2.0.0 depends on async >=1.11.0 <3.0.0 [ ] SLVR: selecting stream_channel 2.0.0 [ +6 ms] SLVR: fact: source_span 1.5.5 depends on charcode ^1.0.0 [ ] SLVR: fact: source_span 1.5.5 depends on path ^1.2.0 [ ] SLVR: fact: source_span 1.5.5 depends on term_glyph ^1.0.0 [ ] SLVR: selecting source_span 1.5.5 [ +4 ms] SLVR: fact: petitparser 2.4.0 depends on meta ^1.1.0 [ ] SLVR: selecting petitparser 2.4.0 [ +7 ms] SLVR: selecting meta 1.1.8 [ +6 ms] SLVR: fact: matcher 0.12.6 depends on stack_trace ^1.2.0 [ ] SLVR: selecting matcher 0.12.6 [ +4 ms] SLVR: fact: crypto 2.1.3 depends on collection ^1.0.0 [ ] SLVR: fact: crypto 2.1.3 depends on convert >=1.0.0 <3.0.0 [ ] SLVR: fact: crypto 2.1.3 depends on typed_data ^1.0.0 [ ] SLVR: selecting crypto 2.1.3 [ +5 ms] SLVR: fact: convert 2.1.1 depends on charcode ^1.1.0 [ ] SLVR: fact: convert 2.1.1 depends on typed_data ^1.1.0 [ ] SLVR: selecting convert 2.1.1 [ +4 ms] SLVR: selecting collection 1.14.11 [ +3 ms] SLVR: selecting charcode 1.1.2 [ +4 ms] SLVR: fact: boolean_selector 1.0.5 depends on source_span ^1.0.0 [ ] SLVR: fact: boolean_selector 1.0.5 depends on string_scanner >=0.1.1 <2.0.0 [ ] SLVR: selecting boolean_selector 1.0.5 [ +3 ms] SLVR: fact: async 2.4.0 depends on collection ^1.5.0 [ ] SLVR: selecting async 2.4.0 [ +3 ms] SLVR: selecting args 1.5.2 [ +5 ms] SLVR: fact: archive 2.0.11 depends on crypto ^2.0.0 [ ] SLVR: fact: archive 2.0.11 depends on args ^1.4.0 [ ] SLVR: fact: archive 2.0.11 depends on path ^1.5.1 [ ] SLVR: selecting archive 2.0.11 [ +3 ms] SLVR: selecting vector_math 2.0.8 [ +3 ms] SLVR: fact: stack_trace 1.9.3 depends on path ^1.2.0 [ ] SLVR: selecting stack_trace 1.9.3 [ +7 ms] SLVR: fact: quiver 2.0.5 depends on matcher >=0.10.0 <0.13.0 [ ] SLVR: fact: quiver 2.0.5 depends on meta ^1.0.0 [ ] SLVR: selecting quiver 2.0.5 [ +2 ms] SLVR: fact: image 2.1.4 depends on archive >=1.0.16 <3.0.0 [ ] SLVR: fact: image 2.1.4 depends on xml ^3.2.5 [ ] SLVR: selecting image 2.1.4 [ +2 ms] SLVR: selecting path 1.6.4 [ +5 ms] SLVR: fact: test_api 0.2.14 depends on async ^2.0.0 [ ] SLVR: fact: test_api 0.2.14 depends on boolean_selector >=1.0.0 <3.0.0 [ ] SLVR: fact: test_api 0.2.14 depends on collection ^1.8.0 [ ] SLVR: fact: test_api 0.2.14 depends on meta ^1.1.5 [ ] SLVR: fact: test_api 0.2.14 depends on path ^1.2.0 [ ] SLVR: fact: test_api 0.2.14 depends on source_span ^1.4.0 [ ] SLVR: fact: test_api 0.2.14 depends on stack_trace ^1.9.0 [ ] SLVR: fact: test_api 0.2.14 depends on stream_channel >=1.7.0 <3.0.0 [ ] SLVR: fact: test_api 0.2.14 depends on string_scanner ^1.0.0 [ ] SLVR: fact: test_api 0.2.14 depends on term_glyph ^1.0.0 [ ] SLVR: fact: test_api 0.2.14 depends on matcher >=0.12.6 <0.12.7 [ ] SLVR: selecting test_api 0.2.14 [ +1 ms] SLVR: selecting sky_engine 0.0.99 from sdk [ +9 ms] SLVR: Version solving took 0:00:00.251961 seconds. [ ] | Tried 1 solutions. [ +1 ms] FINE: Resolving dependencies finished (0.261s). [ +67 ms] IO : Writing 4183 characters to text file ./pubspec.lock. [ ] FINE: Contents: [ ] | # Generated by pub [ ] | # See https://dart.dev/tools/pub/glossary#lockfile [ ] | packages: [ ] | archive: [ ] | dependency: transitive [ ] | description: [ ] | name: archive [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.0.11" [ ] | args: [ ] | dependency: transitive [ ] | description: [ ] | name: args [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.5.2" [ ] | async: [ ] | dependency: transitive [ ] | description: [ ] | name: async [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.4.0" [ ] | boolean_selector: [ ] | dependency: transitive [ ] | description: [ +5 ms] | name: boolean_selector [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.0.5" [ ] | charcode: [ ] | dependency: transitive [ ] | description: [ ] | name: charcode [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.1.2" [ ] | collection: [ ] | dependency: transitive [ ] | description: [ ] | name: collection [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.14.11" [ ] | convert: [ ] | dependency: transitive [ ] | description: [ ] | name: convert [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.1.1" [ ] | crypto: [ ] | dependency: transitive [ ] | description: [ ] | name: crypto [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.1.3" [ ] | cupertino_icons: [ ] | dependency: "direct main" [ ] | description: [ ] | name: cupertino_icons [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "0.1.3" [ ] | flutter: [ ] | dependency: "direct main" [ ] | description: flutter [ ] | source: sdk [ ] | version: "0.0.0" [ ] | flutter_test: [ ] | dependency: "direct dev" [ ] | description: flutter [ ] | source: sdk [ ] | version: "0.0.0" [ ] | image: [ ] | dependency: transitive [ ] | description: [ ] | name: image [ +3 ms] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.1.4" [ ] | matcher: [ ] | dependency: transitive [ ] | description: [ ] | name: matcher [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "0.12.6" [ ] | meta: [ ] | dependency: transitive [ ] | description: [ ] | name: meta [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.1.8" [ ] | path: [ ] | dependency: transitive [ ] | description: [ ] | name: path [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.6.4" [ ] | petitparser: [ ] | dependency: transitive [ ] | description: [ ] | name: petitparser [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.4.0" [ ] | quiver: [ ] | dependency: transitive [ ] | description: [ ] | name: quiver [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.0.5" [ ] | sky_engine: [ ] | dependency: transitive [ ] | description: flutter [ ] | source: sdk [ ] | version: "0.0.99" [ ] | source_span: [ ] | dependency: transitive [ ] | description: [ ] | name: source_span [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.5.5" [ +5 ms] | stack_trace: [ ] | dependency: transitive [ ] | description: [ ] | name: stack_trace [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.9.3" [ ] | stream_channel: [ ] | dependency: transitive [ ] | description: [ ] | name: stream_channel [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.0.0" [ ] | string_scanner: [ ] | dependency: transitive [ ] | description: [ ] | name: string_scanner [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.0.5" [ ] | term_glyph: [ ] | dependency: transitive [ ] | description: [ ] | name: term_glyph [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.1.0" [ ] | test_api: [ ] | dependency: transitive [ ] | description: [ ] | name: test_api [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "0.2.14" [ ] | typed_data: [ ] | dependency: transitive [ ] | description: [ ] | name: typed_data [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "1.1.6" [ ] | vector_math: [ ] | dependency: transitive [ ] | description: [ ] | name: vector_math [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "2.0.8" [ ] | xml: [ ] | dependency: transitive [ ] | description: [ ] | name: xml [ ] | url: "https://pub.dartlang.org" [ ] | source: hosted [ ] | version: "3.5.0" [ ] | sdks: [ ] | dart: ">=2.6.0 <3.0.0" [ +1 ms] IO : Writing 2375 characters to text file ./.packages. [ ] FINE: Contents: [ ] | # Generated by pub on 2020-03-02 17:01:14.865506. [ ] | archive:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11/lib/ [ ] | args:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/args-1.5.2/lib/ [ ] | async:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/async-2.4.0/lib/ [ ] | boolean_selector:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.5/lib/ [ ] | charcode:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/ [ +3 ms] | collection:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/ [ ] | convert:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/ [ ] | crypto:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.3/lib/ [ ] | cupertino_icons:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3/lib/ [ ] | flutter:file:///Users/jimmyff/flutter-sdk/packages/flutter/lib/ [ ] | flutter_test:file:///Users/jimmyff/flutter-sdk/packages/flutter_test/lib/ [ ] | image:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/ [ ] | matcher:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6/lib/ [ ] | meta:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/ [ ] | path:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/path-1.6.4/lib/ [ ] | petitparser:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0/lib/ [ ] | quiver:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.5/lib/ [ ] | sky_engine:file:///Users/jimmyff/flutter-sdk/bin/cache/pkg/sky_engine/lib/ [ ] | source_span:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5/lib/ [ ] | stack_trace:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/ [ ] | stream_channel:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/ [ ] | string_scanner:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/ [ ] | term_glyph:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/ [ ] | test_api:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.14/lib/ [ ] | typed_data:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/ [ ] | vector_math:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/ [ ] | xml:file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/xml-3.5.0/lib/ [ ] | tabsbug:lib/ [ ] IO : Writing 5417 characters to text file ./.dart_tool/package_config.json. [ ] FINE: Contents: [ ] | { [ ] | "configVersion": 2, [ ] | "packages": [ [ ] | { [ ] | "name": "archive", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11", [ +6 ms] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "args", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/args-1.5.2", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "async", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/async-2.4.0", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "boolean_selector", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.5", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "charcode", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.0" [ ] | }, [ ] | { [ ] | "name": "collection", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "convert", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.17" [ ] | }, [ ] | { [ ] | "name": "crypto", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.3", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.1" [ ] | }, [ ] | { [ ] | "name": "cupertino_icons", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "flutter", [ ] | "rootUri": "file:///Users/jimmyff/flutter-sdk/packages/flutter", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.2" [ ] | }, [ ] | { [ ] | "name": "flutter_test", [ ] | "rootUri": "file:///Users/jimmyff/flutter-sdk/packages/flutter_test", [ +2 ms] | "packageUri": "lib/", [ ] | "languageVersion": "2.2" [ ] | }, [ ] | { [ ] | "name": "image", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/image-2.1.4", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "matcher", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.2" [ ] | }, [ ] | { [ ] | "name": "meta", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.12" [ ] | }, [ ] | { [ ] | "name": "path", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/path-1.6.4", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "petitparser", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.4" [ ] | }, [ ] | { [ ] | "name": "quiver", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.5", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "sky_engine", [ ] | "rootUri": "file:///Users/jimmyff/flutter-sdk/bin/cache/pkg/sky_engine", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.11" [ ] | }, [ ] | { [ ] | "name": "source_span", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.8" [ ] | }, [ ] | { [ ] | "name": "stack_trace", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.23" [ ] | }, [ ] | { [ ] | "name": "stream_channel", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "string_scanner", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "term_glyph", [ +2 ms] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "1.8" [ ] | }, [ ] | { [ ] | "name": "test_api", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.14", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.4" [ ] | }, [ ] | { [ ] | "name": "typed_data", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "vector_math", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.0" [ ] | }, [ ] | { [ ] | "name": "xml", [ ] | "rootUri": "file:///Users/jimmyff/.pub-cache/hosted/pub.dartlang.org/xml-3.5.0", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.3" [ ] | }, [ ] | { [ ] | "name": "tabsbug", [ ] | "rootUri": "../", [ ] | "packageUri": "lib/", [ ] | "languageVersion": "2.6" [ ] | } [ ] | ], [ ] | "generated": "2020-03-02T17:01:14.893873Z", [ ] | "generator": "pub", [ ] | "generatorVersion": "2.8.0-dev.10.0.flutter-73f6d15665" [ ] | } [ +1 ms] MSG : Got dependencies! [ +26 ms] Running "flutter pub get" in tabsbug... (completed in 0.6s) [ +175 ms] Generating /Users/jimmyff/Development/tabsbug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +32 ms] ro.hardware = blueline [ ] ro.build.characteristics = nosdcard [ +44 ms] Launching lib/main.dart on Pixel 3 in debug mode... [ +12 ms] /Users/jimmyff/flutter-sdk/bin/cache/dart-sdk/bin/dart /Users/jimmyff/flutter-sdk/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/jimmyff/flutter-sdk/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill /var/folders/21/74vwjrfx6vj2cssbf04rgk4h0000gn/T/flutter_tool.O8Ebrq/app.dill --packages /Users/jimmyff/Development/tabsbug/.packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root [ +24 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell -x logcat -v time -t 1 [ +109 ms] Exit code 0 from: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell -x logcat -v time -t 1 [ ] --------- beginning of main 03-02 17:01:14.450 W/WearableService(23611): onGetService: Wear is not available on this device. [ +8 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb version [ +1 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 logcat -v time -T 03-02 17:01:14.450 [ +9 ms] <- compile package:tabsbug/main.dart [ +24 ms] Android Debug Bridge version 1.0.41 Version 29.0.4-5871666 Installed as /Users/jimmyff/Library/Android/sdk/platform-tools/adb [ +3 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb start-server [ +14 ms] Building APK [ +29 ms] Running Gradle task 'assembleDebug'... [ +2 ms] gradle.properties already sets `android.enableR8` [ +3 ms] Using gradle from /Users/jimmyff/Development/tabsbug/android/gradlew. [ ] /Users/jimmyff/Development/tabsbug/android/gradlew mode: 33261 rwxr-xr-x. [ +473 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Development/Android Studio.app/Contents/Info.plist [ +14 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Development/Android Studio.app/Contents/Info.plist [ ] {"CFBundleName":"Android Studio","JVMOptions":{"MainClass":"com.intellij.idea.Main","ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE \/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","Properties":{"idea.home.path":"$APP_PAC KAGE\/Contents","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.paths.selector":"AndroidStudio3.5"},"WorkingDirectory":"$APP_PACKAGE\/Contents\/bin"},"LSArchitecturePriority":["x86_64"] ,"CFBundleVersion":"AI-191.8026.42.35.5900203","CFBundleDevelopmentRegion":"English","CFBundleDocumentTypes":[{"CFBundleTypeExtensions":["ipr"],"CFBundleTypeName":"Android Studio Project File","CFBundleTypeIconFile":"studio.icns","CFBundleTypeRole":"Editor"},{"CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"LSTypeIsPackage":false,"CFBundleTypeName":"All documents","CFBundleTypeRole":"Editor"}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"3 .5","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"],"CFBundleTypeRole":"E ditor"}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","CFBundleGetInfoString":"A ndroid Studio 3.5, build AI-191.8026.42.35.5900203. Copyright JetBrains s.r.o., (c) 2000-2019"} [ +8 ms] executing: /Applications/Development/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +117 ms] Exit code 0 from: /Applications/Development/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ ] openjdk version "1.8.0_202-release" OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode) [ +1 ms] executing: [/Users/jimmyff/Development/tabsbug/android/] /Users/jimmyff/Development/tabsbug/android/gradlew -Pverbose=true -Ptarget=/Users/jimmyff/Development/tabsbug/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64 assembleDebug [+5560 ms] > Task :app:compileFlutterBuildDebug [ +1 ms] [ +52 ms] executing: [/Users/jimmyff/flutter-sdk/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +62 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ ] 2078cc4d5f3d380c63bcc4e2369534613aebf9ee [ ] [ ] executing: [/Users/jimmyff/flutter-sdk/] git describe --match v*.*.* --first-parent --long --tags [ ] [ +43 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] [ ] v1.15.3-155-g2078cc4 [ +81 ms] [ +15 ms] executing: [/Users/jimmyff/flutter-sdk/] git rev-parse --abbrev-ref --symbolic @{u} [ ] [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/master [ ] [ ] executing: [/Users/jimmyff/flutter-sdk/] git ls-remote --get-url origin [ ] [ +11 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ +100 ms] [ +138 ms] executing: [/Users/jimmyff/flutter-sdk/] git rev-parse --abbrev-ref HEAD [ ] [ +15 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ +1 ms] master [ +95 ms] [ +67 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] [ +8 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] [ +24 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ +95 ms] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] [ +22 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] [ +2 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] [ +2 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +9 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ +283 ms] [ +299 ms] Initializing file store [ ] [ +11 ms] Done initializing file store [+3199 ms] [+3230 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged} [ ] [ +32 ms] /Users/jimmyff/flutter-sdk/bin/cache/dart-sdk/bin/dart /Users/jimmyff/flutter-sdk/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/jimmyff/flutter-sdk/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --no-link-platform --packages /Users/jimmyff/Development/tabsbug/.packages --output-dill /Users/jimmyff/Development/tabsbug/.dart_tool/flutter_build/b7ac71c243dd459d3d31115650e2d0d7/app.dill --depfile /Users/jimmyff/Development/tabsbug/.dart_tool/flutter_build/b7ac71c243dd459d3d31115650e2d0d7/kernel_snapshot.d package:tabsbug/main.dart [+11999 ms] [+11923 ms] kernel_snapshot: Complete [ +499 ms] [ +539 ms] debug_android_application: Starting due to {} [ +400 ms] [ +334 ms] debug_android_application: Complete [ +799 ms] [ +893 ms] Persisting file store [ +100 ms] [ +20 ms] Done persisting file store [ ] [ +6 ms] build succeeded. [ ] [ +19 ms] "flutter assemble" took 17,470ms. [ +301 ms] > Task :app:packLibsflutterBuildDebug [ ] > Task :app:preBuild UP-TO-DATE [ ] > Task :app:preDebugBuild UP-TO-DATE [ ] > Task :app:compileDebugAidl NO-SOURCE [ ] > Task :app:checkDebugManifest [ ] > Task :app:compileDebugRenderscript NO-SOURCE [ ] > Task :app:generateDebugBuildConfig [ ] > Task :app:cleanMergeDebugAssets UP-TO-DATE [ +91 ms] > Task :app:mergeDebugShaders [ ] > Task :app:compileDebugShaders [ ] > Task :app:generateDebugAssets [ ] > Task :app:mergeDebugAssets [ +703 ms] > Task :app:copyFlutterAssetsDebug [ ] > Task :app:mainApkListPersistenceDebug [ ] > Task :app:generateDebugResValues [ ] > Task :app:generateDebugResources [ +999 ms] > Task :app:mergeDebugResources [ ] > Task :app:createDebugCompatibleScreenManifests [ +195 ms] > Task :app:processDebugManifest [ +504 ms] > Task :app:processDebugResources [+11699 ms] > Task :app:compileDebugKotlin [ ] > Task :app:processDebugJavaRes NO-SOURCE [ ] > Task :app:checkDebugDuplicateClasses [ ] > Task :app:javaPreCompileDebug [+1901 ms] > Task :app:compileDebugJavaWithJavac [ ] > Task :app:compileDebugSources [+1897 ms] > Task :app:transformClassesWithDexBuilderForDebug [ +95 ms] > Task :app:validateSigningDebug [ ] > Task :app:signingConfigWriterDebug [ ] > Task :app:desugarDebugFileDependencies [ +103 ms] > Task :app:mergeDebugJniLibFolders [ +897 ms] > Task :app:mergeDebugJavaResource [+1803 ms] > Task :app:mergeExtDexDebug [+1199 ms] > Task :app:mergeDexDebug [+1096 ms] > Task :app:mergeDebugNativeLibs [ ] Unable to strip library '/Users/jimmyff/Development/tabsbug/build/app/intermediates/merged_native_libs/debug/out/lib/x86/libflutter.so' due to missing strip tool for ABI 'X86'. Packaging it as is. [ +902 ms] > Task :app:stripDebugDebugSymbols [ ] Compatible side by side NDK version was not found. [ ] Unable to strip library '/Users/jimmyff/Development/tabsbug/build/app/intermediates/merged_native_libs/debug/out/lib/arm64-v8a/libflutter.so' due to missing strip tool for ABI 'ARM64_V8A'. Packaging it as is. [ ] Unable to strip library '/Users/jimmyff/Development/tabsbug/build/app/intermediates/merged_native_libs/debug/out/lib/x86_64/libflutter.so' due to missing strip tool for ABI 'X86_64'. Packaging it as is. [+7793 ms] > Task :app:packageDebug [ ] > Task :app:assembleDebug [ ] BUILD SUCCESSFUL in 55s [ ] 30 actionable tasks: 29 executed, 1 up-to-date [ +378 ms] Running Gradle task 'assembleDebug'... (completed in 56.4s) [ +170 ms] calculateSha: LocalDirectory: '/Users/jimmyff/Development/tabsbug/build/app/outputs/apk'/app.apk [ +85 ms] calculateSha: reading file took 83us [+1301 ms] calculateSha: computing sha took 1300us [ +12 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk. [ +20 ms] executing: /Users/jimmyff/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/jimmyff/Development/tabsbug/build/app/outputs/apk/app.apk AndroidManifest.xml [ +84 ms] Exit code 0 from: /Users/jimmyff/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/jimmyff/Development/tabsbug/build/app/outputs/apk/app.apk AndroidManifest.xml [ +1 ms] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.example.tabsbug" (Raw: "com.example.tabsbug") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: application (line=22) A: android:label(0x01010001)="tabsbug" (Raw: "tabsbug") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=28) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.tabsbug.MainActivity" (Raw: "com.example.tabsbug.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=42) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=52) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040000 E: intent-filter (line=56) E: action (line=57) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=59) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=66) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 [ +15 ms] Stopping app 'app.apk' on Pixel 3. [ +1 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell am force-stop com.example.tabsbug [ +157 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell pm list packages com.example.tabsbug [ +105 ms] Installing APK. [ +4 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb version [ +15 ms] Android Debug Bridge version 1.0.41 Version 29.0.4-5871666 Installed as /Users/jimmyff/Library/Android/sdk/platform-tools/adb [ +1 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb start-server [ +12 ms] Installing build/app/outputs/apk/app.apk... [ ] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 install -t -r /Users/jimmyff/Development/tabsbug/build/app/outputs/apk/app.apk [+4992 ms] Performing Streamed Install Success [ ] Installing build/app/outputs/apk/app.apk... (completed in 5.0s) [ +1 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell echo -n ac8819b0187dbda19dbf642625da0e73f9c4c4b5 > /data/local/tmp/sky.com.example.tabsbug.sha1 [ +66 ms] Pixel 3 startApp [ +3 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.tabsbug/com.example.tabsbug.MainActivity [ +199 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.tabsbug/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [+1014 ms] Observatory URL on device: http://127.0.0.1:41975/_YQ78Km-uHE=/ [ +2 ms] executing: /Users/jimmyff/Library/Android/sdk/platform-tools/adb -s 8B5X140C0 forward tcp:0 tcp:41975 [ +15 ms] 57335 [ ] Forwarded host port 57335 to device port 41975 for Observatory [ +23 ms] Connecting to service protocol: http://127.0.0.1:57335/_YQ78Km-uHE=/ [ +252 ms] Successfully connected to service protocol: http://127.0.0.1:57335/_YQ78Km-uHE=/ [ +6 ms] Sending to VM service: getVM({}) [ +9 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM845, operatingSystem: android, targetCPU: arm64, version: 2.8.0-dev.10.0.flutter-73f6d15665 (Mon Feb 24 21:04:18 2020 +0000) on "android_arm64", _profilerMode: VM, _... [ +11 ms] Sending to VM service: getIsolate({isolateId: isolates/3868385926091943}) [ +7 ms] Sending to VM service: _flutter.listViews({}) [ +8 ms] Result: {type: Isolate, id: isolates/3868385926091943, name: main, number: 3868385926091943, _originNumber: 3868385926091943, startTime: 1583168540834, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis... [ +9 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x77cb723620, isolate: {type: @Isolate, fixedId: true, id: isolates/3868385926091943, name: main.dart$main-3868385926091943, number: 3868385926091943}}]} [ +13 ms] DevFS: Creating new filesystem on the device (null) [ +2 ms] Sending to VM service: _createDevFS({fsName: tabsbug}) [ +10 ms] W/example.tabsbu(20164): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (greylist, reflection, allowed) [ ] W/example.tabsbu(20164): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (greylist, reflection, allowed) [ ] W/example.tabsbu(20164): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (greylist, reflection, allowed) [ ] W/example.tabsbu(20164): Accessing hidden method Landroid/util/LongArray;->get(I)J (greylist, reflection, allowed) [ +21 ms] Result: {type: FileSystem, name: tabsbug, uri: file:///data/user/0/com.example.tabsbug/code_cache/tabsbugLYQOFR/tabsbug/} [ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.tabsbug/code_cache/tabsbugLYQOFR/tabsbug/) [ +3 ms] Updating assets [ +181 ms] Syncing files to device Pixel 3... [ +3 ms] Scanning asset files [ +4 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +2 ms] <- recompile package:tabsbug/main.dart 466199a3-2dc4-41c4-bc00-b5bd250793be [ ] <- 466199a3-2dc4-41c4-bc00-b5bd250793be [ +116 ms] W/Gralloc3(20164): mapper 3.x is not supported [ +10 ms] W/RenderThread(20164): type=1400 audit(0.0:73214): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=24004 scontext=u:r:untrusted_app_27:s0:c15,c257,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0 [ +1 ms] E/libc (20164): Access denied finding property "vendor.gralloc.disable_ahardware_buffer" [ +419 ms] Updating files [ +135 ms] DevFS: Sync finished [ +32 ms] Syncing files to device Pixel 3... (completed in 697ms) [ +8 ms] Synced 0.9MB. [ +3 ms] Sending to VM service: _flutter.listViews({}) [ +4 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x77cb723620, isolate: {type: @Isolate, fixedId: true, id: isolates/3868385926091943, name: main.dart$main-3868385926091943, number: 3868385926091943}}]} [ +2 ms] <- accept [ +1 ms] Connected to _flutterView/0x77cb723620. [ +2 ms] Flutter run key commands. [ +3 ms] r Hot reload. 🔥🔥🔥 [ +2 ms] R Hot restart. [ ] h Repeat this help message. [ ] d Detach (terminate "flutter run" but leave application running). [ ] c Clear the screen [ ] q Quit (terminate the application on the device). [ ] An Observatory debugger and profiler on Pixel 3 is available at: http://127.0.0.1:57335/_YQ78Km-uHE=/ [+5707 ms] I/flutter (20164): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ [ ] I/flutter (20164): The following assertion was thrown building Builder(dirty): [ ] I/flutter (20164): 'package:flutter/src/widgets/nested_scroll_view.dart': Failed assertion: line 590 pos 14: [ ] I/flutter (20164): 'position.minScrollExtent != null && position.pixels != null': is not true. [ ] I/flutter (20164): [ ] I/flutter (20164): Either the assertion indicates an error in the framework itself, or we should provide substantially [ ] I/flutter (20164): more information in this error message to help you determine and fix the underlying cause. [ ] I/flutter (20164): In either case, please report this assertion by filing a bug on GitHub: [ ] I/flutter (20164): https://github.com/flutter/flutter/issues/new?template=BUG.md [ ] I/flutter (20164): [ ] I/flutter (20164): The relevant error-causing widget was: [ ] I/flutter (20164): NestedScrollView file:///Users/jimmyff/Development/tabsbug/lib/main.dart:55:15 [ ] I/flutter (20164): [ ] I/flutter (20164): When the exception was thrown, this was the stack: [ ] I/flutter (20164): #2 _NestedScrollCoordinator.hasScrolledBody (package:flutter/src/widgets/nested_scroll_view.dart:590:14) [ ] I/flutter (20164): #3 NestedScrollViewState.build. (package:flutter/src/widgets/nested_scroll_view.dart:425:47) [ ] I/flutter (20164): #4 Builder.build (package:flutter/src/widgets/basic.dart:6995:41) [ ] I/flutter (20164): #5 StatelessElement.build (package:flutter/src/widgets/framework.dart:4547:28) [ ] I/flutter (20164): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4478:15) [ ] I/flutter (20164): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ +4 ms] I/flutter (20164): #8 StatelessElement.update (package:flutter/src/widgets/framework.dart:4554:5) [ ] I/flutter (20164): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #10 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #11 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #12 ProxyElement.update (package:flutter/src/widgets/framework.dart:4833:5) [ ] I/flutter (20164): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #14 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #15 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4646:11) [ ] I/flutter (20164): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #17 StatefulElement.update (package:flutter/src/widgets/framework.dart:4678:5) [ +8 ms] I/flutter (20164): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ +10 ms] I/flutter (20164): #19 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #20 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ +1 ms] I/flutter (20164): #21 StatelessElement.update (package:flutter/src/widgets/framework.dart:4554:5) [ ] I/flutter (20164): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ +18 ms] I/flutter (20164): #25 ProxyElement.update (package:flutter/src/widgets/framework.dart:4833:5) [ ] I/flutter (20164): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #29 ProxyElement.update (package:flutter/src/widgets/framework.dart:4833:5) [ ] I/flutter (20164): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ +4 ms] I/flutter (20164): #31 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5438:32) [ ] I/flutter (20164): #32 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5867:17) [ ] I/flutter (20164): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #34 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #35 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4646:11) [ ] I/flutter (20164): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #37 StatefulElement.update (package:flutter/src/widgets/framework.dart:4678:5) [ ] I/flutter (20164): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ +5 ms] I/flutter (20164): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:4833:5) [ ] I/flutter (20164): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #44 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4646:11) [ ] I/flutter (20164): #45 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #46 StatefulElement.update (package:flutter/src/widgets/framework.dart:4678:5) [ ] I/flutter (20164): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5754:14) [ ] I/flutter (20164): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:4554:5) [ +1 ms] I/flutter (20164): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5754:14) [ ] I/flutter (20164): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #56 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #57 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4646:11) [ ] I/flutter (20164): #58 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #59 StatefulElement.update (package:flutter/src/widgets/framework.dart:4678:5) [ ] I/flutter (20164): #60 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #61 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ +3 ms] I/flutter (20164): #62 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4646:11) [ ] I/flutter (20164): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #64 StatefulElement.update (package:flutter/src/widgets/framework.dart:4678:5) [ ] I/flutter (20164): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #68 ProxyElement.update (package:flutter/src/widgets/framework.dart:4833:5) [ ] I/flutter (20164): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #72 ProxyElement.update (package:flutter/src/widgets/framework.dart:4833:5) [ ] I/flutter (20164): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4498:16) [ ] I/flutter (20164): #75 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4646:11) [ +1 ms] I/flutter (20164): #76 Element.rebuild (package:flutter/src/widgets/framework.dart:4202:5) [ ] I/flutter (20164): #77 StatefulElement.update (package:flutter/src/widgets/framework.dart:4678:5) [ ] I/flutter (20164): #78 Element.updateChild (package:flutter/src/widgets/framework.dart:3185:15) [ ] I/flutter (20164): #79 _LayoutBuilderElement._layout. (package:flutter/src/widgets/layout_builder.dart:116:18) [ ] I/flutter (20164): #80 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2591:19) [ ] I/flutter (20164): #81 _LayoutBuilderElement._layout (package:flutter/src/widgets/layout_builder.dart:96:11) [ ] I/flutter (20164): #82 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:1866:58) [ ] I/flutter (20164): #83 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:919:15) [ +11 ms] I/flutter (20164): #84 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1866:13) [ ] I/flutter (20164): #85 RenderConstrainedLayoutBuilder.layoutAndBuildChild (package:flutter/src/widgets/layout_builder.dart:174:5) [ ] I/flutter (20164): #86 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:241:5) [ ] I/flutter (20164): #87 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1628:7) [ ] I/flutter (20164): #88 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:888:18) [ ] I/flutter (20164): #89 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:401:19) [ ] I/flutter (20164): #90 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:13) [ ] I/flutter (20164): #91 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5) [ ] I/flutter (20164): #92 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1108:15) [ ] I/flutter (20164): #93 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1047:9) [ ] I/flutter (20164): #94 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:963:5) [ ] I/flutter (20164): #98 _invoke (dart:ui/hooks.dart:261:10) [ ] I/flutter (20164): #99 _drawFrame (dart:ui/hooks.dart:219:3) [ ] I/flutter (20164): (elided 5 frames from class _AssertionError and dart:async) [ ] I/flutter (20164): [ ] I/flutter (20164): ════════════════════════════════════════════════════════════════════════════════════════════════════ ```
TahaTesser commented 4 years ago

Hi @jimmyff

Can you please add key: UniqueKey(), to NestedScrollView in your sample code from the comment and run the app again and see if it fixes the issue for you? It fixes the issue for me

Thank you

jimmyff commented 4 years ago

@TahaTesser yes that fixed the issue - but why does this fix it? They UniqueKey isn't stored in the widget state so surely it would be recreated each build?

TahaTesser commented 4 years ago

Hi @jimmyff You can find a lot of information here and UniqueKey probably solves the position.minScrollExtent != null && position.pixels != null': is not true. assertion in your case.

Given the related issue is still open. I feel safe to close this issue if you disagree please write in the comments and I will reopen it Thank you

jimmyff commented 4 years ago

@TahaTesser using UnqiueKey seems to cause some strange side affects: for example on TabBarView swiping to the side tabs makes the scroll position jump back up to the top. Also if I change the parent scaffold it makes the scroll position jump back to the top.

It solves my initial problem but creates a few new problems, am I doing something wrong with the UniqueKey? I've tried storing in in state for the widget but this doesn't help.

darshankawar commented 3 years ago

@jimmyff I looked at your code sample and noticed that if we pass controller property to each CustomScrollView, then the red screen goes away and you are able to go back to tab 1 from tab 3 without any issues.

body: TabBarView(controller: _tabController, children: [
            CustomScrollView(
              controller: _scrollController,
              slivers: <Widget>[SliverToBoxAdapter(child: Container())],
            ),
            CustomScrollView(
              controller: _scrollController,
              slivers: <Widget>[SliverToBoxAdapter(child: Container())],
            ),
            CustomScrollView(
              controller: _scrollController,
              slivers: <Widget>[SliverToBoxAdapter(child: Container())],
            ),
          ]),

where _scrollController is defined as var _scrollController = ScrollController();.

https://user-images.githubusercontent.com/67046386/106142078-082c2980-6197-11eb-8ff9-014a3a5bf51c.mov

flutter doctor -v ``` [✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.4 19E2269 darwin-x64, locale en-IN) • Flutter version 1.22.6 at /Users/dhs/documents/Fluttersdk/flutter • Framework revision 9b2d32b605 (6 days ago), 2021-01-22 14:36:39 -0800 • Engine revision 2f0af37152 • Dart version 2.10.5 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0) • Android SDK at /Users/dhs/Library/Android/sdk • Platform android-30, build-tools 30.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 12.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.3, Build version 12C33 • CocoaPods version 1.9.3 [!] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.52.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.16.0 [✓] Connected device (2 available) • SM A260G (mobile) • 5200763ebcfa861f • android-arm • Android 8.1.0 (API 27) • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 1 category. [✓] Flutter (Channel master, 1.26.0-13.0.pre.229, on Mac OS X 10.15.4 19E2269 darwin-x64, locale en-IN) • Flutter version 1.26.0-13.0.pre.229 at /Users/dhs/documents/Fluttersdk/flutter • Framework revision 650b240634 (5 hours ago), 2021-01-27 21:39:06 -0800 • Engine revision 68cd4c42b5 • Dart version 2.12.0 (build 2.12.0-267.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0) • Android SDK at /Users/dhs/Library/Android/sdk • Platform android-30, build-tools 30.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.3, Build version 12C33 ! CocoaPods 1.9.3 out of date (1.10.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/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 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.52.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.16.0 [✓] Connected device (4 available) • SM A260G (mobile) • 5200763ebcfa861f • android-arm • Android 8.1.0 (API 27) • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) • macOS (desktop) • macos • darwin-x64 • Mac OS X 10.15.4 19E2269 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.96 ! Doctor found issues in 1 category. ```

Closing, as this is now working as expected. If you disagree, write in comments and I'll reopen it.

rashmisridar commented 3 years ago

@darshankawar Initially getting the red screen . Fixed the issue with help of your code. Now how to hide the silver app bar title and bottom navigation bar when tab bar view (list view ) content scroll up and down. Thanks.

TahaTesser commented 3 years ago

@rashmisridar This issue has been closed for a while Can you please file a new issue with all the details

rashmisridar commented 3 years ago

@TahaTesser Sure

github-actions[bot] commented 3 years ago

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.