Skip to content

InputDatePickerFormField does not inherit local InputDecorationTheme #177088

@bleroux

Description

@bleroux

Steps to reproduce

  1. Run the code sample
  2. Observe the input field decoration

Expected results

Text field decoration is filled:

Image

Actual results

Text field decoration is not filled:

Image

Code sample

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Material(
        child: Center(
          child: SizedBox(
            width: 250,
            child: InputDecorationTheme(
              filled: true,
              fillColor: Colors.yellow[200],
              child: InputDatePickerFormField(
                firstDate: DateTime(2021),
                lastDate: DateTime(2031, DateTime.december, 31),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Logs

Flutter Doctor output

Doctor output
Flutter (Channel master, 3.37.0-1.0.pre-546, on Ubuntu 24.04.2 LTS 6.8.0-85-generic, locale fr_FR.UTF-8)

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.found in release: 3.37Found to occur in 3.37frameworkflutter/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