Skip to content

Instantly share code, notes, and snippets.

View Minsamin's full-sized avatar
🎯
Focusing

Samin Ali Mondal Minsamin

🎯
Focusing
View GitHub Profile
@Minsamin
Minsamin / modern_scroll_effect.dart
Last active July 4, 2024 05:04
Vertical tab scroll along with Page scroll
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class NewCategoryScreen extends StatefulWidget {
static const String routeName = "/new_category_screen";
const NewCategoryScreen({super.key});
@override
NewCategoryScreenState createState() => NewCategoryScreenState();
@Minsamin
Minsamin / main.dart
Created June 2, 2021 10:54 — forked from passsy/main.dart
wrap_content match_parent in Flutter
import 'package:flutter/material.dart';
Future<void> main() async {
runApp(Builder(
builder: (context) => const MyApp(),
));
}
class MyApp extends StatelessWidget {
const MyApp({
@Minsamin
Minsamin / PhonecallReceiver.java
Created May 4, 2021 04:29 — forked from ftvs/PhonecallReceiver.java
Detecting an incoming call coming to an Android device. Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. Usage example in comments. Source: Gabe Sechan http://stackoverflow.com/a/15564021/264619 Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8
package com.gabesechan.android.reusable.receivers;
import java.util.Date;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
public abstract class PhonecallReceiver extends BroadcastReceiver {
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],