Skip to content

Instantly share code, notes, and snippets.

View Hiteshpatel10's full-sized avatar

Hitesh Patel Hiteshpatel10

View GitHub Profile
@Hiteshpatel10
Hiteshpatel10 / social_login_one.dart
Created February 27, 2024 17:03
The SocialLoginOneView Dart class represents a stateless widget for displaying a screen with multiple social login options. It includes buttons for Google, Facebook, GitHub, WhatsApp, and LinkedIn, each accompanied by their respective logos
// Oauth svg
// http://tinyurl.com/social-login-one-assets
class SocialLoginOneView extends StatelessWidget {
const SocialLoginOneView({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Padding(
@Hiteshpatel10
Hiteshpatel10 / blue_container_one.dart
Created February 27, 2024 16:54
# BlurContainer Widget A reusable Flutter widget that wraps its child with a blurred container. It provides customizable properties such as blur level, elevation, padding, color, and border radius, allowing for flexible usage in creating visually appealing UI elements. ### Features: - Applies a blur effect to its child within a container. - Adju…
import 'dart:ui';
import 'package:flutter/material.dart';
class BlurContainer extends StatelessWidget {
final Widget child;
final double? height;
final double? width;
final double elevation;
final double blur;
@Hiteshpatel10
Hiteshpatel10 / snackbar_one.dart
Last active April 30, 2024 18:01
This Flutter component provides a customizable snackbar widget for displaying messages with different types such as success, error, warning, or information. It allows developers to easily show informative messages to users with configurable colors, icons, and durations. The snackbar is designed with a floating behavior, rounded corners, and supp…
import 'package:flutter/material.dart';
enum SnackbarOneType {
success,
error,
warning,
information,
}
snackbarOne({
@Hiteshpatel10
Hiteshpatel10 / onboard_one.dart
Created February 27, 2024 16:47
Flutter code for a basic onboarding UI with illustrations, titles, and subtitles. It includes a PageView for navigation, an AnimatedPageIndicator to track progress, and an ElevatedButton for interaction. Data for each onboarding page is stored in onboardingData
import 'package:flutter/material.dart';
class OnboardingOneView extends StatefulWidget {
const OnboardingOneView({super.key});
@override
State<OnboardingOneView> createState() => _OnboardingOneViewState();
}
class _OnboardingOneViewState extends State<OnboardingOneView> {
@Hiteshpatel10
Hiteshpatel10 / DropdownList
Last active November 28, 2021 15:59
This is how you can make a dropdown list in compose
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowDropDown
import androidx.compose.material.icons.filled.ArrowDropUp
import androidx.compose.runtime.*