mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 04:48:51 +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 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),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user