chore: Adjust design of navrail
This commit is contained in:
parent
7be2d3df59
commit
727e442c94
6 changed files with 226 additions and 256 deletions
|
|
@ -5,11 +5,13 @@ import 'package:fluffychat/config/themes.dart';
|
|||
class TwoColumnLayout extends StatelessWidget {
|
||||
final Widget mainView;
|
||||
final Widget sideView;
|
||||
final bool hasNavigationRail;
|
||||
|
||||
const TwoColumnLayout({
|
||||
super.key,
|
||||
required this.mainView,
|
||||
required this.sideView,
|
||||
this.hasNavigationRail = true,
|
||||
});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -22,7 +24,9 @@ class TwoColumnLayout extends StatelessWidget {
|
|||
Container(
|
||||
clipBehavior: Clip.antiAlias,
|
||||
decoration: const BoxDecoration(),
|
||||
width: FluffyThemes.columnWidth + FluffyThemes.navRailWidth,
|
||||
width:
|
||||
FluffyThemes.columnWidth +
|
||||
(hasNavigationRail ? FluffyThemes.navRailWidth : 0),
|
||||
child: mainView,
|
||||
),
|
||||
Container(width: 1.0, color: theme.dividerColor),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue