For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| 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; |
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
| import android.annotation.SuppressLint | |
| import android.app.Activity | |
| import android.app.AlertDialog | |
| import android.content.Context | |
| import android.support.annotation.StringRes | |
| import android.support.v4.app.Fragment | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.widget.Button | |
| import android.widget.TextView |
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
| package com.test.objectbox.models | |
| import io.objectbox.annotation.Convert | |
| import io.objectbox.annotation.Entity | |
| import io.objectbox.annotation.Id | |
| @Entity data class Article( | |
| @Id var id: Long = 0, | |
| @Convert(converter = StringListConverter::class, dbType = String::class) | |
| var strings: List<String>? = null, |