Skip to content

Instantly share code, notes, and snippets.

@ckdevrel
Created April 15, 2019 01:18
Show Gist options
  • Save ckdevrel/f24c0b968980194127ce90b98881e872 to your computer and use it in GitHub Desktop.
Save ckdevrel/f24c0b968980194127ce90b98881e872 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class IconTabBarSolidIndicator extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
indicator: UnderlineTabIndicator(
borderSide: BorderSide(width: 45.0, color: Colors.white),
),
labelColor: Colors.blueAccent,
labelStyle: TextStyle(decorationColor: Colors.grey),
unselectedLabelColor: Colors.white,
tabs: [
ConstrainedBox(
constraints: BoxConstraints.expand(height: 40),
child: Center(
child: Icon(Icons.person_outline))),
ConstrainedBox(
constraints: BoxConstraints.expand(height: 40),
child: Center(
child: Icon(Icons.people_outline))),
],
)
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment