Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

tazkrtak/alpha-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tazkrtak Client

This app is currently under development.

Coding guidelines

1. Naming Conventions

Item Case & Naming
Files & Packages lowercase_with_underscores
Import Prefixes lowercase_with_underscores
Classes & Enums UpperCamelCase
Typedefs & Type Parameters UpperCamelCase
Other Identifiers lowerCamelCase
Constants SCREAMING_CAPS

2. Imports Ordering

Order your imports in the following order, separated with a blank line and sorted alphabetically within each section:

  1. dart: imports.
  2. package: imports.
  3. Relative imports.
import 'dart:async';
import 'dart:html';

import 'package:bar/bar.dart';
import 'package:foo/foo.dart';

import 'util.dart';

3. Programming Practices

3.1. Never Use new Keyword

The new keyword is optional in dart, so just don't use it.

var x = new Foo();   // bad
var y = Foo();       // good

3.2. Always Use Relative Imports

import 'package:tazkrtak/util/foo.dart';   // bad
import '../util/foo.dart';                 // good

4. Formatting

4.1. Always Use Trailing Commas

Using trailing commas helps the automatic formatter to insert an appropriate amount of line breaks for Flutter-style code.

// bad
ButtonTheme(height: 56, child: Text('foo', style: TextStyle(fontSize: 20)));
                                                                        ^^^
// good
ButtonTheme(
  height: 56,
  child: Text(
    'foo',
    style: TextStyle(
      fontSize: 20,
    ),            ^
  ), ^
); ^

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages