jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.25k stars 1.61k forks source link

`Get.textTheme` non nullable #1236

Open qbait opened 3 years ago

qbait commented 3 years ago

Can GetX returns nullable theme and textTheme.

Is it possible to return non-nullable so when using sound null safety, I can call Get.textTheme.caption.copyWith(color: Colors.red) instead of Get.textTheme?.caption?.copyWith(color: Colors.red)

maares commented 3 years ago

@qbait you should use when ever posible (see bellow):

context.textTheme.caption.copayWith(color: Colors.red)