bluefireteam / dashbook

Development tools to help you building UI on Flutter
MIT License
392 stars 43 forks source link

fix: Bump colorpicker version #118

Closed luanpotter closed 4 months ago

luanpotter commented 4 months ago

Current version of colorpicker being resolved to 1.0.3 doesn't work anymore with any updated Flutter versions:

../../../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1045:47: Error: The getter
'bodyText2' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
 ('../../../../softwares/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
          width: (Theme.of(context).textTheme.bodyText2?.fontSize ?? 14) * 10,

This bumps the version to one that is definitely working. Tested with the example app.