Skip to content

Instantly share code, notes, and snippets.

@rishi-singh26
rishi-singh26 / main.dart
Created March 2, 2024 06:10
Implement a draggable and scrollable bottom sheet In flutter.
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
@rishi-singh26
rishi-singh26 / main.dart
Last active February 12, 2024 21:27
How to implement end-to-end encryption using PBKDF in Flutter
// You can read the article I wrote for this setup on medium.com at the link below
// https://medium.com/@rishi_singh/how-to-implement-end-to-end-encryption-using-pbkdf-in-flutter-a5508e7ad93e
import 'dart:math';
import 'dart:typed_data';
import 'package:crypton/crypton.dart';
import 'package:pointycastle/block/aes.dart';
import 'package:pointycastle/digests/sha256.dart';
import 'package:pointycastle/key_derivators/pbkdf2.dart';