Flutter-Neumorphic icon indicating copy to clipboard operation
Flutter-Neumorphic copied to clipboard

fix: replace deprecated `bodyText2` with `bodyMedium` (#287)

Open suojae opened this issue 1 year ago • 1 comments

This update addresses compatibility issues with Flutter 3.0+ by replacing deprecated bodyText2 references in the TextTheme with bodyMedium.

Key Changes

  • Updated all instances of bodyText2 in the codebase to bodyMedium as per the latest Flutter API.
  • Ensured compatibility with Flutter 3.0+ where bodyText2 is no longer supported.

Why this change is necessary

Flutter 3.0+ has deprecated and removed several TextTheme properties such as bodyText2, causing build failures in the flutter_neumorphic package. Updating to the newer bodyMedium resolves these issues and ensures the package remains functional for all users.

Fixes #287 .

suojae avatar Dec 06 '24 07:12 suojae

please merge this

shafir-k avatar Jun 29 '25 17:06 shafir-k