Skip to content

Instantly share code, notes, and snippets.

View srix55's full-sized avatar
🎯
Focusing

Srikanth Venkatesh srix55

🎯
Focusing
  • Bangalore, India
View GitHub Profile
@srix55
srix55 / min_width_issue.dart
Created May 20, 2021 15:58
Issue in setting minimum width for a container in flutter
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
@srix55
srix55 / DoubleClickListener.java
Last active October 16, 2023 11:43
Simple double-click listener that can be used like the way OnClickListener is used on a view in Android
import android.os.SystemClock;
import android.view.View;
import android.view.View.OnClickListener;
/**
* A simple double-click listener
* Usage:
* // Scenario 1: Setting double click listener for myView
* myView.setOnClickListener(new DoubleClickListener() {
*