1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +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 /// @author Pierre Hubert
const _overlay_w = 300.0;
const _overlay_h = 400.0;
class AppBarCustomDropDownWidget extends StatefulWidget { class AppBarCustomDropDownWidget extends StatefulWidget {
final Widget icon; final Widget icon;
final int notificationsBadge; final int notificationsBadge;
@ -111,10 +114,10 @@ class _PopupContentBody extends StatelessWidget {
child: Container(color: Color(0x55000000)), child: Container(color: Color(0x55000000)),
), ),
Positioned( Positioned(
left: offset.dx - 300, left: offset.dx - _overlay_w,
top: offset.dy, top: offset.dy,
width: 300, width: _overlay_w,
height: 400, height: _overlay_h,
child: Card(child: onBuild(context)), child: Card(child: onBuild(context)),
) )
], ],