From 0b1dfa460a25760fb0fdfdc31617791a0ba11e99 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 7 May 2020 13:50:57 +0200 Subject: [PATCH] Use constants --- .../tablet_mode/appbar_custom_dropdown_widget.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ui/widgets/tablet_mode/appbar_custom_dropdown_widget.dart b/lib/ui/widgets/tablet_mode/appbar_custom_dropdown_widget.dart index c0c7ff9..71ed11f 100644 --- a/lib/ui/widgets/tablet_mode/appbar_custom_dropdown_widget.dart +++ b/lib/ui/widgets/tablet_mode/appbar_custom_dropdown_widget.dart @@ -5,6 +5,9 @@ import 'package:flutter/material.dart'; /// /// @author Pierre Hubert +const _overlay_w = 300.0; +const _overlay_h = 400.0; + class AppBarCustomDropDownWidget extends StatefulWidget { final Widget icon; final int notificationsBadge; @@ -111,10 +114,10 @@ class _PopupContentBody extends StatelessWidget { child: Container(color: Color(0x55000000)), ), Positioned( - left: offset.dx - 300, + left: offset.dx - _overlay_w, top: offset.dy, - width: 300, - height: 400, + width: _overlay_w, + height: _overlay_h, child: Card(child: onBuild(context)), ) ],