Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Jan 21, 2025
1 parent ac30c54 commit e68bb57
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export 'sidebar_navigation_item_style.dart';

part 'sidebar_navigation_item.describe.dart';

class ImpaktfullUiSidebarNavigationItem extends StatefulWidget with ComponentDescriptorMixin {
class ImpaktfullUiSidebarNavigationItem extends StatefulWidget
with ComponentDescriptorMixin {
final ImpaktfullUiAsset? leading;
final String title;
final List<Widget> items;
Expand All @@ -32,13 +33,15 @@ class ImpaktfullUiSidebarNavigationItem extends StatefulWidget with ComponentDes
});

@override
State<ImpaktfullUiSidebarNavigationItem> createState() => _ImpaktfullUiSidebarNavigationItemState();
State<ImpaktfullUiSidebarNavigationItem> createState() =>
_ImpaktfullUiSidebarNavigationItemState();

@override
String describe(BuildContext context) => _describeInstance(context, this);
}

class _ImpaktfullUiSidebarNavigationItemState extends State<ImpaktfullUiSidebarNavigationItem>
class _ImpaktfullUiSidebarNavigationItemState
extends State<ImpaktfullUiSidebarNavigationItem>
with SingleTickerProviderStateMixin {
var _expanded = false;
late AnimationController _controller;
Expand Down Expand Up @@ -81,7 +84,8 @@ class _ImpaktfullUiSidebarNavigationItemState extends State<ImpaktfullUiSidebarN

@override
Widget build(BuildContext context) {
return ImpaktfullUiComponentThemeBuilder<ImpaktfullUiSidebarNavigationItemTheme>(
return ImpaktfullUiComponentThemeBuilder<
ImpaktfullUiSidebarNavigationItemTheme>(
overrideComponentTheme: widget.theme,
builder: (context, componentTheme) {
return ImpaktfullUiAutoLayout.vertical(
Expand All @@ -91,11 +95,13 @@ class _ImpaktfullUiSidebarNavigationItemState extends State<ImpaktfullUiSidebarN
children: [
ImpaktfullUiTouchFeedback(
onTap: _onTap,
color: widget.isSelected ? componentTheme.colors.background : null,
color:
widget.isSelected ? componentTheme.colors.background : null,
borderRadius: componentTheme.dimens.borderRadius,
child: Padding(
padding:
widget.items.isEmpty ? componentTheme.dimens.padding : componentTheme.dimens.paddingWithSubItems,
padding: widget.items.isEmpty
? componentTheme.dimens.padding
: componentTheme.dimens.paddingWithSubItems,
child: ImpaktfullUiAutoLayout.horizontal(
crossAxisAlignment: CrossAxisAlignment.center,
spacing: 12,
Expand Down

0 comments on commit e68bb57

Please sign in to comment.