What changed, and why it matters
This commit is purely a code-style cleanup: it reformats Dart source files to match the project's formatting rules. There are no functional changes, no bug fixes, and no security-related modifications.
Recommended action
No security action needed; this is a routine style-only commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows only whitespace, line-break, and indentation changes produced by a Dart formatter. No logic, API, dependency, or behavior changes are present in the three modified files.
Changed components
lib/pages_desktop_specific/address_book_view/desktop_address_book.dartlib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/address_book_address_chooser/address_book_address_chooser.dartlib/services/address_book_service.dartInspect captured patch +69 / −80
### lib/pages_desktop_specific/address_book_view/desktop_address_book.dart
@@ -257,9 +257,9 @@ class _DesktopAddressBook extends ConsumerState<DesktopAddressBook> {
buttonHeight: ButtonHeight.l,
icon: SvgPicture.asset(
Assets.svg.filter,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextSecondary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextSecondary,
),
onPressed: selectCryptocurrency,
),
@@ -270,9 +270,9 @@ class _DesktopAddressBook extends ConsumerState<DesktopAddressBook> {
buttonHeight: ButtonHeight.l,
icon: SvgPicture.asset(
Assets.svg.circlePlus,
- color: Theme.of(
- context,
- ).extension<StackColors>()!.buttonTextPrimary,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .buttonTextPrimary,
),
onPressed: newContact,
),
@@ -314,9 +314,9 @@ class _DesktopAddressBook extends ConsumerState<DesktopAddressBook> {
children: [
if (i > 0)
Container(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
height: 1,
),
Padding(
@@ -385,9 +385,9 @@ class _DesktopAddressBook extends ConsumerState<DesktopAddressBook> {
children: [
if (i > 0)
Container(
- color: Theme.of(
- context,
- ).extension<StackColors>()!.background,
+ color: Theme.of(context)
+ .extension<StackColors>()!
+ .background,
height: 1,
),
Padding(
### lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/address_book_address_chooser/address_book_address_chooser.dart
@@ -27,10 +27,7 @@ import '../../../../../widgets/textfield_icon_button.dart';
import 'sub_widgets/contact_list_item.dart';
class AddressBookAddressChooser extends ConsumerStatefulWidget {
- const AddressBookAddressChooser({
- super.key,
- this.coin,
- });
+ const AddressBookAddressChooser({super.key, this.coin});
final CryptoCurrency? coin;
@@ -137,9 +134,7 @@ class _AddressBookAddressChooserState
children: [
// search field
Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: 32,
- ),
+ padding: const EdgeInsets.symmetric(horizontal: 32),
child: ClipRRect(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
@@ -162,71 +157,68 @@ class _AddressBookAddressChooserState
height: 1.8,
)
: STextStyles.field(context),
- decoration: standardInputDecoration(
- "Search",
- searchFieldFocusNode,
- context,
- desktopMed: isDesktop,
- ).copyWith(
- prefixIcon: Padding(
- padding: EdgeInsets.symmetric(
- horizontal: isDesktop ? 12 : 10,
- vertical: isDesktop ? 18 : 16,
- ),
- child: SvgPicture.asset(
- Assets.svg.search,
- width: isDesktop ? 20 : 16,
- height: isDesktop ? 20 : 16,
- ),
- ),
- suffixIcon: _searchController.text.isNotEmpty
- ? Padding(
- padding: const EdgeInsets.only(right: 0),
- child: UnconstrainedBox(
- child: Row(
- children: [
- TextFieldIconButton(
- child: const XIcon(),
- onTap: () async {
- setState(() {
- _searchController.text = "";
- _searchTerm = "";
- });
- },
+ decoration:
+ standardInputDecoration(
+ "Search",
+ searchFieldFocusNode,
+ context,
+ desktopMed: isDesktop,
+ ).copyWith(
+ prefixIcon: Padding(
+ padding: EdgeInsets.symmetric(
+ horizontal: isDesktop ? 12 : 10,
+ vertical: isDesktop ? 18 : 16,
+ ),
+ child: SvgPicture.asset(
+ Assets.svg.search,
+ width: isDesktop ? 20 : 16,
+ height: isDesktop ? 20 : 16,
+ ),
+ ),
+ suffixIcon: _searchController.text.isNotEmpty
+ ? Padding(
+ padding: const EdgeInsets.only(right: 0),
+ child: UnconstrainedBox(
+ child: Row(
+ children: [
+ TextFieldIconButton(
+ child: const XIcon(),
+ onTap: () async {
+ setState(() {
+ _searchController.text = "";
+ _searchTerm = "";
+ });
+ },
+ ),
+ ],
),
- ],
- ),
- ),
- )
- : null,
- ),
+ ),
+ )
+ : null,
+ ),
),
),
),
- const SizedBox(
- height: 16,
- ),
+ const SizedBox(height: 16),
Expanded(
child: Padding(
- padding: const EdgeInsets.only(
- left: 32,
- right: 32,
- bottom: 32,
- ),
+ padding: const EdgeInsets.only(left: 32, right: 32, bottom: 32),
child: Consumer(
builder: (context, ref, _) {
List<ContactEntry> contacts = ref
.watch(
- addressBookServiceProvider
- .select((value) => value.contacts),
+ addressBookServiceProvider.select(
+ (value) => value.contacts,
+ ),
)
.toList();
contacts = filter(contacts, _searchTerm);
final favorites = pullOutFavorites(contacts);
- final totalLength = favorites.length +
+ final totalLength =
+ favorites.length +
contacts.length +
2; // +2 for "fav" and "all" headers
@@ -235,23 +227,20 @@ class _AddressBookAddressChooserState
shrinkWrap: true,
itemCount: totalLength,
separatorBuilder: (context, index) {
- return const SizedBox(
- height: 10,
- );
+ return const SizedBox(height: 10);
},
itemBuilder: (context, index) {
if (index == 0) {
return Padding(
key: const Key(
"addressBookCAddressChooserFavoritesHeaderItemKey",
),
- padding: const EdgeInsets.only(
- bottom: 10,
- ),
+ padding: const EdgeInsets.only(bottom: 10),
child: Text(
"Favorites",
- style:
- STextStyles.desktopTextExtraExtraSmall(context),
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
+ ),
),
);
} else if (index < favorites.length + 1) {
@@ -266,13 +255,12 @@ class _AddressBookAddressChooserState
key: const Key(
"addressBookCAddressChooserAllContactsHeaderItemKey",
),
- padding: const EdgeInsets.symmetric(
- vertical: 10,
- ),
+ padding: const EdgeInsets.symmetric(vertical: 10),
child: Text(
"All contacts",
- style:
- STextStyles.desktopTextExtraExtraSmall(context),
+ style: STextStyles.desktopTextExtraExtraSmall(
+ context,
+ ),
),
);
} else {
### lib/services/address_book_service.dart
@@ -11,6 +11,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:mutex/mutex.dart';
+
import '../app_config.dart';
import '../db/isar/main_db.dart';
import '../models/isar/models/blockchain_data/address.dart';Risk score
Our methodology →Why this scored 15/100
Human-validated context
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
No validated notes yet.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.