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

Improve code

This commit is contained in:
Pierre HUBERT 2020-04-17 13:29:00 +02:00
parent 003eb1efc2
commit 8b6e464644

View File

@ -189,7 +189,7 @@ class _MenuItemWidget extends StatelessWidget {
final OnSelectMenuAction onTap;
final bool isSelected;
/// A number to notify of news.
/// Notifications notice
final int newNotice;
const _MenuItemWidget({
@ -225,9 +225,7 @@ class _MenuItemWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Spacer(
flex: 2,
),
Spacer(flex: 2),
IconTheme(
data: IconThemeData(
color: isSelected ? _primaryColor() : _secondaryColor()),
@ -246,9 +244,7 @@ class _MenuItemWidget extends StatelessWidget {
borderRadius: BorderRadius.all(
Radius.circular(50.0),
)),
Spacer(
flex: 2,
),
Spacer(flex: 2),
],
);
}