Skip to content

Commit

Permalink
Merge pull request #701 from atsign-foundation/feat/pubscore_at_conta…
Browse files Browse the repository at this point in the history
…cts_flutter

feat: at_contacts_flutter pub score enahancement
  • Loading branch information
sachins-geekyants authored Jun 28, 2023
2 parents 283536d + e653832 commit a934d8e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions packages/at_contacts_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
at_app_flutter: 5.0.1
at_onboarding_flutter: ^5.0.3
at_app_flutter: 5.2.0
at_onboarding_flutter: ^6.0.0
at_backupkey_flutter: ^4.0.6
at_contacts_flutter:
path: ../
Expand Down
24 changes: 12 additions & 12 deletions packages/at_contacts_flutter/lib/screens/contacts_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,26 @@ class _ContactsScreenState extends State<ContactsScreen> {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Slidable(
actionPane: const SlidableDrawerActionPane(),
actionExtentRatio: 0.25,
secondaryActions: <Widget>[
IconSlideAction(
caption: TextStrings().block,
color: ColorConstants.inputFieldColor,
endActionPane: ActionPane(motion: const ScrollMotion(), children:
[
SlidableAction(
label: TextStrings().block,
backgroundColor: ColorConstants.inputFieldColor,
icon: Icons.block,
onTap: () async {
onPressed: (context) async {
blockUnblockContact(contactsForAlphabet[index]!);
},
),
IconSlideAction(
caption: TextStrings().delete,
color: Colors.red,
SlidableAction(
label: TextStrings().delete,
backgroundColor: Colors.red,
icon: Icons.delete,
onTap: () async {
onPressed: (context) async {
deleteContact(contactsForAlphabet[index]!);
},
),
],
]),
// actionExtentRatio: 0.25,
child: CustomListTile(
key: UniqueKey(),
contactService: _contactService,
Expand Down
16 changes: 8 additions & 8 deletions packages/at_contacts_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: at_contacts_flutter
description: A Flutter plugin project to provide ease of managing contacts for an atSign using atPlatform.
version: 4.0.10
homepage: https://docs.atsign.com/
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/at_contacts_flutter
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_contacts_flutter
issue_tracker: https://github.com/atsign-foundation/at_widgets/issues
documentation: https://atsign.dev/docs/functional_architecture/libraries/#at_contacts_flutter
documentation: https://docs.atsign.com/

environment:
sdk: '>=2.12.0 <4.0.0'
Expand All @@ -14,15 +14,15 @@ dependencies:
flutter:
sdk: flutter

flutter_slidable: ^0.6.0
flutter_slidable: ^3.0.0

at_client_mobile: ^3.2.9
at_commons: ^3.0.45
at_lookup: ^3.0.36
at_client_mobile: ^3.2.10
at_commons: ^3.0.48
at_lookup: ^3.0.37
at_contact: ^3.0.7
at_common_flutter: ^2.0.11
at_client: ^3.0.59
at_utils: ^3.0.12
at_client: ^3.0.61
at_utils: ^3.0.13

dev_dependencies:
flutter_lints: ^2.0.1
Expand Down

0 comments on commit a934d8e

Please sign in to comment.