Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Learning

Dhruv Nakum red-star25

🎯
Learning
View GitHub Profile
View PaytmConfig.dart
import 'dart:convert';
import 'package:flutter/services.dart';
import 'package:http/http.dart' as http;
import 'package:paytm_allinonesdk/paytm_allinonesdk.dart';
class PaytmConfig {
final String _mid = "VsisMx22532282245367";
final String _mKey = "PwqO#0I0lNM%tFwl";
final String _website = "DEFAULT";
View FlutterScreenUtil.dart
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
void main() => runApp(
MyApp(),
);
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
View FruitForm.js
import React from "react";
function FruitForm() {
return (
<section class="max-w-4xl p-6 mx-auto bg-white rounded-md shadow-md dark:bg-gray-800">
<form>
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2">
<div>
<label class="text-gray-700 dark:text-gray-200" for="username">
Fruit Name
View StaggeredAnimationUI.dart
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
View AnimatedContainerUI.dart
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Image.asset(
"assets/images/area.jpg",
fit: BoxFit.cover,
height: double.infinity,
width: double.infinity,
View AnimationController.dart
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
late AnimationController _controller;
@override
View AnimationControllerUI.dart
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
@override
Widget build(BuildContext context) {
View AnimatedAlignSwipe.dart
class _MyHomePageState extends State<MyHomePage> {
bool animatePosition = false;
Alignment currentAlignment = Alignment.topLeft;
Alignment resultAlignment = Alignment.topLeft;
int sensitivity = 8;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
color: Colors.blueGrey,
View AnimatedAlign.dart
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
bool animatePosition = false;
Alignment currentAlignment = Alignment.topLeft;
View .eslintrc.json
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"settings": {
"react": {
"version": "detect"
}