Skip to content

Commit d07d310

Browse files
committed
Hide login text when logged in
1 parent dcab2f3 commit d07d310

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

lib/screens/sync_screen.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ class _SyncSettingsScreenState extends State<SyncSettingsScreen> {
138138
body: ListView(
139139
padding: const EdgeInsets.all(16),
140140
children: [
141-
Text(
142-
AppLocalizations.of(context)!.loginToSyncDevices,
143-
textAlign: TextAlign.center,
144-
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
145-
),
146-
SizedBox(
147-
height: 16,
148-
),
149141
if (!pbService.isAuthenticated) ...[
142+
Text(
143+
AppLocalizations.of(context)!.loginToSyncDevices,
144+
textAlign: TextAlign.center,
145+
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
146+
),
147+
SizedBox(
148+
height: 16,
149+
),
150150
SyncAuthForm(
151151
onLoginSuccess: () {
152152
setState(() {});

0 commit comments

Comments
 (0)