Skip to content

Instantly share code, notes, and snippets.

View sbis04's full-sized avatar

Souvik Biswas sbis04

View GitHub Profile
@sbis04
sbis04 / main.dart
Last active February 14, 2023 06:08
Love Finder
import 'dart:math';
import 'package:flutter/material.dart';
const _kRadarSize = 400.0;
const _kRadarBorderSize = 50.0;
const _kRadarInnerCircleSpacing = 80.0;
const _kRadarInnerCircleSpacingStart = 86.0;
void main() => runApp(const MyApp());
@sbis04
sbis04 / main.dart
Last active February 7, 2022 12:47
Dash painter
// Created by: Souvik Biswas
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
// Add the markers to the list
markers.add(startMarker);
markers.add(destinationMarker);
// Method for retrieving the current location
_getCurrentLocation() async {
await _geolocator
.getCurrentPosition(desiredAccuracy: LocationAccuracy.high)
.then((Position position) async {
setState(() {
// Store the position in the variable
_currentPosition = position;
print('CURRENT POS: $_currentPosition');
@sbis04
sbis04 / main.dart
Last active October 27, 2022 13:04
Point Tracking Visualizer
import 'dart:ui';
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@sbis04
sbis04 / main.dart
Created April 23, 2020 05:10
Animate Polygons
import 'dart:ui';
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@sbis04
sbis04 / main.dart
Created April 23, 2020 05:05
Flutter Custom Painter Polygons
import 'dart:ui';
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@sbis04
sbis04 / main.dart
Last active March 6, 2020 10:22
Flutter Custom Painter Line Coding
import 'package:flutter/material.dart';
String textString = "";
bool isValid = false;
typedef TextCallback = void Function(String textStr, bool valid);
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@sbis04
sbis04 / settings.gradle
Created November 28, 2019 04:22
flutter module 2
include ':app'
setBinding(new Binding([gradle:this]))
evaluate(new File(
settingsDir.parentFile,
'name_of_module/.android/include_flutter.groovy'
))