Skip to content

Commit

Permalink
minor changes and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Pebkac03 committed Jun 23, 2024
1 parent a36105d commit d893db4
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 52 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"name": "espanso_gui (debug mode)",
"request": "launch",
"type": "dart",
"flutterMode": "debug"
},
{
"name": "espanso_gui (profile mode)",
Expand Down
12 changes: 0 additions & 12 deletions lib/ui/views/espanso/espanso_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ class EspansoView extends StackedView<EspansoViewModel> {
final double tableWidth = max(screenSize * (2 / 3), minWidth * (2 / 3));
final double spacingWidth = max(screenSize * (1 / 6), minWidth * (1 / 6));

/*
final List<Widget> titles = viewModel.titles
.map((e) => Padding(
padding: const EdgeInsets.all(8.0),
child: Tab(
child:
Text(e, style: Theme.of(context).textTheme.headlineSmall),
),
))
.toList();
*/

final List<Widget> widgets =
viewModel.categories.map((e) => MatchesTable2(file: e)).toList();
return Scaffold(
Expand Down
35 changes: 0 additions & 35 deletions lib/ui/widgets/matches_table2/matches_table2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,6 @@ class MatchesTable2 extends StackedView<MatchesTable2Model> {
}).toList();
}

/*
List<Widget> _getRows() {
return [
MatchesTable2MenuRow(
rowHeight: rowHeight,
cellPadding: cellPadding,
borderColor: offColor,
borderWidth: borderWidth,
textStyle: textStyle?.copyWith(fontWeight: FontWeight.bold),
),
MatchesTable2Row(
offWidth: borderWidth,
rowHeight: rowHeight,
onColor: onColor,
offColor: offColor,
textStyle: textStyle,
),
MatchesTable2Row(
offWidth: borderWidth,
rowHeight: rowHeight,
onColor: onColor,
offColor: offColor,
textStyle: textStyle,
)
];
[].map(
(e) {
return const Row(
children: [],
);
},
).toList();
}
*/

return ListView(
children: [
MatchesTable2MenuRow(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class MatchesTable2MenuRow extends StackedView<MatchesTable2MenuRowModel> {
height: rowHeight,
padding: EdgeInsets.symmetric(horizontal: cellPadding, vertical: 0),
decoration: BoxDecoration(
color: Colors.yellow,
border: Border.all(width: borderWidth, color: borderColor)),
child: Text(
text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class CheckboxField extends StackedView<CheckboxFieldModel> {
height: rowHeight,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Colors.yellow,
border: Border.all(
width: viewModel.showFocus ? onWidth : offWidth,
color: viewModel.showFocus ? onColor : offColor)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class LabelField extends StackedView<LabelFieldModel> {
height: rowHeight,
padding: EdgeInsets.symmetric(horizontal: cellPadding, vertical: 0),
decoration: BoxDecoration(
color: Colors.yellow,
border: Border.all(
width: viewModel.showFocus ? viewModel.onWidth : offWidth,
color: viewModel.showFocus ? onColor : offColor)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class ReplaceField extends StackedView<ReplaceFieldModel> {
height: rowHeight,
padding: EdgeInsets.symmetric(horizontal: cellPadding, vertical: 0),
decoration: BoxDecoration(
color: Colors.yellow,
border: Border.all(
width: viewModel.showFocus ? onWidth : offWidth,
color: viewModel.showFocus ? onColor : offColor)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class TriggerField extends StackedView<TriggerFieldModel> {
height: rowHeight,
padding: EdgeInsets.symmetric(horizontal: cellPadding, vertical: 0),
decoration: BoxDecoration(
color: Colors.yellow,
border: Border.all(
width: viewModel.showFocus ? onWidth : offWidth,
color: viewModel.showFocus ? onColor : offColor)),
Expand Down

0 comments on commit d893db4

Please sign in to comment.