forked from cwtch.im/cwtch-ui
don't show server metrics when not running (undefined anyway); properly define hilight border around empty message pane in dual pane mode
This commit is contained in:
parent
36cf8abc8c
commit
936fca943a
|
@ -151,7 +151,7 @@ class _AddEditServerViewState extends State<AddEditServerView> {
|
|||
|
||||
// metrics
|
||||
Visibility(
|
||||
visible: serverInfoState.onion.isNotEmpty,
|
||||
visible: serverInfoState.onion.isNotEmpty && serverInfoState.running,
|
||||
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||
SizedBox(
|
||||
height: 20,
|
||||
|
|
|
@ -29,7 +29,12 @@ class _DoubleColumnViewState extends State<DoubleColumnView> {
|
|||
Flexible(
|
||||
flex: cols[1],
|
||||
child: flwtch.selectedConversation == null
|
||||
? Card(child: Center(child: Text(AppLocalizations.of(context)!.addContactFirst)))
|
||||
? Container(
|
||||
color: Provider.of<Settings>(context).theme.backgroundMainColor,
|
||||
child: Card(
|
||||
margin: EdgeInsets.all(0.0),
|
||||
shape: new RoundedRectangleBorder(side: new BorderSide(color: Provider.of<Settings>(context).theme.defaultButtonColor, width: 4.0), borderRadius: BorderRadius.circular(4.0)),
|
||||
child: Center(child: Text(AppLocalizations.of(context)!.addContactFirst))))
|
||||
: //dev
|
||||
MultiProvider(providers: [
|
||||
ChangeNotifierProvider.value(value: Provider.of<ProfileInfoState>(context)),
|
||||
|
|
Loading…
Reference in New Issue