注释

1. 将 init 操作与 main 函数拆散,使其更加清晰

2. 你能够简略地治理这样的 GetX 路由,而不须要任何麻烦

  • 用法
Get.toNamed(Routes.login);
  • 怎么做

3. 你也能够在一个中央治理你的款式格调

  • 用法
// S stands for StylesS.colors.redS.textStyles.f10MediumS.shadows.softShadow
  • 怎么做

4. 像 boss 一样治理你的资源

  • 用法
// R stands for Resources// AnimationsR.anims.loading// SVG imagesR.icons.logo// `magesR.images.
  • 怎么做

5. 集中管理你的常量

  • 用法
// C stands for ConstantsC.titleC.namesC.descp
  • 怎么做

6. 建设你的工具类 utils,咱们在一个中央应用所有的工夫

  • 用法
Utils.formatDate(date,locale);Utils.formatters.onlyTwoDecimalDigits;Utils.show.dialog();
  • 怎么做


© 猫哥

  • https://ducafecat.tech/
  • https://github.com/ducafecat
  • 微信群 ducafecat
  • b 站 https://space.bilibili.com/40...