Tooltip auto-generated content is based on input placeholder content.
<input type='text' placeholder='Welcome home, World!'>
/// Open source multi-player dynamic (3-5) grid tic-tac-toe | |
/// https://github.com/KDCinfo/dev-play/tree/main/tictactoe | |
/// This is a **Work In Progress** | |
/// Just wanted to capture a snapshot of it. | |
/// Update 2024-06-02: | |
/// - Extracted out `runBotPlay` as a static method into its own abstract class. | |
/// - Only 'Rows' is done (albeit untested yet) | |
/// Update 2024-06-03: |
import 'dart:developer'; | |
import 'package:flutter/material.dart'; | |
/// To recreate: | |
/// | |
/// 1. Using any Flutter version merged after Mar 7, 2024, (e.g. v3.21), | |
/// build and run the provided code example on an iOS device or simulator. | |
/// 2. Tap the title in the AppBar. | |
/// |
import 'package:flutter/material.dart'; | |
import 'package:go_router/go_router.dart'; | |
import 'package:provider/provider.dart'; | |
/// Update: Swapped out bloc with provider. | |
void main() { | |
runApp(const MainApp()); | |
} |
import 'dart:convert'; | |
/// In this codelab, you simplify that more-realistic use case by | |
/// mocking incoming JSON data with a multi-line string in the documentJson variable. | |
/// | |
/// https://codelabs.developers.google.com/codelabs/dart-patterns-records#5 | |
/// | |
class Document { | |
final Map<String, Object?> _json; | |
Document() : _json = jsonDecode(documentJson); |
void main() { | |
/// I got the below working as a null safe approach used to | |
/// convert a `dynamic` List inside a Map, such as one received | |
/// and json.decoded from an API endpoint, into a List of `String`s. | |
/// | |
/// If anyone knows if anything is incorrect or can be done better, please comment. | |
/// Always looking to learn proper methodologies and better approaches. | |
/// Two scenarios: A key exists in a Map, or it doesn't (is null). | |
/// |
/// | |
/// Find differences between two Lists with Dart | Flutter | |
/// | |
/// DartPad: https://dartpad.dev/3b4d345e76d8c7dd3f0f571bdefcdfdb | |
/// | |
void main() { | |
List<double> _current = [1, 2, 3, 4, 7]; // [1,2,3,4, 7] | |
List<double> _new = [3, 5, 6, 7, 9, 10]; // [ 3, 5,6,7,9,10] |
import 'package:flutter/material.dart'; | |
/// Inspiration for how the DragTarget hovering works goes to: | |
/// Stack Overflow A: https://stackoverflow.com/a/53981607/638153 | |
/// Stack Overflow Q: https://stackoverflow.com/questions/53979586/flutter-dragtarget-on-hover | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 45); | |
void main() { | |
runApp(MyApp()); |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
void main() { runApp(MaterialApp(home: TestScreen())); } | |
class TestScreen extends StatelessWidget { | |
/// | |
/// Flutter Provider Scope for NotifyListeners() | |
/// | |
/// The following code shows that Provider only listens on its own ChangeNotifier updates. |
.expander { | |
display: flex; | |
} | |
.expander__container { | |
width: 100%; | |
} | |
.expander__content { | |
position: relative; | |
transition: all .3s ease; | |
max-height: 0; |