- Request for clear steps to reproduce the issue.
- Add the label
waiting for customer response.
-
Please provide a step-by-step about how to reproduce this issue.
-
I was unable to reproduce the issue in the current stable channel (v1.17.3) with the following code:
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> with TickerProviderStateMixin {
final itemsLength = 10;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SafeArea(
child: DefaultTabController(
length: itemsLength,
child: Scaffold(
appBar: TabBar(
labelColor: Theme.of(context).accentColor,
unselectedLabelColor: Theme.of(context).hintColor,
indicatorSize: TabBarIndicatorSize.label,
indicator: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/618.png'),
fit: BoxFit.cover,
),
),
isScrollable: true,
tabs: List<Tab>.generate(itemsLength, (index) => Tab(text: "Item $index")).toList(),
),
),
),
),
);
}
}
Flutter Doctor:
C:\IdeaProjects\test>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.3, on Microsoft Windows [Version 10.0.18362.900], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[!] Android Studio (version 4.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[!] Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
X android-studio-dir = C:\Program
X Android Studio not found at C:\Program
[√] IntelliJ IDEA Community Edition (version 2019.3)
[√] VS Code (version 1.45.1)
[√] Connected device (1 available)
! Doctor found issues in 2 categories.
Make sure you add a image inside assets folder called 618.png.