Skip to content

Allow changing of leading width and automatically leading options in search bar delegate #136164

@VB10

Description

@VB10

Is there an existing issue for this?

Steps to reproduce

1- In any view, open the search bar delagate
2- Close the back button to only show the text field and action
3- Change the width of the leading

Expected results

Normally Appbar has two options, leading and width, and they can be changed from the client side.

Actual results

Client-side changes are not possible. It just changed AppBarTheme option, but I couldn't have these requirements.

Code sample

Code sample
@override
  ThemeData appBarTheme(BuildContext context) {
    return context.general.appTheme.copyWith(
      appBarTheme: const AppBarTheme(),
    );
  }

Screenshots or Video

AppBar is the current search bar

image

Logs

No response

Flutter Doctor output

Doctor output
[!] Flutter (Channel master, 3.16.0-6.0.pre.22, on macOS 13.4.1 22F770820d darwin-arm64, locale en-TR)
    ! Upstream repository https://github.com/VB10/flutter is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to https://github.com/VB10/flutter to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
[✓] VS Code (version 1.83.0)
[✓] Connected device (3 available)
[✓] Network resources

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: 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