Skip to content

[Material] ProgressIndicatorThemeData value strokeWidth does not work with CircularProgressIndicator.adaptive #165294

@dyno-nexsoft

Description

@dyno-nexsoft

Steps to reproduce

Run MaterialApp with ProgressIndicatorThemeData config

Expected results

strokeWidth: 10.0

Actual results

strokeWidth: 4.0

Code sample

Code sample
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorSchemeSeed: Colors.blue,
        progressIndicatorTheme: ProgressIndicatorThemeData(
          strokeWidth: 10.0,
          strokeCap: StrokeCap.round,
        ),
      ),
      home: const Scaffold(
        body: Center(
          child: CircularProgressIndicator.adaptive(),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Image

Logs

No response

Flutter Doctor output

[✓] Flutter (Channel stable, 3.29.2, on Ubuntu 20.04.6 LTS 6.8.0-1021-azure, locale C.UTF-8) [172ms]
    • Flutter version 3.29.2 on channel stable at /home/codespace/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (3 days ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Chrome - develop for the web [29ms]
    • CHROME_EXECUTABLE = /usr/bin/www-browser

[!] Flutter IDE Support (No supported IDEs installed) [17ms]
    • IntelliJ - https://www.jetbrains.com/idea/
    • Android Studio - https://developer.android.com/studio/
    • VS Code - https://code.visualstudio.com/

[✓] Connected device (1 available) [947ms]
    • Chrome (web) • chrome • web-javascript • Lynx Version 2.9.0dev.5 (27 Feb 2020)
      libwww-FM 2.14, SSL-MM 1.4.1, GNUTLS 3.6.13, ncurses 6.2.20200212(wide)
      Built on linux-gnu.

      Copyrights held by the Lynx Developers Group,
      the University of Kansas, CERN, and other contributors.
      Distributed under the GNU General Public License (Version 2).
      See https://lynx.invisible-island.net/ and the online help for more information.

[✓] Network resources [468ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: material designflutter/packages/flutter/material repository.found in release: 3.29Found to occur in 3.29found in release: 3.31Found to occur in 3.31frameworkflutter/packages/flutter repository. See also f: labels.good first issueRelatively approachable for first-time contributorshas reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions