Git Product home page Git Product logo

flutter_style's Introduction

flutter_style

flutter开发规范

命名规范

1. xxx.dart文件建议小写(e.g. address.dart),如果多单词,使用下划线分割(e.g. address_selector.dart)

2. dart内文件命名方式

2.1 大驼峰 AdressSeleor

2.2 私有方法前面加上下划线&&大驼峰 e.g. _Address

2.3 枚举 全部大写或者小写

e.g.

/*倒计时状态*/
enum CountDownType {
  START, //初始状态
  LOADING, //等待
  ING, //倒计时中
  END, //倒计时结束,待重新计时
  ERROR,//异常
}

OR

/*倒计时状态*/
enum CountDownType {
  start, //初始状态
  loading, //等待
  ing, //倒计时中
  end, //倒计时结束,待重新计时
  error,//异常
}

flutter_style's People

Contributors

9527001 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.