Skip to content

Instantly share code, notes, and snippets.

View maheshj01's full-sized avatar
💭
Bring it on 🔥

Mahesh Jamdade maheshj01

💭
Bring it on 🔥
View GitHub Profile
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
Settings appSettings = Settings();
class MyApp extends StatelessWidget {
@override
@maheshj01
maheshj01 / filterChip.dart
Last active February 28, 2022 04:34
filter chip sample showing single and multiple chip select
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
static const String _title = 'Flutter Code Sample';
@override
@maheshj01
maheshj01 / android.md
Last active March 12, 2024 03:49
Native Android hacks

Table of Contents

  1. Install apk from Appbundle

  2. App not compatible for android 12 Issue

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver
with intent filter, but without the 'android:exported' property set. This file can't be installed
on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported
@maheshj01
maheshj01 / torch.md
Last active September 14, 2021 05:49
Torch Effect flutter
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
@maheshj01
maheshj01 / page.dart
Created August 26, 2021 09:25
pageview index not updating
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
{"version":1,"resource":"file:///Users/mahesh/Desktop/flutter3.0_bugdemo/android/build.gradle","entries":[{"id":"AMht.gradle","timestamp":1652781915419}]}
@maheshj01
maheshj01 / darkmode.dart
Last active March 29, 2024 13:55
Sample code showing dark mode transition similar to Telegram in flutter with circular transition. Blog Post: https://maheshmnj.medium.com/leveraging-clippaths-in-flutter-a5f34c795ae5
class DarkTransition extends StatefulWidget {
const DarkTransition(
{required this.childBuilder,
Key? key,
this.offset = Offset.zero,
this.themeController,
this.radius,
this.duration = const Duration(milliseconds: 400),
this.isDark = false})
: super(key: key);
@maheshj01
maheshj01 / multidirection.dart
Last active July 24, 2021 11:21
flutter multidirectional listview (tap,scrollXY,zoom)
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@maheshj01
maheshj01 / video_list.dart
Created June 22, 2021 07:24
The video feels laggy when trying to play multiple video from network and while 1st video is playing when tried to play second video the first video seems to be buffering.
void main() {
runApp(HomePage());
}
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
_HomePageState createState() => _HomePageState();
}