Skip to content

Instantly share code, notes, and snippets.

View udit-raj-simform's full-sized avatar
💭
Working from office

Udit Raj udit-raj-simform

💭
Working from office
View GitHub Profile
@udit-raj-simform
udit-raj-simform / navigator.middleware.dart
Created May 24, 2023 07:57
NavigatorMiddleware with RouteObserver
import 'package:lms_flutter_project/utils/exports.dart';
typedef OnRouteChange<R extends Route<dynamic>> = void Function(
R route, R previousRoute);
class NavigatorMiddleware<R extends Route<dynamic>> extends RouteObserver<R> {
NavigatorMiddleware({
this.enableLogger = true,
this.onPush,
this.onPop,
@udit-raj-simform
udit-raj-simform / main.dart
Created April 19, 2023 03:39
windy-snow-5921
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
}
@udit-raj-simform
udit-raj-simform / Disc animation
Created February 27, 2023 07:21
Disc animation.dart
import 'dart:math';
import 'package:flutter/material.dart';
class DiscData {
static final _rng = Random();
final double size;
final Color color;
final Alignment alignment;
@udit-raj-simform
udit-raj-simform / index.html
Created February 17, 2023 08:00
js memory game
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🧠 Memory Game in JavaScript</title>
<link rel="stylesheet" href="assets/styles.css" />
<script src="assets/game.js" defer></script>