Skip to content

Instantly share code, notes, and snippets.

View kururu-abdo's full-sized avatar
😍
Learning

kururu kururu-abdo

😍
Learning
View GitHub Profile
@kururu-abdo
kururu-abdo / main.dart
Created June 8, 2021 13:01 — forked from KiwiArch/main.dart
Flutter Custom Google Map Markers
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
void main() {
runApp(MyApp());
}
@kururu-abdo
kururu-abdo / MainScreen.dart
Created June 14, 2021 06:27 — forked from ambrizals/MainScreen.dart
Flutter firebase_messaging + flutter_local_notification
import 'package:flutter/material.dart';
import 'package:app_name/routes.dart';
class MainView extends StatefulWidget {
final GlobalKey<NavigatorState> navigatorKey;
MainView(this.navigatorKey);
@override
_MainViewState createState() => _MainViewState();
@kururu-abdo
kururu-abdo / rabbitmq_with_nodejs.md
Created July 11, 2021 08:00 — forked from petrkohut/rabbitmq_with_nodejs.md
Example of reading from RabbitMQ in Node.js

RabbitMQ with Node.js

Install and run RabbitMQ server

Download image

docker pull rabbitmq:management

Run server with web management

@kururu-abdo
kururu-abdo / custom_info_window.dart
Created August 10, 2021 23:03 — forked from abhishekduhoon/custom_info_window.dart
Widget based Custom Info Window for Google Maps in Flutter
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:provider/provider.dart';
import 'package:clippy_flutter/clippy_flutter.dart';
void main() {
runApp(
ChangeNotifierProvider(
@kururu-abdo
kururu-abdo / location.provider.dart
Created August 29, 2021 19:33 — forked from mskasal/location.provider.dart
Location provider for flutter projects, Riverpod, Location
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:location/location.dart';
class PersonLocationProvider extends ChangeNotifier {
Location _location = new Location();
PermissionStatus _permissionGranted;
StreamController<LocationData> currentLocation = StreamController.broadcast();
private fun createNativeView(handle: Long) {
FlutterMain.ensureInitializationComplete(this, arrayOf())
val nativeView = FlutterNativeView(this, true)
val callback = FlutterCallbackInformation.lookupCallbackInformation(handle)
nativeView.runFromBundle(FlutterRunArguments().apply {
bundlePath = FlutterMain.findAppBundlePath(this@Service)
libraryPath = callback.callbackLibraryPath
entrypoint = callback.callbackName
@kururu-abdo
kururu-abdo / MainActivity.kt
Created January 25, 2022 07:09 — forked from sergicastellsague/MainActivity.kt
Belongs to medium article
class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
GeneratedPluginRegistrant.registerWith(this)
MethodChannel(flutterView, "android_app_retain").apply {
setMethodCallHandler { method, result ->
if (method.method == "sendToBackground") {
moveTaskToBack(true)
}
@kururu-abdo
kururu-abdo / main_screen.dart
Created January 25, 2022 07:09 — forked from sergicastellsague/main_screen.dart
Belongs to medium article
class MainScreen extends StatefulWidget {
State createState() => MainScreenState();
}
class MainScreenState extends State<MainScreen> {
var _androidAppRetain = MethodChannel("android_app_retain");
@override
void initState() {
super.initState();
@kururu-abdo
kururu-abdo / main.dart
Created February 9, 2022 11:24 — forked from eduardoflorence/main.dart
GetX - Sample Translation with GetStorage, GetxService, DropDownButton and PopMenuButton
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get_storage/get_storage.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await initialConfig();
final storage = Get.find<StorageService>();
@kururu-abdo
kururu-abdo / gist:a721c3b5eddb60b9c81a288c0a5b97cb
Created August 10, 2022 14:31 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.