Skip to content

Commit

Permalink
Apply bubble tab indicator on mix search result page.
Browse files Browse the repository at this point in the history
  • Loading branch information
guojiex committed Mar 12, 2019
1 parent eeb2352 commit 1856e76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/ui/mix_search_result_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:bubble_tab_indicator/bubble_tab_indicator.dart';

import '../search_data_source.dart';
import 'web_search_result_page.dart';
Expand Down Expand Up @@ -47,9 +48,17 @@ class _MixSearchResultPageState extends State<MixSearchResultPage>
child: Column(
children: <Widget>[
new TabBar(
indicatorSize: TabBarIndicatorSize.tab,
indicator: new BubbleTabIndicator(
indicatorHeight: 30.0,
indicatorColor: Colors.white,
tabBarIndicatorSize: TabBarIndicatorSize.tab,
),
isScrollable: true,
controller: _tabController,
tabs: _searchTypeTabs,
labelColor: Colors.black,
unselectedLabelColor: Colors.black38,
),
],
),
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
url_launcher: ^4.0.3
expire_cache: ^1.0.6
tuple: ^1.0.2
bubble_tab_indicator: ^0.1.4

dev_dependencies:
flutter_driver:
Expand Down

0 comments on commit 1856e76

Please sign in to comment.