@@ -470,25 +470,18 @@ class AiSummarySheet extends ConsumerWidget {
470470 BuildContext context, WidgetRef ref, Object error, StackTrace stackTrace) {
471471 return Padding (
472472 padding: const EdgeInsets .fromLTRB (16 , 12 , 16 , 24 ),
473- child: Column (
474- crossAxisAlignment: CrossAxisAlignment .start,
475- children: [
476- Text (
477- _resolveError (context, error, stackTrace),
478- style: Theme .of (context).textTheme.bodyMedium,
479- ),
480- const SizedBox (height: 12 ),
481- OutlinedButton (
482- onPressed: () async {
483- try {
484- await ForumRepository .getInstance ()
485- .loadAiSummary (holeId, forceRefresh: true );
486- } catch (_) {}
487- ref.invalidate (aiSummaryProvider (holeId));
488- },
489- child: Text (S .of (context).retry),
490- ),
491- ],
473+ child: ErrorPageWidget (
474+ buttonText: S .of (context).retry,
475+ errorMessage: _resolveError (context, error, stackTrace),
476+ error: error,
477+ trace: stackTrace,
478+ onTap: () async {
479+ try {
480+ await ForumRepository .getInstance ()
481+ .loadAiSummary (holeId, forceRefresh: true );
482+ } catch (_) {}
483+ ref.invalidate (aiSummaryProvider (holeId));
484+ },
492485 ),
493486 );
494487 }
0 commit comments