mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-01 01:31:01 -05:00
[client] Fix progress dialog messages
This commit is contained in:
@@ -103,7 +103,7 @@ class NavList extends StatelessWidget {
|
||||
if (!context.mounted) return;
|
||||
if (resource == null) {
|
||||
final nav = Navigator.of(context);
|
||||
showProgressDialog(context, title: 'Downloading ${b.name}');
|
||||
showProgressDialog(context, title: 'Getting Details', message: b.name);
|
||||
final success = await account.resourceRepository
|
||||
.requestResource(b.resourceId)
|
||||
.then((result) => result is ApiSuccessResponse);
|
||||
|
||||
@@ -93,7 +93,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
if (context.mounted) {
|
||||
final accountManager = context.read<AccountManager<PhylumAccount>>();
|
||||
final navigator = Navigator.of(context);
|
||||
showProgressDialog(context, barrierDismissible: false, title: 'Processing Login Response');
|
||||
showProgressDialog(context, barrierDismissible: false, message: 'Logging In');
|
||||
try {
|
||||
final response =
|
||||
BootstrapLoginResponse.fromResponse((jsonDecode(responseString) as Map).cast<String, dynamic>());
|
||||
|
||||
@@ -9,11 +9,11 @@ import 'package:phylum/util/logging.dart';
|
||||
|
||||
Future<String?> sendRequest(
|
||||
BuildContext context,
|
||||
String title,
|
||||
String message,
|
||||
BaseRequest request,
|
||||
) async {
|
||||
final navigator = Navigator.of(context);
|
||||
showProgressDialog(context, barrierDismissible: false, title: title);
|
||||
showProgressDialog(context, barrierDismissible: false, message: message);
|
||||
|
||||
try {
|
||||
final response = await Client().send(request);
|
||||
|
||||
Reference in New Issue
Block a user