This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |