Skip to content

DateRangePickerDialog does not inherit local InputDecorationTheme #177083

@bleroux

Description

@bleroux

Steps to reproduce

  1. Run the code sample
  2. Observe the input fields decorations

Expected results

Date range picker input fields decorations are filled:

Image

Actual results

Date range picker input fields decorations are 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: Scaffold(
        body: Center(
          child: InputDecorationTheme(
            filled: true,
            fillColor: Colors.yellow[200],
            child: DateRangePickerDialog(
              firstDate: DateTime(2021),
              lastDate: DateTime(2031, DateTime.december, 31),
              currentDate: DateTime.now(),
              initialEntryMode: DatePickerEntryMode.inputOnly,
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

No response

Logs

No response

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