refactor: Clean up some widths
This commit is contained in:
parent
b1a9c6e92d
commit
3434741bc5
3 changed files with 6 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ abstract class AppConfig {
|
||||||
static double fontSizeFactor = 1;
|
static double fontSizeFactor = 1;
|
||||||
static const Color chatColor = primaryColor;
|
static const Color chatColor = primaryColor;
|
||||||
static Color? colorSchemeSeed = 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 allowOtherHomeservers = true;
|
||||||
static const bool enableRegistration = true;
|
static const bool enableRegistration = true;
|
||||||
static const Color primaryColor = Color(0xFF5625BA);
|
static const Color primaryColor = Color(0xFF5625BA);
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ class NaviRailItem extends StatelessWidget {
|
||||||
return HoverBuilder(
|
return HoverBuilder(
|
||||||
builder: (context, hovered) {
|
builder: (context, hovered) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: 64,
|
height: FluffyThemes.navRailWidth,
|
||||||
width: 64,
|
width: FluffyThemes.navRailWidth,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:fluffychat/config/themes.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class TwoColumnLayout extends StatelessWidget {
|
class TwoColumnLayout extends StatelessWidget {
|
||||||
|
|
@ -20,7 +21,8 @@ class TwoColumnLayout extends StatelessWidget {
|
||||||
Container(
|
Container(
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
width: 360.0 + (displayNavigationRail ? 64 : 0),
|
width: FluffyThemes.columnWidth +
|
||||||
|
(displayNavigationRail ? FluffyThemes.navRailWidth : 0),
|
||||||
child: mainView,
|
child: mainView,
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue