Skip to content

Instantly share code, notes, and snippets.

View nehal076's full-sized avatar
🎯
Focusing

Nehal Jaisalmeria nehal076

🎯
Focusing
View GitHub Profile
@nehal076
nehal076 / main.dart
Last active November 9, 2023 10:23
Flutterista Generate - Nehal
/*
Flutter Generative Art Pattern
This Flutter application generates a mesmerizing generative art pattern.
The pattern consists of randomly colored and positioned circular elements
arranged in a grid. Tapping on the screen triggers a refresh, creating a new
arrangement of elements with different colors and positions.
The code uses Flutter's InkWell, AnimatedContainer, and BackdropFilter to
create a visually appealing and dynamic generative art experience.
import 'package:flutter/material.dart';
void main() {
runApp(
const MaterialApp(
home: Nav(),
),
);
}
import 'package:shared_preferences/shared_preferences.dart';
class SharedPrefs {
static final SharedPrefs _instance = SharedPrefs._ctor();
factory SharedPrefs() {
return _instance;
}
@nehal076
nehal076 / account_screen.dart
Created October 31, 2021 16:50
Profile Image Padding Fixed
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@nehal076
nehal076 / account_screen.dart
Last active October 30, 2021 11:58
Profile Image Padding
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override