1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00

Use constants

This commit is contained in:
Pierre HUBERT 2020-05-07 13:50:57 +02:00
parent cd82fac803
commit 0b1dfa460a

View File

@ -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)),
)
],