Skip to content

Missing FloatingActionButtonTheme #179735

@bleroux

Description

@bleroux

Use case

Customize FloatingActionButton visual properties in a sub-tree through an InheritedTheme widget.
Similarly to what is possible for most widgets.

Proposal

Add FloatingActionButtonTheme.
This missing theme class was mentioned in flutter.dev/go/material-theme-system-updates:
"FloatingActionButtonThemeData is conformant but there’s no FloatingActionButtonTheme class. "

Sample usage:

  Widget build(BuildContext context) {
    return FloatingActionButtonTheme(
      data: const FloatingActionButtonThemeData(iconSize: 56),
      child: Scaffold(
        floatingActionButton: FloatingActionButton(child: const Icon(Icons.adb), onPressed: () {}),
      ),
    );
  }

Metadata

Metadata

Assignees

Labels

c: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.found in release: 3.38Found to occur in 3.38found in release: 3.40Found to occur in 3.40frameworkflutter/packages/flutter repository. See also f: labels.has 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 team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions