skip to Main Content

Size of text in Flutter

I need the texts to always be the same size regardless of the device settings. I have tried using these codes but without success: in the Widget Text: fontSize: 20 * MediaQuery.textScaleFactorOf(context) fontSize: 20 * MediaQuery.of(context).textScaleFactor textScaleFactor or: MediaQueryData =…

VIEW QUESTION

Flutter custom function works on the Test mode of Flutterflow – but not working on mobile app builds

I have this custom function in Dart running on Flutterflow (a platform using Flutter building apps on iOS and Android) import '/backend/backend.dart'; import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/custom_code/actions/index.dart'; import '/flutter_flow/custom_functions.dart'; import 'package:flutter/material.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; Future<void> updateBalanceAndPointPremium(String documentId) async { try…

VIEW QUESTION
Back To Top
Search