This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:vue/essential" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: package:pedantic/analysis_options.yaml | |
linter: | |
rules: | |
- always_declare_return_types | |
- always_put_control_body_on_new_line | |
- always_put_required_named_parameters_first | |
- always_require_non_null_named_parameters | |
# - always_specify_types | |
- annotate_overrides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BasePrefs { | |
Future<void> initialise(); | |
//Getters | |
bool getBool(String key); | |
int getInt(String key); | |
double getDouble(String key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BasePrefs { | |
Future<void> initialise(); | |
//Getters | |
bool getBool(String key); | |
int getInt(String key); | |
double getDouble(String key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:intl/intl.dart'; | |
import 'package:meta/meta.dart'; | |
void main() { | |
print(DateUtils.formatISOTime(DateTime.now())); | |
print(DateUtils.getCurrentISOTimeString()); | |
} | |
class DateUtils { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-container fluid> | |
<v-card outlined> | |
<v-container class="py-8"> | |
<div class="d-flex justify-center mb-4"> | |
<v-icon size="40">mdi-emoticon-sad-outline</v-icon> | |
</div> | |
<p class="title text-center my-0 py-0 grey--text text--darken-3">Oops! Something totally went wrong</p> | |
<p class="subtitle-1 red--text text-center my-0 py-0">{{error}}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:connectit_app/data/local/prefs/prefs_helper.dart'; | |
import 'package:connectit_app/data/model/result.dart'; | |
import 'package:connectit_app/data/model/user.dart'; | |
import 'package:connectit_app/data/repo/user/google_login_repository.dart'; | |
import 'package:connectit_app/di/injector.dart'; | |
import 'package:connectit_app/utils/log_utils.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/cupertino.dart'; | |
/// [LoggingInterceptor] is used to print logs during network requests. | |
/// It's better to add [LoggingInterceptor] to the tail of the interceptor queue, | |
/// otherwise the changes made in the interceptor behind A will not be printed out. | |
/// This is because the execution of interceptors is in the order of addition. | |
class LoggingInterceptor extends Interceptor { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Test, Build, Release Demo app to Azure Storgae | |
# name: Test, Build and Release apk | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:workozy_app/widgets/helper/stream_error_widget.dart'; | |
import 'package:workozy_app/widgets/helper/stream_loading_widget.dart'; | |
typedef OnData<T> = Widget Function(T data); | |
typedef OnError = Widget Function(dynamic e); | |
typedef OnLoading = Widget Function(); | |
class MyStreamBuilder<T> extends StatelessWidget { | |
MyStreamBuilder({ |
OlderNewer