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 'package:flutter/services.dart'; | |
| /// Flutter code sample for [MenuAnchor]. | |
| void main() => runApp(const MenuApp()); | |
| class MenuApp extends StatelessWidget { | |
| const MenuApp({super.key}); |
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/foundation.dart'; | |
| import 'package:flutter/painting.dart'; | |
| extension ColorWithHSL on Color { | |
| HSLColor get hsl => HSLColor.fromColor(this); | |
| /// Returns a copy of this color with the [hue] parameter replaced with | |
| /// the given value. | |
| /// | |
| /// [saturation] should be between `0.0` and `1.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
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const PageTransitionDemo()); | |
| } | |
| /// Demonstrates how to show a widget after a page is finished transitioning | |
| class PageTransitionDemo extends StatelessWidget { | |
| const PageTransitionDemo({super.key}); |
NewerOlder