Skip to content

Instantly share code, notes, and snippets.

View Hiteshpatel10's full-sized avatar

Hitesh Patel Hiteshpatel10

View GitHub Profile
@Hiteshpatel10
Hiteshpatel10 / date_select_one.dart
Created February 27, 2024 17:14
The cupertinoCalenderDrawer function in Flutter displays a modal bottom sheet containing a Cupertino-style date picker. Users can select a date within a specified range, and the selected date is passed back via a callback function.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
// final dateFormat = DateFormat('dd-MM-yyyy');
typedef DateSelectionCallback = void Function(DateTime selectedDate);
Future<void> cupertinoCalenderDrawer({
required BuildContext context,
required DateTime? initialDate,
required DateSelectionCallback onSave,
@Hiteshpatel10
Hiteshpatel10 / marquee_one.dart
Created February 27, 2024 17:16
The Marquee widget in Flutter provides a scrolling display for a list of widgets, allowing continuous horizontal movement. It supports both predefined children and dynamic content generation using a builder pattern.
class Marquee extends StatefulWidget {
const Marquee({
Key? key,
required this.children,
this.offset = 40.0,
this.maxHeight = 40.0,
}) : itemBuilder = null,
itemCount = children.length,
super(key: key);
@Hiteshpatel10
Hiteshpatel10 / counting_text.dart
Last active March 6, 2024 07:50
The CountingText widget in Flutter displays an animated text that counts from a specified beginning value to an end value. It utilizes an animation controller with a customizable curve and duration to animate the counting effect. Text style and other text properties can also be customized.
class CountingText extends StatefulWidget {
const CountingText({
Key? key,
required this.begin,
required this.end,
this.precision = 0,
this.curve = Curves.decelerate,
this.duration = const Duration(milliseconds: 400),
this.style,
this.textAlign,
@Hiteshpatel10
Hiteshpatel10 / calendar_template_two.dart
Created May 21, 2024 16:12
Weekly calendart event tracker template
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
const Color primaryColor = Color(0xFF066AC9);
const Color vistaWhite = Color(0xFFFAF9F9);
const Color darkJungleGreen = Color(0xFF212121);
const Color heather = Color(0xFFBCC1CD);
const Color blueGrey = Color(0xFF64748B);
@Hiteshpatel10
Hiteshpatel10 / calendar_template_one.dart
Created May 21, 2024 16:14
A fully functional calendar ready to be used in your apps.
import 'package:flutter/material.dart';
class CalendarTemplateOne extends StatefulWidget {
const CalendarTemplateOne({Key? key}) : super(key: key);
@override
CalendarTemplateOneState createState() => CalendarTemplateOneState();
}
class CalendarTemplateOneState extends State<CalendarTemplateOne> {

Privacy Policy

1. Introduction

This Privacy Policy explains how [App Name] collects, uses, and protects your information when you use our mobile application. By using the app, you agree to the collection and use of information as described in this policy.

2. Information We Collect

We may collect the following types of information: