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
|
// metrics
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: serverInfoState.onion.isNotEmpty,
|
visible: serverInfoState.onion.isNotEmpty && serverInfoState.running,
|
||||||
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
|
|
|
@ -29,7 +29,12 @@ class _DoubleColumnViewState extends State<DoubleColumnView> {
|
||||||
Flexible(
|
Flexible(
|
||||||
flex: cols[1],
|
flex: cols[1],
|
||||||
child: flwtch.selectedConversation == null
|
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
|
: //dev
|
||||||
MultiProvider(providers: [
|
MultiProvider(providers: [
|
||||||
ChangeNotifierProvider.value(value: Provider.of<ProfileInfoState>(context)),
|
ChangeNotifierProvider.value(value: Provider.of<ProfileInfoState>(context)),
|
||||||
|
|
Loading…
Reference in New Issue