-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from KabaDH/feature/disabled_state
Feature: enabled/disabled state
- Loading branch information
Showing
6 changed files
with
227 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
part of '../custom_dropdown.dart'; | ||
|
||
class CustomDropdownDisabledDecoration { | ||
/// [CustomDropdown] field color (disabled state). | ||
/// | ||
/// Default to Color(0xFFF3F3F3). | ||
final Color? fillColor; | ||
|
||
/// [CustomDropdown] box shadow (disabled state). | ||
final List<BoxShadow>? shadow; | ||
|
||
/// Suffix icon for disabled state of [CustomDropdown]. | ||
final Widget? suffixIcon; | ||
|
||
/// Prefix icon for disabled state of [CustomDropdown]. | ||
final Widget? prefixIcon; | ||
|
||
/// Border for disabled state of [CustomDropdown]. | ||
final BoxBorder? border; | ||
|
||
/// Border radius for disabled state of [CustomDropdown]. | ||
final BorderRadius? borderRadius; | ||
|
||
/// The style to use for the [CustomDropdown] header hint (disabled state). | ||
final TextStyle? hintStyle; | ||
|
||
/// The style to use for the [CustomDropdown] header text (disabled state). | ||
final TextStyle? headerStyle; | ||
|
||
const CustomDropdownDisabledDecoration({ | ||
this.fillColor, | ||
this.shadow, | ||
this.suffixIcon, | ||
this.prefixIcon, | ||
this.border, | ||
this.borderRadius, | ||
this.headerStyle, | ||
this.hintStyle, | ||
}); | ||
} |
Oops, something went wrong.