mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Improve code
This commit is contained in:
parent
003eb1efc2
commit
8b6e464644
@ -189,7 +189,7 @@ class _MenuItemWidget extends StatelessWidget {
|
|||||||
final OnSelectMenuAction onTap;
|
final OnSelectMenuAction onTap;
|
||||||
final bool isSelected;
|
final bool isSelected;
|
||||||
|
|
||||||
/// A number to notify of news.
|
/// Notifications notice
|
||||||
final int newNotice;
|
final int newNotice;
|
||||||
|
|
||||||
const _MenuItemWidget({
|
const _MenuItemWidget({
|
||||||
@ -225,9 +225,7 @@ class _MenuItemWidget extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Spacer(
|
Spacer(flex: 2),
|
||||||
flex: 2,
|
|
||||||
),
|
|
||||||
IconTheme(
|
IconTheme(
|
||||||
data: IconThemeData(
|
data: IconThemeData(
|
||||||
color: isSelected ? _primaryColor() : _secondaryColor()),
|
color: isSelected ? _primaryColor() : _secondaryColor()),
|
||||||
@ -246,9 +244,7 @@ class _MenuItemWidget extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50.0),
|
Radius.circular(50.0),
|
||||||
)),
|
)),
|
||||||
Spacer(
|
Spacer(flex: 2),
|
||||||
flex: 2,
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user