Skip to content

Instantly share code, notes, and snippets.

@pedromassango
Last active June 10, 2020 14:00
Show Gist options
  • Select an option

  • Save pedromassango/0bf9018074f4adf1d5c61c3525055d85 to your computer and use it in GitHub Desktop.

Select an option

Save pedromassango/0bf9018074f4adf1d5c61c3525055d85 to your computer and use it in GitHub Desktop.

Steps to take

  1. Request for clear steps to reproduce the issue.
  2. Add the label waiting for customer response.

Possible comments for the issue

  1. Please provide a step-by-step about how to reproduce this issue.

  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment