Skip to content

Instantly share code, notes, and snippets.

View mehmetext's full-sized avatar
👨‍💻
coding...

Mehmet mehmetext

👨‍💻
coding...
View GitHub Profile
export default function Accordion() {
return (
<div className="flex flex-col border border-blue-500 rounded-xl overflow-hidden">
<div className="bg-blue-500 text-white p-4 select-none cursor-pointer">
AccordionHeader
</div>
<div className="overflow-hidden transition-all duration-300">
<div className="p-4 bg-blue-50">
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti
@mehmetext
mehmetext / marker_generator.dart
Created February 27, 2023 23:38 — forked from itsJoKr/marker_generator.dart
Quick way to convert the widget to marker, not supposed to work with images. (null safety)
import 'package:flutter/material.dart';
import 'dart:typed_data';
import 'package:flutter/rendering.dart';
import 'dart:ui' as ui;
/// This just adds overlay and builds [_MarkerHelper] on that overlay.
/// [_MarkerHelper] does all the heavy work of creating and getting bitmaps
class MarkerGenerator {
final Function(List<Uint8List>) callback;
final List<Widget> markerWidgets;