Skip to content

Instantly share code, notes, and snippets.

View DattatreyaReddy's full-sized avatar
🎯
Focusing

Padya DattatreyaReddy

🎯
Focusing
View GitHub Profile
@DattatreyaReddy
DattatreyaReddy / dio_client.dart
Last active October 26, 2022 18:41
DIo Client is a wrapper around Dio to support decoder with Compute (Threads)
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'dio_error_util.dart';
typedef ResponseDecoderCallBack<DecoderType> = DecoderType Function(dynamic);
class DioClient {
final Dio dio;
DioClient(this.dio);
@DattatreyaReddy
DattatreyaReddy / shared_preferences_client.dart
Last active November 18, 2024 23:47
Riverpod state persistence with Shared Preference
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:shared_preferences/shared_preferences.dart';
import '../../../constants/db_keys.dart';
import '../../../controllers/common_controllers.dart';
import '../../extensions/custom_extensions.dart';
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.tabbyml.scheduler</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/tabby</string>
<string>scheduler</string>
update bom
set bomSourceType = JSON_ARRAY(bomSourceType);
alter table bom
modify bomSourceType json;
alter table contractManufacturing rename column processLinkedContract to productionWorkflowContract;
alter table batch
add column `reservedForEntityLineItemId` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL;