This file contains 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
class Widget extends StatelessWidget { | |
final GlobalKey<ScaffoldState> _drawerKey = GlobalKey(); | |
void _openDrawer () { | |
_drawerKey.currentState.openDrawer(); | |
} | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( |
This file contains 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
@use "sass:color"; | |
@use "sass:math"; | |
@use "sass:map"; | |
@use "theme"; | |
@function generate_color_shades($base_color, $color_name) { | |
$colors: (); | |
$base_lightness: math.ceil(color.lightness($base_color)); | |
OlderNewer