-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'package:flutter/src/material/tabs.dart': Failed assertion: line 609 pos 15: 'indicator != null || (indicatorWeight != null && indicatorWeight > 0.0)': is not true. #47643
Comments
Hello @luhongwei123 ! Thank you for posting an issue. |
I created a gist with the sample you provided and could not reproduce the issue. Since |
Also, it might be the case that you might have accidentally put the
|
thinks😃
…---Original---
From: "Shi-Hao Hong"<notifications@github.com>
Date: Tue, Dec 24, 2019 04:32 AM
To: "flutter/flutter"<flutter@noreply.github.com>;
Cc: "Mention"<mention@noreply.github.com>;"luhongwei123"<374157417@qq.com>;
Subject: Re: [flutter/flutter] 'package:flutter/src/material/tabs.dart': Failed assertion: line 609 pos 15: 'indicator != null || (indicatorWeight != null && indicatorWeight > 0.0)': is not true. (#47643)
Also, it might be the case that you might have accidentally put the TabBar in AppBar.title. I would imagine that your widget would look more like:
Scaffold( appBar: AppBar( title: Text('Title of the AppBar'), bottom: TabBar( controller: controller, tabs: tabs, indicator: UnderlineTabIndicator( borderSide: BorderSide(width: 0.0, color: Colors.white), insets: EdgeInsets.zero, ), indicatorWeight: 0.01, indicatorSize: TabBarIndicatorSize.tab, indicatorPadding : EdgeInsets.zero, ), ), body: Center(child: Text('Hello World')), );
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Did you figure out the problem? If you did, we should close this issue :) |
I will close this issue for now since I assumed you have figured it out! Please feel free to reopen with more information if otherwise! |
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 |
Steps to Reproduce
flutter run
Target Platform: Linux
Target OS version/browser: Manjaro Linux 5.4.2-1
Devices: Android emulator
Logs
Flutter analyze & doctor
The text was updated successfully, but these errors were encountered: