From 4ee02bf532116d5795fda52c4c411f46c084f2b3 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Thu, 17 Nov 2022 08:17:52 +0100 Subject: [PATCH] Fix: Desktop Web: separator of MD page is super white in the dark theme Fixes #305 --- lib/src/layouts/yaru_landscape_layout.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/src/layouts/yaru_landscape_layout.dart b/lib/src/layouts/yaru_landscape_layout.dart index 8d505f109..fe81bac59 100644 --- a/lib/src/layouts/yaru_landscape_layout.dart +++ b/lib/src/layouts/yaru_landscape_layout.dart @@ -1,3 +1,4 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'yaru_master_detail_page.dart'; @@ -163,6 +164,15 @@ class _YaruLandscapeLayoutState extends State { } Widget _buildVerticalSeparator() { + // Fix for the ultra white divider on flutter web + final darkAndWeb = + kIsWeb && Theme.of(context).brightness == Brightness.dark; + if (darkAndWeb) { + return const VerticalDivider( + thickness: 0, + width: 0.01, + ); + } return const VerticalDivider( thickness: 1, width: 1,