Skip to content

Instantly share code, notes, and snippets.

View zddarova's full-sized avatar

andrii zddarova

View GitHub Profile
class AddMemoryRequest {
final String title;
final String? description;
final DateTime date;
}
class MemoryModel {
final String muid;
final String title;
@zddarova
zddarova / analysis_options.yaml
Created May 31, 2023 09:46
Flutter linter settings
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
@zddarova
zddarova / flutter_basic_architecture.excalidraw
Last active June 11, 2025 22:49
basic arch of flutter app
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [
{
"id": "JCn5cWqDzLlde0SmCe_zR",
"type": "rectangle",
"x": 424.53379623062995,
"y": 66.38394918455538,
@zddarova
zddarova / service_locator.dart
Last active May 26, 2023 14:36
Example why do we need service locators
const serviceLocator = <String, dynamic>{};
/// single place when we are setting up our dependancies
void setupServiceLocator() {
// could change service implementation here and it will be used in whole program
serviceLocator['CatFactService'] = CatFactServiceImpl();
}
void main() {
// setting up service locator at the start of the app