You don't need a plugin or the Google API, you can add it as a XYZ tile layer.
Streets
googleStreets = L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',{ maxZoom: 20, subdomains:['mt0','mt1','mt2','mt3'] });
This file contains hidden or 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
FutureBuilder( | |
future: getImageBase64(), | |
initialData: ObjectClass, // puede ser String | |
builder: (BuildContext context, AsyncSnapshot<GeneraQRModel> snapshot) { | |
if (snapshot.hasData) { | |
final data = snapshot.data!; | |
if (snapshot.connectionState == ConnectionState.done) { | |
String uri = 'data:image/png;base64,${data!['imageBase64']}'; |
OlderNewer