Open in app
Home
Notifications
Lists
Stories

Write
Paweł Szymański
Paweł Szymański

Home

Sep 22, 2020

Flutter global font size multiplier

Android and iOS both have a system setting to make texts bigger or smaller in general. Flutter takes it into account. It uses it by default. Get the value “textScaleFactor” using MediaQuery MediaQuery.of(context).textScaleFactor https://api.flutter.dev/flutter/widgets/MediaQuery-class.html In case if you want to turn this mechanism off, or change scaling value for a part of your app, wrap it in your own MediaQuery object.

Flutter

1 min read


Sep 21, 2020

Kotlin scripts easier than kscript

Unix bash scripts, Windows batch scripts — hard to manage for a Kotlin programmer. Kscript has it’s issues: it’s not the same as Kotlin, hard to debug, different method of adding imports than standard Kotlin etc. Happily you can make a simple command line Kotlin app. Full example available here: …

Kotlin

1 min read


May 6, 2020

Scale whole app or widget contents to a screen size in Flutter

Starting from the most internal part: SizedBox, to hard code a logical dimensions of the area that will be used by a child widget. FittedBox, to scale its child to entirely fit the parent, maintaining its proportions. Container, to set the background color of unused parts of the screen. SizedBox.expand…

Flutter

1 min read

Scale whole app or widget contents to a screen size in Flutter
Scale whole app or widget contents to a screen size in Flutter

May 5, 2020

Upload apk or bundle to Google Play via command line script

version 2 with Kotlin — In short: Create a service account and get its authorization data json file. Make a script uses above json and Google Play Developer API to perform actions on your account. Prerequisites: You can login as an owner of a Google Play Account. You can make Kotlin code. Android Studio is good…

Android

3 min read

Upload apk to Google Play via command line script
Upload apk to Google Play via command line script
Paweł Szymański

Paweł Szymański

Android developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable