Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.7.2]
* Add padding as parameter to MacosTabView constructor.

## [1.7.1]
* Fixed an issue where end sidebar window breakpoints were not respected

Expand Down
8 changes: 7 additions & 1 deletion lib/src/layout/tab_view/tab_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class MacosTabView extends StatefulWidget {
required this.tabs,
required this.children,
this.position = MacosTabPosition.top,
this.padding = const EdgeInsets.all(12.0),
}) : assert(controller.length == children.length &&
controller.length == tabs.length);

Expand All @@ -60,6 +61,11 @@ class MacosTabView extends StatefulWidget {
/// The placement of the [tabs], typically [MacosTabPosition.top].
final MacosTabPosition position;

/// The padding of the tab view widget.
///
/// Defaults to `EdgeInsets.all(12.0)`.
final EdgeInsetsGeometry padding;

@override
State<MacosTabView> createState() => _MacosTabViewState();
}
Expand Down Expand Up @@ -153,7 +159,7 @@ class _MacosTabViewState extends State<MacosTabView> {
alignment: Alignment.center,
children: [
Padding(
padding: const EdgeInsets.all(12.0),
padding: widget.padding,
child: DecoratedBox(
decoration: BoxDecoration(
color: brightness.resolve(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: macos_ui
description: Flutter widgets and themes implementing the current macOS design language.
version: 1.7.1
version: 1.7.2
homepage: "https://macosui.dev"
repository: "https://github.com/GroovinChip/macos_ui"

Expand Down