Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow scrollPadding to be defined in InputDecorationTheme #103066

Open
MilesAdamson opened this issue May 4, 2022 · 1 comment
Open

Allow scrollPadding to be defined in InputDecorationTheme #103066

MilesAdamson opened this issue May 4, 2022 · 1 comment
Labels
a: text input Entering text in a text field or keyboard related problems c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. team-text-input Owned by Text Input team

Comments

@MilesAdamson
Copy link

Use case

I would like 40 padding on text field scrolling (opposed to the default 20) on every text field in my app.

Currently you must supply this to every text field individually.

          const TextField(
            scrollPadding: EdgeInsets.all(40),
          ),
          const TextField(
            scrollPadding: EdgeInsets.all(40),
            decoration: InputDecoration(
              labelText: "This is a label",
            ),
          ),
          const TextField(
            scrollPadding: EdgeInsets.all(40),
            decoration: InputDecoration(
              hintText: "This is a hint",
            ),
          ),
          const TextField(
            scrollPadding: EdgeInsets.all(40),
            decoration: InputDecoration(
              helperText: "This is helper text",
            ),
          ),

Proposal

InputDecorationTheme(
    contentPadding: const EdgeInsets.all(16.0),
    // add this just like contentPadding
    scrollPadding: const EdgeInsets.all(40.0),
  );
@MilesAdamson MilesAdamson changed the title Allow scrollPadding to be defined in Allow scrollPadding to be defined in InputDecorationTheme May 4, 2022
@danagbemava-nc danagbemava-nc added in triage Presently being triaged by the triage team a: text input Entering text in a text field or keyboard related problems c: new feature Nothing broken; request for a new capability framework flutter/packages/flutter repository. See also f: labels. c: proposal A detailed proposal for a change to Flutter and removed in triage Presently being triaged by the triage team labels May 5, 2022
@goderbauer goderbauer added the f: material design flutter/packages/flutter/material repository. label May 12, 2022
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-design Owned by Design Languages team triaged-design Triaged by Design Languages team labels Jul 8, 2023
@flutter-triage-bot
Copy link

This issue is missing a priority label. Please set a priority label when adding the triaged-design label.

@flutter-triage-bot flutter-triage-bot bot removed the triaged-design Triaged by Design Languages team label Apr 27, 2024
@Piinks Piinks added team-text-input Owned by Text Input team and removed team-design Owned by Design Languages team labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: text input Entering text in a text field or keyboard related problems c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. team-text-input Owned by Text Input team
Projects
None yet
Development

No branches or pull requests

5 participants