mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Use constants
This commit is contained in:
parent
cd82fac803
commit
0b1dfa460a
@ -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)),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user