The original

Itnext. IO / 5 – flutter – t…

The body of the

1. Separate the init operation from the main function to make it clearer

2. You can simply manage such a GetX route without any hassle

  • usage
Get.toNamed(Routes.login);
Copy the code
  • How to do

3. You can also manage your style in one place

  • usage
// S stands for Styles

S.colors.red
S.textStyles.f10Medium
S.shadows.softShadow
Copy the code
  • How to do

Manage your resources like a boss

  • usage
// R stands for Resources// Animations

R.anims.loading// SVG images
R.icons.logo// `mages
R.images.
Copy the code
  • How to do

5. Centrally manage your constants

  • usage
// C stands for Constants

C.title
C.names
C.descp
Copy the code
  • How to do

6. Build your utility class utils that we use all the time in one place

  • usage
Utils.formatDate(date,locale);

Utils.formatters.onlyTwoDecimalDigits;

Utils.show.dialog();
Copy the code
  • How to do


The elder brother of the © cat

  • ducafecat.tech/

  • github.com/ducafecat

  • Ducafecat WeChat group

  • B station space.bilibili.com/404904528