-
Notifications
You must be signed in to change notification settings - Fork 9
Coding Standards Document
Farai edited this page Jun 6, 2022
·
2 revisions
The following document will explore the various standards and practices that are meant to be followed by the CapsOn team whilst developing the TutorMe application. We will use Prettier with a .prettierrc file to standardize everybody’s environment. This will be enforced using the Prettier extension for VSCode, which will be the IDE of choice for the team
const nameToEdit = " Carol Timith"; ✔️ const temp = " Carol Timith";❌
Tutee tutee = Tutee();✔️ Tutee tt = Tutee();❌
final screenHeightSize = MediaQuery.of(context).size.height; SizedBox(height: screenHeightSize),
void search(String search) {
class TutorProfilePageView extends StatefulWidget {}
- Use snake_case for ALL file names
- All controllers, services and configuration files should each be in their own standalone files.
- Use TAB for indentation. NEVER USE SPACES
- Tab size will be set to 2
- Methods with 4 or more parameters should have each parameter in its own line
builder: (BuildContext context) => TutorProfilePageView(
person: tutorList[i].getFirstName,
bio: tutorList[i].getBio,
age: tutorList[i].getAge.toString(),
location: tutorList[i].getLocation,
gender: tutorList[i].getInstitution)
- All our apps color themes will all be stored in in one “colorpallete.dart” file for ease of change of theme.
CapsOn