Skip to content

Instantly share code, notes, and snippets.

View shahmirzali49's full-sized avatar
🎯
Focusing

Shahmirzali shahmirzali49

🎯
Focusing
View GitHub Profile
@tmaihoff
tmaihoff / bottom_sheet_fix.dart
Last active May 14, 2026 08:14
Fix: Can't swipe to dismiss scrollable Bottom Sheet #36283
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
const Duration _bottomSheetEnterDuration = Duration(milliseconds: 250);
const Duration _bottomSheetExitDuration = Duration(milliseconds: 200);
@demirdev
demirdev / gist:d62a4b75a217cf463ba8d4190f2294e6
Created October 17, 2023 15:37
quran_translations.dart
library quran_translations;
import 'dart:convert';
import 'dart:io';
import 'package:quran_translations/data/translations_from_github.dart';
import 'package:quran_translations/db/quran_translations_db.dart';
import 'package:quran_translations/model/translation.dart';
import 'package:quran_translations/model/translator.dart';