Skip to content

Instantly share code, notes, and snippets.

View sbis04's full-sized avatar

Souvik Biswas sbis04

View GitHub Profile
// 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');
// Add the markers to the list
markers.add(startMarker);
markers.add(destinationMarker);
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@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);
@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());