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
| 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
| <?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
| 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
| 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
| // 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
| /// 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
| // Method 3: Smart auto-layout widget with configuration | |
| class ButtonConfig { | |
| final String text; | |
| final VoidCallback? onPressed; | |
| final ButtonStyle? style; | |
| ButtonConfig({ | |
| required this.text, | |
| this.onPressed, | |
| this.style, |
OlderNewer