@@ -124,30 +124,26 @@ class _VaultAccountCredentialsWidgetState extends State<VaultAccountCredentialsW
124124 indicatorSize: TabBarIndicatorSize .tab,
125125 dividerHeight: 0 ,
126126 // labelPadding: EdgeInsets.all(0),
127- tabAlignment: TabAlignment .fill ,
127+ tabAlignment: TabAlignment .center ,
128128 ),
129129 ),
130130 child: Container (
131131 padding: EdgeInsets .zero,
132132 margin: EdgeInsets .zero,
133- child: ConstrainedBox (
134- constraints: BoxConstraints (maxHeight: 150 , minWidth: double .infinity),
135- child: Column (
136- crossAxisAlignment: CrossAxisAlignment .stretch,
137- mainAxisAlignment: MainAxisAlignment .center,
138- mainAxisSize: MainAxisSize .min,
139- children: [
140- TabBar (
141- //TOOD: Better way to get the two tabs to stay in the centre on a range of device widths.
142- padding: EdgeInsets .only (left: 32 , right: 32 , bottom: 8 ),
143- controller: _tabController,
144- tabs: < Widget > [
145- Tab (icon: Icon (Icons .person_add_alt_1), text: str.newUser),
146- Tab (icon: Icon (Icons .person), text: str.existingUser),
147- ],
148- ),
149- ],
150- ),
133+ child: Column (
134+ crossAxisAlignment: CrossAxisAlignment .center,
135+ mainAxisAlignment: MainAxisAlignment .center,
136+ mainAxisSize: MainAxisSize .min,
137+ children: [
138+ TabBar (
139+ padding: EdgeInsets .only (left: 16 , right: 16 , bottom: 4 ),
140+ controller: _tabController,
141+ tabs: < Widget > [
142+ Tab (icon: Icon (Icons .person_add_alt_1), text: str.newUser),
143+ Tab (icon: Icon (Icons .person), text: str.existingUser),
144+ ],
145+ ),
146+ ],
151147 ),
152148 ),
153149 ),
0 commit comments