Skip to content

Commit

Permalink
chore: rename symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
squidrye committed Oct 10, 2023
1 parent e4d2b58 commit 9fd192f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ class HomeSizes {
static const double topBarHeight = 60;
static const double editPanelTopBarHeight = 60;
static const double editPanelWidth = 400;
static const double tabBarHeigth = 40;
static const double tabBarWidth = 200;
static const double tabBarHeight = 40;
static const double tabWidth = 200;
static const double resizeBarThickness = 2;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class _DraggablePaneTargetState extends State<DraggablePaneTarget> {
double? left, top, height, width;

final topOffset = (widget.pane.draggable as PaneNode).tabs.pages > 1
? HomeSizes.tabBarHeigth + HomeSizes.topBarHeight
? HomeSizes.tabBarHeight + HomeSizes.topBarHeight
: HomeSizes.topBarHeight;

switch (position) {
Expand Down Expand Up @@ -145,7 +145,7 @@ class _DraggablePaneTargetState extends State<DraggablePaneTarget> {
CrossDraggableType type,
) {
final top = (widget.pane.draggable as PaneNode).tabs.pages > 1
? HomeSizes.tabBarHeigth + HomeSizes.topBarHeight
? HomeSizes.tabBarHeight + HomeSizes.topBarHeight
: HomeSizes.topBarHeight;

if (offset.dy <= top) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class _FlowyPaneState extends State<FlowyPane> {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider<TabsController>(
key: ValueKey(widget.node.tabs.tabId),
create: (context) => widget.node.tabs,
child: Consumer<TabsController>(
builder: (context, value, __) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class _FlowyTabState extends State<FlowyTab> {
onEnter: (_) => _setHovering(true),
onExit: (_) => _setHovering(),
child: Container(
width: HomeSizes.tabBarWidth,
height: HomeSizes.tabBarHeigth,
width: HomeSizes.tabWidth,
height: HomeSizes.tabBarHeight,
decoration: BoxDecoration(
color: _getBackgroundColor(),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class _TabsManagerState extends State<TabsManager>
}
return Container(
alignment: Alignment.bottomLeft,
height: HomeSizes.tabBarHeigth,
height: HomeSizes.tabBarHeight,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surfaceVariant,
),
Expand All @@ -87,9 +87,8 @@ class _TabsManagerState extends State<TabsManager>
tabs: widget.tabs.pageManagers
.map(
(pm) => SizedBox(
width: HomeSizes.tabWidth,
key: ValueKey(pm.plugin.id),
width: HomeSizes.tabBarWidth,
height: HomeSizes.tabBarHeigth,
child: DraggableTabItem(
tabs: widget.tabs,
pageManager: pm,
Expand Down

0 comments on commit 9fd192f

Please sign in to comment.