Skip to content

Commit 7ab95ca

Browse files
Copilotjwinarske
andcommitted
Format Dart files to comply with dart format style
Fix line length issues in three files to comply with the 80-character line limit enforced by dart format: - lib/services/flatpak_service.dart: Break long ternary expression - lib/widgets/app_list.dart: Break long EdgeInsets parameter - lib/widgets/permission_group.dart: Break long Text widget parameter All files now pass dart format --set-exit-if-changed validation. Co-authored-by: jwinarske <[email protected]>
1 parent 8d0bf87 commit 7ab95ca

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/services/flatpak_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ class FlatpakService extends ChangeNotifier {
138138
bool enable,
139139
) async {
140140
try {
141-
final action = enable ? '--$category=$permission' : '--no$category=$permission';
141+
final action =
142+
enable ? '--$category=$permission' : '--no$category=$permission';
142143
final result = await Process.run(
143144
'flatpak',
144145
['override', appId, action],

lib/widgets/app_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class _AppListState extends State<AppList> {
3131
hintText: 'Search applications...',
3232
prefixIcon: Icon(Icons.search),
3333
border: OutlineInputBorder(),
34-
contentPadding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
34+
contentPadding:
35+
EdgeInsets.symmetric(horizontal: 16, vertical: 12),
3536
),
3637
onChanged: (value) {
3738
setState(() {

lib/widgets/permission_group.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class PermissionItem extends StatelessWidget {
8383
if (!success) {
8484
ScaffoldMessenger.of(context).showSnackBar(
8585
SnackBar(
86-
content: Text('Failed to update permission: ${service.error}'),
86+
content:
87+
Text('Failed to update permission: ${service.error}'),
8788
backgroundColor: Colors.red,
8889
),
8990
);

0 commit comments

Comments
 (0)