Make scan qr code as default option during 2FA setup

Scanning qr code is more user friendly & (arguably) preferred choice for majority
This commit is contained in:
Neeraj Gupta 2021-07-07 11:04:27 +05:30
parent 4f5755b5af
commit a015cf2152

View file

@ -91,10 +91,10 @@ class _TwoFactorSetupPageState extends State<TwoFactorSetupPage>
unselectedLabelColor: Colors.grey,
tabs: [
Tab(
text: "enter code",
text: "scan code",
),
Tab(
text: "scan code",
text: "enter code",
)
],
controller: _tabController,
@ -103,8 +103,8 @@ class _TwoFactorSetupPageState extends State<TwoFactorSetupPage>
Expanded(
child: TabBarView(
children: [
_getSecretCode(),
_getBarCode(),
_getSecretCode(),
],
controller: _tabController,
),