Skip to content

Commit

Permalink
fix tabbar
Browse files Browse the repository at this point in the history
  • Loading branch information
LEHOANGLONG0807 committed Jan 26, 2022
1 parent 404f6ec commit a1d097e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
15 changes: 8 additions & 7 deletions lib/pages/classify/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ class ClassifyPage extends GetView<ClassifyController> {
appBar: AppBar(
title: Text('Phân loại',style: _textTheme.headline6!.textBlack,),
),
body: TabBarTypeClassify(tabLabels: [
'Truyện đọc',
'Truyện nghe'
], pages: [
TabViewStoryRead(),
PageViewStoryListen(),
]),
body: TabViewStoryRead(),
// TabBarTypeClassify(tabLabels: [
// 'Truyện đọc',
// 'Truyện nghe'
// ], pages: [
// TabViewStoryRead(),
// PageViewStoryListen(),
// ]),
);
}
}
4 changes: 2 additions & 2 deletions lib/pages/home/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class HomePage extends GetView<HomeController> {
backgroundColor: AssetColors.colorBlueF2F4FF,
body: SafeArea(
child: TabBarTypeActionStory(
tabLabels: ['Đọc truyện', 'Nghe truyện'],
pages: [KeepAlivePage(child: _buildContainerStoryRead()), PageViewStoryListen()],
tabLabels: ['Đọc truyện',],
pages: [KeepAlivePage(child: _buildContainerStoryRead())],
),
),
);
Expand Down
1 change: 1 addition & 0 deletions lib/pages/home/widget/tab_bar_action_story.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class _TabBarTypeActionStoryState extends State<TabBarTypeActionStory> with Sing
labelColor: Colors.black,
indicatorSize: TabBarIndicatorSize.label,
indicatorColor: theme.primaryColor,
isScrollable: true,
onTap: (val) async {
if (val == 1) {
_controller.feedBackStoryListen();
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/read_story/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ReadStoryPage extends GetView<ReadStoryController> {
Text('$_index/${controller.splitTextList.length}'),
ContainerBattery(),
],
).wrapHeight(20),
).wrapHeight(20).paddingSymmetric(horizontal: 10),
],
).paddingAll(10),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
intl: ^0.17.0
cached_network_image: ^3.1.0
get_storage: ^2.0.2
get: ^4.3.8
get: 4.3.8
dio: ^4.0.0
flutter_rating_bar: ^4.0.0
flutter_widget_from_html: ^0.7.0
Expand Down

0 comments on commit a1d097e

Please sign in to comment.