Skip to content

Commit 81a74b6

Browse files
Enhance Tabs (#5496)
* improve how `ElevatedButton` handles style * initial commit * docs * update .pre-commit-config.yaml * update Taskfile.yml * updates * use a custom `TabController` | remove `initial_index` in favor of `selected_index` * examples * fix tests * make `get_event_field_type` protected * move `get_event_field_type` to module level * Tabs inherits from AdaptiveControl * revert: Tabs inherits from AdaptiveControl * `GestureDetector` example * Fix for FletPageDisconnectedException * conditional creation of ButtonStyle * fix tests --------- Co-authored-by: Feodor Fitsner <[email protected]>
1 parent 0e74019 commit 81a74b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2021
-1136
lines changed

packages/flet/lib/src/controls/button.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ class _ButtonControlState extends State<ButtonControl> with FletStoreMixin {
8888

8989
var theme = Theme.of(context);
9090

91-
var style = widget.control.getButtonStyle("style", Theme.of(context),
91+
var style = parseButtonStyle(
92+
widget.control.internals?["style"], Theme.of(context),
9293
defaultForegroundColor: widget.control
9394
.getColor("color", context, theme.colorScheme.primary)!,
9495
defaultBackgroundColor: widget.control

0 commit comments

Comments
 (0)