1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 14:59:22 +00:00

ComunicAppBar => ComunicMobileAppBar

This commit is contained in:
Pierre HUBERT 2020-05-06 18:25:55 +02:00
parent f31323fe23
commit 91be430dbb
2 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ import 'package:comunic/ui/screens/other_friends_lists_screen.dart';
import 'package:comunic/ui/screens/search_screen.dart'; import 'package:comunic/ui/screens/search_screen.dart';
import 'package:comunic/ui/screens/user_access_denied_screen.dart'; import 'package:comunic/ui/screens/user_access_denied_screen.dart';
import 'package:comunic/ui/screens/user_page_screen.dart'; import 'package:comunic/ui/screens/user_page_screen.dart';
import 'package:comunic/ui/widgets/navbar_widget.dart'; import 'package:comunic/ui/widgets/mobile_mode/mobile_navbar_widget.dart';
import 'package:comunic/utils/account_utils.dart'; import 'package:comunic/utils/account_utils.dart';
import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/intl_utils.dart';
import 'package:comunic/utils/ui_utils.dart'; import 'package:comunic/utils/ui_utils.dart';
@ -176,7 +176,7 @@ class _MainRouteState extends State<MainRoute> implements MainController {
child: Scaffold( child: Scaffold(
appBar: _currTab.hideNavBar appBar: _currTab.hideNavBar
? null ? null
: ComunicAppBar( : ComunicMobileAppBar(
onTap: _onTap, onTap: _onTap,
selectedAction: _currTab.action, selectedAction: _currTab.action,
), ),

View File

@ -107,23 +107,23 @@ final _menuActionsItem = <_ActionMenuItem>[
]; ];
/// Public widget /// Public widget
class ComunicAppBar extends StatefulWidget implements PreferredSizeWidget { class ComunicMobileAppBar extends StatefulWidget implements PreferredSizeWidget {
final OnSelectMenuAction onTap; final OnSelectMenuAction onTap;
final BarCallbackActions selectedAction; final BarCallbackActions selectedAction;
const ComunicAppBar( const ComunicMobileAppBar(
{Key key, @required this.onTap, @required this.selectedAction}) {Key key, @required this.onTap, @required this.selectedAction})
: assert(onTap != null), : assert(onTap != null),
super(key: key); super(key: key);
@override @override
_ComunicAppBarState createState() => _ComunicAppBarState(); _ComunicMobileAppBarState createState() => _ComunicMobileAppBarState();
@override @override
Size get preferredSize => Size.fromHeight(40); Size get preferredSize => Size.fromHeight(40);
} }
class _ComunicAppBarState extends SafeState<ComunicAppBar> { class _ComunicMobileAppBarState extends SafeState<ComunicMobileAppBar> {
var _unreadNotifications = var _unreadNotifications =
CountUnreadNotifications(notifications: 0, conversations: 0); CountUnreadNotifications(notifications: 0, conversations: 0);