File tree Expand file tree Collapse file tree 3 files changed +22
-11
lines changed
screens/initial_setup_widgets Expand file tree Collapse file tree 3 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ au](https://solidcommunity.au/docs/solidui)
1717
1818+ Remove solidui/solidpod circular dependency [ 0.0.7 20251029 gjw]
1919+ Refactor SOlidLogin for max 300 loc lint [ 0.0.6 20251017 cdawei]
20- + Fix security key handling [ 0.0.5 20251027 tchecn ]
20+ + Fix security key handling [ 0.0.5 20251027 tchen ]
2121+ Add webid to an info header in navdrawer [ 0.0.4 20251017 tchen]
2222+ Update version widget dependency [ 0.0.3 20251008 gjw]
2323+ EXAMPLE: Add demo of getting version [ 0.0.2 20250820 gjw]
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ library;
3333import 'package:flutter/material.dart' ;
3434
3535import 'package:flutter_form_builder/flutter_form_builder.dart' ;
36- import 'package:solidpod/solidpod.dart' show initPod ;
36+ import 'package:solidpod/solidpod.dart' show KeyManager ;
3737
3838import 'package:solidui/src/constants/initial_setup.dart' ;
3939import 'package:solidui/src/widgets/solid_animation_dialog.dart' ;
@@ -167,14 +167,13 @@ ElevatedButton resCreateFormSubmission(
167167 final securityKey = formData[securityKeyStr].toString ();
168168
169169 try {
170- // await _initPodOriginalFunc(securityKey);
171- await initPod (
172- securityKey,
173- dirUrls: resFoldersLink,
174- fileUrls: resFilesLink,
175- );
170+ // Initialise the POD with the security key.
171+ // Set up the KeyManager and create verification keys.
172+
173+ await KeyManager .initPodKeys (securityKey);
174+ debugPrint ('POD initialised with security key' );
176175 } on Exception catch (e) {
177- debugPrint (e. toString () );
176+ debugPrint ('Error initialising POD: $ e ' );
178177 }
179178
180179 await Navigator .pushReplacement (
Original file line number Diff line number Diff line change @@ -178,10 +178,22 @@ class _SolidDynamicLoginStatusState extends State<SolidDynamicLoginStatus> {
178178 loggedOutTooltip: widget.loggedOutTooltip,
179179 );
180180
181- // Create the updated status bar configuration with dynamic login status.
181+ // Create dynamic server info from webId if available, otherwise use base
182+ // config.
183+
184+ final dynamicServerInfo = _currentWebId != null && _currentWebId! .isNotEmpty
185+ ? SolidServerInfo .fromWebId (
186+ _currentWebId! ,
187+ tooltip: widget.baseConfig.serverInfo? .tooltip,
188+ isClickable: widget.baseConfig.serverInfo? .isClickable ?? true ,
189+ )
190+ : widget.baseConfig.serverInfo;
191+
192+ // Create the updated status bar configuration with dynamic login status
193+ // and server info.
182194
183195 final updatedConfig = SolidStatusBarConfig (
184- serverInfo: widget.baseConfig.serverInfo ,
196+ serverInfo: dynamicServerInfo ,
185197 loginStatus: dynamicLoginStatus,
186198 onLogin: widget.baseConfig.onLogin,
187199 securityKeyStatus: widget.baseConfig.securityKeyStatus,
You can’t perform that action at this time.
0 commit comments