浏览代码

feat: add divider between sidebar and the page (#1450)

Richard Shiue 2 年之前
父节点
当前提交
dcf6628aa3
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart

+ 5 - 1
frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart

@@ -85,7 +85,11 @@ class HomeMenu extends StatelessWidget {
   Widget _renderBody(BuildContext context) {
     // nested column: https://siddharthmolleti.com/flutter-box-constraints-nested-column-s-row-s-3dfacada7361
     return Container(
-      color: Theme.of(context).colorScheme.surfaceVariant,
+      decoration: BoxDecoration(
+        color: Theme.of(context).colorScheme.surfaceVariant,
+        border:
+            Border(right: BorderSide(color: Theme.of(context).dividerColor)),
+      ),
       child: Column(
         mainAxisAlignment: MainAxisAlignment.start,
         children: [