Remove yaru dep
This commit is contained in:
parent
a15fae89eb
commit
26a2bd3f5e
21 changed files with 291 additions and 311 deletions
|
@ -20,3 +20,15 @@ extension Capitalize on String {
|
|||
String toCapitalized() =>
|
||||
length > 0 ? "${this[0].toUpperCase()}${substring(1).toLowerCase()}" : "";
|
||||
}
|
||||
|
||||
extension GetTheme on ThemeData {
|
||||
ThemeData tweaked() => copyWith(
|
||||
textTheme: (brightness == Brightness.light
|
||||
? ThemeData.light()
|
||||
: ThemeData.dark())
|
||||
.textTheme,
|
||||
navigationRailTheme: NavigationRailThemeData(
|
||||
backgroundColor: Colors.transparent,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Reference in a new issue