Skip to content

Commit

Permalink
Colloscope icon
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashOnFire committed Dec 21, 2023
1 parent e14ba7b commit e5c2864
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
7 changes: 4 additions & 3 deletions apps/onyx/lib/core/extensions/functionalities_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:onyx/core/res.dart';
import 'package:onyx/screens/agenda/agenda_export.dart';
import 'package:onyx/screens/colloscope/pages/colloscope_page.dart';
import 'package:onyx/screens/colloscope/widgets/colloscope_bottom_nav_bar_icon.dart';
import 'package:onyx/screens/izly/izly_export.dart';
import 'package:onyx/screens/mails/mails_export.dart';
import 'package:onyx/screens/map/map_export.dart';
Expand Down Expand Up @@ -45,7 +46,7 @@ extension FunctionalitiesExtention on Functionalities {
case Functionalities.settings:
return Icons.settings_rounded;
case Functionalities.colloscope:
return Icons.settings_rounded;
return Icons.school_rounded;
}
}

Expand Down Expand Up @@ -79,11 +80,11 @@ extension FunctionalitiesExtention on Functionalities {
case Functionalities.map:
return MapBottomNavBarIcon(selected: selected);
case Functionalities.izly:
return IzlyBottomNavBarIconWidget(selected: selected);
return IzlyBottomNavBarIcon(selected: selected);
case Functionalities.settings:
return SettingsBottomNavBarIcon(selected: selected);
case Functionalities.colloscope:
return SettingsBottomNavBarIcon(selected: selected);
return ColloscopeBottomNavBarIcon(selected: selected);
}
}

Expand Down
1 change: 0 additions & 1 deletion apps/onyx/lib/screens/colloscope/colloscope_export.dart

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import 'package:flutter/material.dart';

class ColloscopeBottomNavBarIcon extends StatelessWidget {
const ColloscopeBottomNavBarIcon({super.key, required this.selected});

final bool selected;

@override
Widget build(BuildContext context) {
return FittedBox(
fit: BoxFit.fitHeight,
child: Icon(
Icons.school_rounded,
color: selected
? Theme.of(context).bottomNavigationBarTheme.selectedItemColor
: Theme.of(context).bottomNavigationBarTheme.unselectedItemColor,
),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export '../pages/colloscope_page.dart';
4 changes: 2 additions & 2 deletions apps/onyx/lib/screens/izly/izly_export.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export 'logic/izly_logic.dart';
export 'pages/izly_login_page.dart';
export 'pages/izly_page.dart';
export 'pages/izly_payment_history.dart';
export 'pages/izly_recharge_cb_page.dart';
export 'pages/izly_recharge_page.dart';
export 'pages/izly_recharge_tiers_page.dart';
export 'pages/izly_recharge_transfer_page.dart';
export 'pages/izly_working_page.dart';
export 'pages/izly_payment_history.dart';
export 'states/izly_cubit.dart';
export 'widgets/izly_bottom_nav_bar_icon_widget.dart';
export 'widgets/izly_bottom_nav_bar_icon.dart';
export 'widgets/izly_rechage_card_widget.dart';
export 'widgets/izly_recharge_amount_widget.dart';
export 'widgets/izly_recharge_header_widget.dart';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';

class IzlyBottomNavBarIconWidget extends StatelessWidget {
const IzlyBottomNavBarIconWidget({super.key, required this.selected});
class IzlyBottomNavBarIcon extends StatelessWidget {
const IzlyBottomNavBarIcon({super.key, required this.selected});
final bool selected;

@override
Expand Down

0 comments on commit e5c2864

Please sign in to comment.