Disconnected and Ephemeral Warnings
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
a41e6f12b0
commit
dcefa30580
|
@ -17,6 +17,7 @@
|
||||||
"builddate": "Aufgebaut auf: %2",
|
"builddate": "Aufgebaut auf: %2",
|
||||||
"bulletinsBtn": "Meldungen",
|
"bulletinsBtn": "Meldungen",
|
||||||
"chatBtn": "Chat",
|
"chatBtn": "Chat",
|
||||||
|
"chatHistoryDefault": "",
|
||||||
"contactAlreadyExists": "",
|
"contactAlreadyExists": "",
|
||||||
"conversationSettings": "",
|
"conversationSettings": "",
|
||||||
"copiedClipboardNotification": "in die Zwischenablage kopiert",
|
"copiedClipboardNotification": "in die Zwischenablage kopiert",
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"builddate": "Built on: %2",
|
"builddate": "Built on: %2",
|
||||||
"bulletinsBtn": "Bulletins",
|
"bulletinsBtn": "Bulletins",
|
||||||
"chatBtn": "Chat",
|
"chatBtn": "Chat",
|
||||||
|
"chatHistoryDefault": "This conversation will be deleted when Cwtch is closed! Message history can be enabled per-conversation via the Settings menu in the upper right.",
|
||||||
"contactAlreadyExists": "Contact Already Exists",
|
"contactAlreadyExists": "Contact Already Exists",
|
||||||
"conversationSettings": "Conversation Settings",
|
"conversationSettings": "Conversation Settings",
|
||||||
"copiedClipboardNotification": "Copied to clipboard",
|
"copiedClipboardNotification": "Copied to clipboard",
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"builddate": "Basado en: %2",
|
"builddate": "Basado en: %2",
|
||||||
"bulletinsBtn": "Boletines",
|
"bulletinsBtn": "Boletines",
|
||||||
"chatBtn": "Chat",
|
"chatBtn": "Chat",
|
||||||
|
"chatHistoryDefault": "",
|
||||||
"contactAlreadyExists": "",
|
"contactAlreadyExists": "",
|
||||||
"conversationSettings": "",
|
"conversationSettings": "",
|
||||||
"copiedClipboardNotification": "Copiado al portapapeles",
|
"copiedClipboardNotification": "Copiado al portapapeles",
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"builddate": "",
|
"builddate": "",
|
||||||
"bulletinsBtn": "Bulletins",
|
"bulletinsBtn": "Bulletins",
|
||||||
"chatBtn": "Discuter",
|
"chatBtn": "Discuter",
|
||||||
|
"chatHistoryDefault": "",
|
||||||
"contactAlreadyExists": "",
|
"contactAlreadyExists": "",
|
||||||
"conversationSettings": "",
|
"conversationSettings": "",
|
||||||
"copiedClipboardNotification": "Copié dans le presse-papier",
|
"copiedClipboardNotification": "Copié dans le presse-papier",
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"builddate": "Costruito il: %2",
|
"builddate": "Costruito il: %2",
|
||||||
"bulletinsBtn": "Bollettini",
|
"bulletinsBtn": "Bollettini",
|
||||||
"chatBtn": "Chat",
|
"chatBtn": "Chat",
|
||||||
|
"chatHistoryDefault": "",
|
||||||
"contactAlreadyExists": "",
|
"contactAlreadyExists": "",
|
||||||
"conversationSettings": "",
|
"conversationSettings": "",
|
||||||
"copiedClipboardNotification": "Copiato negli Appunti",
|
"copiedClipboardNotification": "Copiato negli Appunti",
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"builddate": "",
|
"builddate": "",
|
||||||
"bulletinsBtn": "Boletins",
|
"bulletinsBtn": "Boletins",
|
||||||
"chatBtn": "Chat",
|
"chatBtn": "Chat",
|
||||||
|
"chatHistoryDefault": "",
|
||||||
"contactAlreadyExists": "",
|
"contactAlreadyExists": "",
|
||||||
"conversationSettings": "",
|
"conversationSettings": "",
|
||||||
"copiedClipboardNotification": "Copiado",
|
"copiedClipboardNotification": "Copiado",
|
||||||
|
|
|
@ -1357,14 +1357,14 @@ ThemeData mkThemeData(Settings opaque) {
|
||||||
),
|
),
|
||||||
cardColor: opaque.current().backgroundMainColor(),
|
cardColor: opaque.current().backgroundMainColor(),
|
||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
backgroundColor: opaque.current().backgroundPaneColor(),
|
backgroundColor: opaque.current().backgroundPaneColor(),
|
||||||
titleTextStyle: TextStyle(
|
titleTextStyle: TextStyle(
|
||||||
color: opaque.current().mainTextColor(),
|
color: opaque.current().mainTextColor(),
|
||||||
),
|
),
|
||||||
actionsIconTheme: IconThemeData(
|
actionsIconTheme: IconThemeData(
|
||||||
color: opaque.current().mainTextColor(),
|
color: opaque.current().mainTextColor(),
|
||||||
),
|
)),
|
||||||
),
|
bottomNavigationBarTheme: BottomNavigationBarThemeData(type: BottomNavigationBarType.fixed, backgroundColor: opaque.current().backgroundHilightElementColor()),
|
||||||
textButtonTheme: TextButtonThemeData(
|
textButtonTheme: TextButtonThemeData(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
backgroundColor: MaterialStateProperty.all(opaque.current().defaultButtonColor()),
|
backgroundColor: MaterialStateProperty.all(opaque.current().defaultButtonColor()),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
import '../model.dart';
|
import '../model.dart';
|
||||||
import '../settings.dart';
|
import '../settings.dart';
|
||||||
import 'messagerow.dart';
|
import 'messagerow.dart';
|
||||||
|
@ -17,10 +17,21 @@ class _MessageListState extends State<MessageList> {
|
||||||
Widget build(BuildContext outerContext) {
|
Widget build(BuildContext outerContext) {
|
||||||
return RepaintBoundary(
|
return RepaintBoundary(
|
||||||
child: Container(
|
child: Container(
|
||||||
child: Scrollbar(
|
child: Column(children: [
|
||||||
isAlwaysShown: true,
|
Visibility(
|
||||||
controller: ctrlr1,
|
visible: Provider.of<ContactInfoState>(context).isOnline() == false || Provider.of<ContactInfoState>(context).savePeerHistory != "SaveHistory",
|
||||||
child: Container(
|
child: Container(
|
||||||
|
padding: EdgeInsets.all(5.0),
|
||||||
|
color: Provider.of<Settings>(context).theme.defaultButtonActiveColor(),
|
||||||
|
child: Provider.of<ContactInfoState>(context).isOnline() == false
|
||||||
|
? Text(Provider.of<ContactInfoState>(context).isGroup ? AppLocalizations.of(context)!.serverConnectivityDisconnected : AppLocalizations.of(context)!.peerOfflineMessage)
|
||||||
|
: (Provider.of<ContactInfoState>(context).savePeerHistory != "SaveHistory" ? Text(AppLocalizations.of(context)!.chatHistoryDefault) : Text("")),
|
||||||
|
)),
|
||||||
|
Expanded(
|
||||||
|
child: Scrollbar(
|
||||||
|
isAlwaysShown: true,
|
||||||
|
controller: ctrlr1,
|
||||||
|
child: Container(
|
||||||
// Only show broken heart is the contact is offline...
|
// Only show broken heart is the contact is offline...
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: Provider.of<ContactInfoState>(outerContext).isOnline()
|
image: Provider.of<ContactInfoState>(outerContext).isOnline()
|
||||||
|
@ -51,7 +62,7 @@ class _MessageListState extends State<MessageList> {
|
||||||
return RepaintBoundary(child: MessageRow(key: Provider.of<ContactInfoState>(bcontext).getMessageKey(idx)));
|
return RepaintBoundary(child: MessageRow(key: Provider.of<ContactInfoState>(bcontext).getMessageKey(idx)));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
))))
|
||||||
))));
|
])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue