From b90b3730819c3268d66932c39c604119f137a0ad Mon Sep 17 00:00:00 2001 From: arran4 <111667+arran4@users.noreply.github.com> Date: Sat, 21 Feb 2026 02:21:59 +0000 Subject: [PATCH] Auto-format Dart code --- lib/models/session.dart | 4 +- lib/ui/widgets/activity_item.dart | 76 ++++++++++++++----------------- test/models/new_types_test.dart | 2 +- 3 files changed, 36 insertions(+), 46 deletions(-) diff --git a/lib/models/session.dart b/lib/models/session.dart index 0c6f384..49a1f01 100644 --- a/lib/models/session.dart +++ b/lib/models/session.dart @@ -358,9 +358,7 @@ class SendMessageRequest { SendMessageRequest({required this.prompt}); factory SendMessageRequest.fromJson(Map json) { - return SendMessageRequest( - prompt: getStringPropOrThrow(json, 'prompt'), - ); + return SendMessageRequest(prompt: getStringPropOrThrow(json, 'prompt')); } Map toJson() { diff --git a/lib/ui/widgets/activity_item.dart b/lib/ui/widgets/activity_item.dart index d1a3a37..90dffbf 100644 --- a/lib/ui/widgets/activity_item.dart +++ b/lib/ui/widgets/activity_item.dart @@ -510,49 +510,41 @@ class _ActivityItemState extends State { onPressed: () { showDialog( context: context, - builder: - (context) => AlertDialog( - title: const Text("Error Log"), - content: SingleChildScrollView( - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: - activity.processingErrors! - .map((e) { - return Padding( - padding: - const EdgeInsets.only( - bottom: 8.0, - ), - child: - SelectableText( - "• $e", - style: - const TextStyle( - color: - Colors.red, - fontFamily: - 'monospace', - fontSize: - 12, - ), - ), - ); - }) - .toList(), - ), - ), - actions: [ - TextButton( - onPressed: - () => - Navigator.pop(context), - child: const Text("Close"), - ), - ], + builder: (context) => AlertDialog( + title: const Text("Error Log"), + content: SingleChildScrollView( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: activity.processingErrors! + .map((e) { + return Padding( + padding: + const EdgeInsets.only( + bottom: 8.0, + ), + child: SelectableText( + "• $e", + style: const TextStyle( + color: Colors.red, + fontFamily: 'monospace', + fontSize: 12, + ), + ), + ); + }) + .toList(), ), + ), + actions: [ + TextButton( + onPressed: () => + Navigator.pop(context), + child: const Text("Close"), + ), + ], + ), ); }, ), diff --git a/test/models/new_types_test.dart b/test/models/new_types_test.dart index 816b676..362c505 100644 --- a/test/models/new_types_test.dart +++ b/test/models/new_types_test.dart @@ -27,7 +27,7 @@ void main() { 'name': 'sessions/1/activities/1', 'id': '1', 'createTime': '2023-01-01T00:00:00Z', - } + }, ], 'nextPageToken': 'token', };