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
/// https://docs.flutter.dev/cookbook/effects/typing-indicator | |
import 'dart:math'; | |
import 'package:core/design_system.dart'; | |
class TypingIndicator extends StatefulWidget { | |
const TypingIndicator({super.key}); | |
@override | |
State<TypingIndicator> createState() => _TypingIndicatorState(); |
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
// Parent with a child & grand child | |
class ParentWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return ChildWidget( | |
child: GrandChildWidget(), | |
); | |
} | |
} |
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:async' as async; | |
import 'dart:math' as math; | |
import 'dart:ui' as ui; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() => runApp( |
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'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.densa.KeyRemapping</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/hidutil</string> | |
<string>property</string> |
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
function getMapBounds(region) { | |
var b = {}; | |
b.northWest = {}; b.northEast = {}; | |
b.southWest = {}; b.southEast = {}; | |
b.northWest.lat = parseFloat(region.latitude) + | |
parseFloat(region.latitudeDelta) / 2.0; | |
b.northWest.lng = parseFloat(region.longitude) - | |
parseFloat(region.longitudeDelta) / 2.0; |
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
function getMapBounds(region) { | |
var b = {}; | |
b.northWest = {}; b.northEast = {}; | |
b.southWest = {}; b.southEast = {}; | |
b.northWest.lat = parseFloat(region.latitude) + | |
parseFloat(region.latitudeDelta) / 2.0; | |
b.northWest.lng = parseFloat(region.longitude) - | |
parseFloat(region.longitudeDelta) / 2.0; |
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
Starting with Android 9.0 (API level 28), cleartext support is disabled by default. we can use android:usesCleartextTraffic="true" this will work but this is not recommended solution. For Permanent and recommended Solution is | |
Step 1 : create a file in android folder app/src/debug/res/xml/network_security_config.xml | |
Step 2 : add this <?xml version="1.0" encoding="utf-8"?> | |
<network-security-config> | |
<!-- deny cleartext traffic for React Native packager ips in release --> | |
<domain-config cleartextTrafficPermitted="true"> | |
<domain includeSubdomains="true">localhost</domain> |
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
launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true |
NewerOlder