Skip to content

Instantly share code, notes, and snippets.

View om-chauhan's full-sized avatar
:dependabot:
coding

Omprakash Chauhan om-chauhan

:dependabot:
coding
View GitHub Profile
@om-chauhan
om-chauhan / overlay_with_hole.dart
Created September 14, 2023 16:14 — forked from flutter-clutter/overlay_with_hole.dart
Flutter overlay with a hole
import 'package:flutter/material.dart';
class OverlayWithHole extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Flutterclutter: Holes")),
body: _getExperimentOne()
);
}
@om-chauhan
om-chauhan / file-upload-flutter-web.md
Last active July 12, 2023 16:21
any types of file upload on firebase in flutter

1. Package Used

universal_html: ^2.0.8
file_picker: ^4.2.1
firebase_storage: ^10.2.17
firebase_core: ^1.17.1
uuid: ^3.0.7
@om-chauhan
om-chauhan / Create Flutter Package and Publish to the Pub.dev Beginner Friendly Steps.md
Last active June 9, 2022 16:35
Create Flutter Package and Publish to the Pub.dev Beginner Friendly Steps

1. Create flutter package

flutter create --template=package package_name

2. Add/Edit following details in pubspec.yaml (of package)

// First Screen
import 'package:flutter/material.dart';
import 'package:garment_ecommerce/secon_screen.dart';
class FirstScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: TextButton(
[
{
"title": "UI Interactions of the week",
"featureImage": "https://static-cse.canva.com/blob/138631/best-free-stock-photos.jpg",
"date": "12 Feb 2019",
"tag": "Express, Handlebars",
"codeURL": "codeUrl",
"shortPostData": "Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.",
"longPostData": "Description: Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.",
"screenshot": [
[
{
"id": 1,
"scheme_Img": "Images",
"scheme_Name": "Atmanirbhar Bharat Abhiyan COVID 19 Relief Package",
"updateted_at": "15 Mar - 21",
"scheme_Details": "The COVID-19 pandemic has adversely affected the Indian economy and society in varied ways. In this article, you can read the details of the Atmanirbhar Bharat Abhiyan – which is the name given to the full-fledged economic stimulus package announced by the Union Government. This comes under the economy, polity, disaster management, and current affairs segments of the UPSC syllabus.\nDo you know? Atmanirbhar Bharat Abhiyan was highlighted on India’s 72nd Republic Day (2021). Department of Biotechnology showcased COVID-19 vaccine development process in their tableau.\nhe government had initially announced the Pradhan Mantri Garib Kalyan Yojana (PMGKY) as interim measures for those affected by the COVID-19 pandemic."
},
{