Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updated textScaleFactor to textScaler [at_contacts] #797

Merged
merged 4 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/at_contacts_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.14
- **CHORE**: Bumped up dependency versions
- **CHORE**: Major version increase of at_commons from ^3.0.55 to ^4.0.1

## 4.0.13

- **FIX**: Fixed methods for fetching profile picture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class _AddContactDialogState extends State<AddContactDialog> {
@override
Widget build(BuildContext context) {
var contactService = ContactService();
var deviceTextFactor = MediaQuery.of(context).textScaleFactor;
var deviceTextFactor = MediaQuery.of(context).textScaler.scale(20) / 20;
return SizedBox(
height: 140.toHeight * deviceTextFactor,
width: 100.toWidth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CommonButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
double deviceTextFactor = MediaQuery.of(context).textScaleFactor;
var deviceTextFactor = MediaQuery.of(context).textScaler.scale(20) / 20;
return InkWell(
onTap: onTap,
child: Container(
Expand Down
2 changes: 1 addition & 1 deletion packages/at_contacts_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: at_contacts_flutter
description: A Flutter plugin project to provide ease of managing contacts for
an atSign using atPlatform.
version: 4.0.13
version: 4.0.14
homepage: https://docs.atsign.com/
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_contacts_flutter
issue_tracker: https://github.com/atsign-foundation/at_widgets/issues
Expand Down