refactor: Clean up some widths

This commit is contained in:
krille-chan 2024-07-26 21:02:58 +02:00
parent b1a9c6e92d
commit 3434741bc5
No known key found for this signature in database
3 changed files with 6 additions and 4 deletions

View file

@ -12,7 +12,7 @@ abstract class AppConfig {
static double fontSizeFactor = 1;
static const Color chatColor = primaryColor;
static Color? colorSchemeSeed = primaryColor;
static const double messageFontSize = 15.75;
static const double messageFontSize = 16.0;
static const bool allowOtherHomeservers = true;
static const bool enableRegistration = true;
static const Color primaryColor = Color(0xFF5625BA);

View file

@ -33,8 +33,8 @@ class NaviRailItem extends StatelessWidget {
return HoverBuilder(
builder: (context, hovered) {
return SizedBox(
height: 64,
width: 64,
height: FluffyThemes.navRailWidth,
width: FluffyThemes.navRailWidth,
child: Stack(
children: [
Positioned(

View file

@ -1,3 +1,4 @@
import 'package:fluffychat/config/themes.dart';
import 'package:flutter/material.dart';
class TwoColumnLayout extends StatelessWidget {
@ -20,7 +21,8 @@ class TwoColumnLayout extends StatelessWidget {
Container(
clipBehavior: Clip.antiAlias,
decoration: const BoxDecoration(),
width: 360.0 + (displayNavigationRail ? 64 : 0),
width: FluffyThemes.columnWidth +
(displayNavigationRail ? FluffyThemes.navRailWidth : 0),
child: mainView,
),
Container(