Created
April 15, 2019 01:26
-
-
Save ckdevrel/6674587c9c91cce3faca2eb69cd48091 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class TextIconTabBarLineIndicatorVertical extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Column( | |
mainAxisAlignment: MainAxisAlignment.end, | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
TabBar( | |
indicator: UnderlineTabIndicator( | |
borderSide: BorderSide(width: 2, color: Colors.white), | |
), | |
labelColor: Colors.white, | |
labelStyle: TextStyle(decorationColor: Colors.grey), | |
unselectedLabelColor: Colors.white54, | |
tabs: [ | |
ConstrainedBox( | |
constraints: BoxConstraints.expand(height: 60), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.end, | |
mainAxisSize: MainAxisSize.max, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[Icon(Icons.person_outline), Text('Login')], | |
)), | |
ConstrainedBox( | |
constraints: BoxConstraints.expand(height: 60), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.end, | |
mainAxisSize: MainAxisSize.max, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[ | |
Icon(Icons.people_outline), | |
Text('Signup'), | |
], | |
)), | |
], | |
) | |
], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment