Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View demirdev's full-sized avatar

Mehmet Demir demirdev

View GitHub Profile
@demirdev
demirdev / nested_scroll_view_with_tabbarview_scroll_sync_issue.dart
Last active February 5, 2024 07:16
nested_scroll_view_with_tabbarview_scroll_sync_issue.dart
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'NestedScroll View with TabBarView',
home: PostsPage(),
@demirdev
demirdev / nested-scroll-tabbars.dart
Created January 23, 2024 15:17
nested-scroll-tabbars.dart
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@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';
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
cd metadata;
find . -iname "release_notes.txt" | while read line
do
cp "./en-US/release_notes.txt" $line
done
find . | rename 's/abc/xyz/g' *
import 'package:flutter/material.dart';
import 'package:flutter_dart_extensions/flutter_dart_extensions.dart';
class DoubleBackForExit extends StatelessWidget {
final Widget child;
DoubleBackForExit({Key? key, required this.child}) : super(key: key);
DateTime? latestBackTappedTime;
#!/bin/bash
simId=$(flutter devices|grep simulator|cut -d"•" -f2|tr " " "\0")
appDir="$HOME/Library/Developer/CoreSimulator/Devices/$simId/data/Containers/Data/Application"
#echo $appDir
appId=$(ls -alrt $appDir|tail -2|head -1)
mobileAppDir=$(echo $appId|rev|cut -d" " -f1|rev)
documentsDir="$appDir/$mobileAppDir/Documents"
lastFileName=$(ls -alrt $documentsDir|tail -2|head -2|rev|cut -d" " -f1|cut -d" " -f1|rev)
#echo $documentsDir
@demirdev
demirdev / gist:cb58e8d16235393d54437a8add565383
Created October 15, 2022 03:59
Smart Dhikrmatic - Privacy Policy
**Privacy Policy**
Mehmet Demir built the app as a Commercial or Free app. This SERVICE is provided by Mehmet Demir and is intended for use as is.
**Changes to This Privacy Policy**
I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.
This policy is effective as of 2022-08-25
@demirdev
demirdev / gist:b5e571dc1d663b8d163435ae29b80d9f
Created October 15, 2022 03:58
Smart Dhikrmatic Terms of EULA
Terms & Conditions
By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy, or modify the app, any part of the app, or our trademarks in any way. You’re not allowed to attempt to extract the source code of the app, and you also shouldn’t try to translate the app into other languages, or make derivative versions. The app itself, and all the trade marks, copyright, database rights and other intellectual property rights related to it, still belong to Mehmet Demir.
Mehmet Demir is committed to ensuring that the app is as useful and efficient as possible. For that reason, we reserve the right to make changes to the app or to charge for its services, at any time and for any reason. We will never charge you for the app or its services without making it very clear to you exactly what you’re paying for.
The smart dhikrmatic app stores and processes personal data that you have provided t