Fixed notification pagination for all and unread
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../core/theme/colors.dart';
|
||||
import '../../core/utils/size_config.dart';
|
||||
|
||||
class MainTabBar extends StatefulWidget {
|
||||
const MainTabBar({required this.controller, required this.titles, super.key});
|
||||
const MainTabBar({
|
||||
required this.controller,
|
||||
required this.titles,
|
||||
this.onTap,
|
||||
super.key,
|
||||
});
|
||||
|
||||
final TabController controller;
|
||||
final List<String> titles;
|
||||
final ValueChanged<int>? onTap;
|
||||
|
||||
@override
|
||||
State<MainTabBar> createState() => _MainTabBarState();
|
||||
@@ -27,6 +32,8 @@ class _MainTabBarState extends State<MainTabBar> {
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: TabBar(
|
||||
controller: widget.controller,
|
||||
onTap: widget.onTap,
|
||||
indicatorSize: TabBarIndicatorSize.tab,
|
||||
dividerColor: Colors.transparent,
|
||||
indicator: BoxDecoration(
|
||||
@@ -40,7 +47,6 @@ class _MainTabBarState extends State<MainTabBar> {
|
||||
),
|
||||
],
|
||||
),
|
||||
controller: widget.controller,
|
||||
labelColor: AppColors.mainBlue,
|
||||
unselectedLabelColor: AppColors.grey60,
|
||||
labelStyle: TextStyle(fontSize: 16.0.sp(), fontWeight: FontWeight.w600),
|
||||
|
||||
Reference in New Issue
Block a user