@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
22import 'package:flutter_bloc/flutter_bloc.dart' ;
33import 'package:go_router/go_router.dart' ;
44import 'package:tsdm_client/constants/constants.dart' ;
5+ import 'package:tsdm_client/constants/layout.dart' ;
56import 'package:tsdm_client/constants/url.dart' ;
67import 'package:tsdm_client/extensions/build_context.dart' ;
78import 'package:tsdm_client/extensions/string.dart' ;
@@ -135,6 +136,8 @@ class _ThreadPageState extends State<ThreadPage> with SingleTickerProviderStateM
135136 }
136137
137138 Widget _buildContent (BuildContext context, ThreadState state) {
139+ final tr = context.t.threadPage;
140+
138141 return Column (
139142 children: [
140143 Expanded (
@@ -154,6 +157,25 @@ class _ThreadPageState extends State<ThreadPage> with SingleTickerProviderStateM
154157 latestModAct: state.latestModAct,
155158 ),
156159 ),
160+ if (state.threadSoftClosed && ! state.threadClosed)
161+ ColoredBox (
162+ color: Theme .of (context).colorScheme.secondaryContainer,
163+ child: Padding (
164+ padding: edgeInsetsL12T4R12B4,
165+ child: Row (
166+ children: [
167+ Icon (Icons .lock_outline, size: 16 , color: Theme .of (context).colorScheme.onSecondaryContainer),
168+ sizedBoxW4H4,
169+ Expanded (
170+ child: Text (
171+ tr.softCloseHint,
172+ style: TextStyle (color: Theme .of (context).colorScheme.onSecondaryContainer),
173+ ),
174+ ),
175+ ],
176+ ),
177+ ),
178+ ),
157179 _buildReplyBar (context, state),
158180 ],
159181 );
0 commit comments