Skip to content

Commit

Permalink
chore: project cleanup (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd authored Oct 9, 2024
1 parent 02a9235 commit 8858523
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
2 changes: 0 additions & 2 deletions lib/features/account/account_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import 'package:web5/web5.dart';
class AccountPage extends HookConsumerWidget {
const AccountPage({super.key});

// TODO(ethan-tbd): add button to recreate did

@override
Widget build(BuildContext context, WidgetRef ref) {
final pfis = ref.watch(pfisProvider);
Expand Down
2 changes: 1 addition & 1 deletion lib/features/kcc/kcc_issuance_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class KccIssuanceService {
}

Future<Uri> getIdvServiceEndpoint(
Pfi pfi, PresentationDefinition presentationDefinition) async {
Pfi pfi, PresentationDefinition presentationDefinition,) async {
try {
final res = await DidResolver.resolve(pfi.did);
if (res.hasError()) {
Expand Down
3 changes: 2 additions & 1 deletion lib/features/kcc/kcc_webview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class KccWebviewPage extends HookConsumerWidget {
final webViewController = useState<InAppWebViewController?>(null);

final settings = InAppWebViewSettings(
isInspectable: kDebugMode, // TODO: only enable for debug builds
isInspectable:
kDebugMode, // TODO(ethan-tbd): only enable for debug builds
mediaPlaybackRequiresUserGesture: false,
allowsInlineMediaPlayback: true,
iframeAllow: 'camera; microphone',
Expand Down
15 changes: 9 additions & 6 deletions lib/features/payment/payment_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,15 @@ class PaymentDetailsPage extends HookConsumerWidget {
),
error: (error, _) => ErrorMessage(
message: error.toString(),
onRetry: () => _sendRfq(
context,
ref,
state,
quote,
),
onRetry: () {
quote.value = const AsyncLoading();
_sendRfq(
context,
ref,
state,
quote,
);
},
),
)
: Column(
Expand Down
2 changes: 1 addition & 1 deletion lib/features/qr/qr_tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class QrTabs extends HookWidget {
controller: tabController,
indicator: BoxDecoration(
borderRadius: BorderRadius.circular(Grid.radius),
color: Theme.of(context).colorScheme.surfaceContainer,
color: Theme.of(context).colorScheme.surface,
),
indicatorSize: TabBarIndicatorSize.tab,
indicatorPadding: const EdgeInsets.all(Grid.quarter),
Expand Down
1 change: 0 additions & 1 deletion lib/features/send/send_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:didpay/features/transaction/transaction.dart';
import 'package:didpay/l10n/app_localizations.dart';
import 'package:didpay/shared/error_message.dart';
import 'package:didpay/shared/header.dart';
import 'package:didpay/shared/loading_message.dart';
import 'package:didpay/shared/theme/grid.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
Expand Down
2 changes: 2 additions & 0 deletions lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:intl/intl.dart' as intl;

import 'app_localizations_en.dart';

// ignore_for_file: type=lint

/// Callers can lookup localized strings with an instance of Loc
/// returned by `Loc.of(context)`.
///
Expand Down
2 changes: 2 additions & 0 deletions lib/l10n/app_localizations_en.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'app_localizations.dart';

// ignore_for_file: type=lint

/// The translations for English (`en`).
class LocEn extends Loc {
LocEn([String locale = 'en']) : super(locale);
Expand Down

0 comments on commit 8858523

Please sign in to comment.