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 'dart:math'; | |
import 'dart:ui' as ui; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
/// The radius of the mag glass. | |
const double _RADIUS = 60.0; | |
/// The distance the mag glass will be offset from the touch point. | |
const double _OFFSET = _RADIUS * 1.5; |
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
private fun launchIntents(context: Context) { | |
val whatsappIntent = getWhatsappIntent(context) | |
val telegramIntent = getTelegramIntent(context) | |
val intents = listOfNotNull(whatsappIntent, telegramIntent) | |
val globalIntent = Intent() | |
val chooserIntent = Intent.createChooser(globalIntent, "Send message") | |
.putExtra(Intent.EXTRA_INITIAL_INTENTS, intents.toTypedArray()) |
OlderNewer