Skip to content

Commit

Permalink
Use ActionChip instead of FilterChip
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Jan 16, 2025
1 parent 0bc278c commit 2472201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/oath/views/add_account_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage>
spacing: 4.0,
runSpacing: 4.0,
children: [
FilterChip(
ActionChip(
avatar: _scanning
? SizedBox(
height: 16,
Expand All @@ -442,7 +442,7 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage>
? l10n.l_qr_scanned
: l10n.s_qr_scan,
),
onSelected: (_) async {
onPressed: () async {
if (_qrScanSuccess) {
clearFields();
setState(() {
Expand All @@ -459,10 +459,10 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage>
}
},
),
FilterChip(
ActionChip(
avatar: Icon(Symbols.help),
label: Text(l10n.s_learn_more),
onSelected: (_) {
onPressed: () {
launchDocumentationUrl();
},
)
Expand Down

0 comments on commit 2472201

Please sign in to comment.