dart format

This commit is contained in:
Fabian Freund
2026-01-02 08:06:55 +01:00
parent 380d0da58c
commit 2a061e3f86
9 changed files with 40 additions and 21 deletions
@@ -449,7 +449,9 @@ class ViewTabGridWidget extends HookConsumerWidget {
),
child: FloatingActionButton.small(
onPressed: () async {
final settings = ref.read(generalSettingsWithDefaultsProvider);
final settings = ref.read(
generalSettingsWithDefaultsProvider,
);
await SearchRoute(
tabType:
@@ -418,7 +418,9 @@ class ViewTabListWidget extends HookConsumerWidget {
),
child: FloatingActionButton.small(
onPressed: () async {
final settings = ref.read(generalSettingsWithDefaultsProvider);
final settings = ref.read(
generalSettingsWithDefaultsProvider,
);
await SearchRoute(
tabType:
@@ -379,7 +379,8 @@ class TabViewHeader extends HookConsumerWidget {
);
if (result?.confirmed == true) {
final shouldReopenTabs = result!.reopenTabs;
final shouldReopenTabs =
result!.reopenTabs;
try {
final closedTabIds = await ref
@@ -415,7 +416,8 @@ class TabViewHeader extends HookConsumerWidget {
parentId = tabs
.firstWhereOrNull(
(old) =>
old.id == parentId,
old.id ==
parentId,
)
?.parentId;
}
@@ -169,7 +169,9 @@ class ContainerEditScreen extends HookConsumerWidget {
width: 24,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: ContainerColors.preview(selectedColor.value),
color: ContainerColors.preview(
selectedColor.value,
),
),
),
),
@@ -255,7 +255,10 @@ class _MaterialPickerState extends State<MaterialPicker> {
blurRadius: 10,
)
else
BoxShadow(color: displayColor, blurRadius: 10),
BoxShadow(
color: displayColor,
blurRadius: 10,
),
]
: null,
border:
@@ -277,7 +280,10 @@ class _MaterialPickerState extends State<MaterialPicker> {
Text(
' ${colors.values.first}',
style: TextStyle(
color: useWhiteForeground(displayColor)
color:
useWhiteForeground(
displayColor,
)
? Colors.white
: Colors.black,
),
@@ -289,7 +295,9 @@ class _MaterialPickerState extends State<MaterialPicker> {
'#${color.toString().replaceFirst('Color(0xff', '').replaceFirst(')', '').toUpperCase()} ',
style: TextStyle(
color:
useWhiteForeground(displayColor)
useWhiteForeground(
displayColor,
)
? Colors.white
: Colors.black,
fontWeight: FontWeight.bold,
@@ -314,7 +322,10 @@ class _MaterialPickerState extends State<MaterialPicker> {
child: Text(
colors.values.first,
style: TextStyle(
color: useWhiteForeground(displayColor)
color:
useWhiteForeground(
displayColor,
)
? Colors.white
: Colors.black,
fontWeight: FontWeight.bold,
@@ -57,10 +57,7 @@ class ContainerColors {
/// [baseColor] The stored container color (typically full opacity)
/// [surface] The surface color to blend with (typically from theme)
static Color forSurface(Color baseColor, Color surface) {
return Color.alphaBlend(
baseColor.withValues(alpha: defaultAlpha),
surface,
);
return Color.alphaBlend(baseColor.withValues(alpha: defaultAlpha), surface);
}
/// Returns the preview color showing how the color will appear in the UI.