-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed flutter hooks, implemented Tappable
- Loading branch information
Showing
11 changed files
with
198 additions
and
154 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
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,38 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
/// Represents the theme data that is inherited by [FButtonStyle] and used by child [FButton] widgets. | ||
class FButtonTypeStyle { | ||
/// The background color. | ||
final Color background; | ||
|
||
/// The foreground color. | ||
final Color foreground; | ||
|
||
/// The primary color. | ||
final Color disabled; | ||
|
||
/// The border color. | ||
final Color border; | ||
|
||
/// Creates a [FButtonTypeStyle]. | ||
const FButtonTypeStyle({ | ||
required this.background, | ||
required this.foreground, | ||
required this.disabled, | ||
required this.border, | ||
}); | ||
|
||
/// Creates a copy of this [FButtonTypeStyle] with the given properties replaced. | ||
FButtonTypeStyle copyWith({ | ||
Color? background, | ||
Color? foreground, | ||
Color? disabled, | ||
Color? border, | ||
}) => | ||
FButtonTypeStyle( | ||
background: background ?? this.background, | ||
foreground: foreground ?? this.foreground, | ||
disabled: disabled ?? this.disabled, | ||
border: border ?? this.border, | ||
); | ||
} |
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
Oops, something went wrong.