This file contains hidden or 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:screen_brightness/screen_brightness.dart'; | |
class BrightnessHelper { | |
BrightnessHelper._(); | |
static Future<double> get currentBrightness async { | |
final double result = await ScreenBrightness().current; | |
return result; | |
} | |
static Future<void> setBrightness(double brightness) async { |
This file contains hidden or 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:developer'; | |
import 'dart:io'; | |
import 'package:firebase_core/firebase_core.dart'; | |
import 'package:firebase_messaging/firebase_messaging.dart'; | |
import 'package:get/get.dart'; | |
import '../routes/route_names.dart'; | |
import '../views/widgets/frame/frame_widget_controller.dart'; | |
import 'notification_service.dart'; |
This file contains hidden or 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:developer'; | |
import 'dart:io'; | |
import 'package:firebase_messaging/firebase_messaging.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | |
import 'package:flutter_native_timezone/flutter_native_timezone.dart'; | |
import 'package:get/get.dart'; | |
import 'package:timezone/data/latest_all.dart' as tz; |
This file contains hidden or 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:io'; | |
import 'package:file_picker/file_picker.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter_image_compress/flutter_image_compress.dart'; | |
import 'package:heic_to_jpg/heic_to_jpg.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
class FileService { | |
FileService._(); |
This file contains hidden or 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:developer'; | |
import 'dart:io'; | |
import 'dart:typed_data'; | |
import 'package:camera/camera.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_image_compress/flutter_image_compress.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
class CameraService { |
This file contains hidden or 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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
This file contains hidden or 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:convert'; | |
import 'dart:math'; | |
import 'dart:typed_data'; | |
/// Generates salts for hashing algorithms. | |
class Salt { | |
Salt._(); | |
/// Generates a random salt of [length] bytes from a cryptographically secure random number generator. | |
/// |
This file contains hidden or 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:convert'; | |
import 'dart:developer'; | |
import 'dart:typed_data'; | |
import 'package:cryptography/cryptography.dart'; | |
import 'package:encrypt/encrypt.dart'; | |
import 'package:hex/hex.dart'; | |
import 'salt.dart'; |