@@ -68,9 +68,9 @@ import 'package:wakelock_plus/wakelock_plus.dart';
68
68
import 'package:workmanager/workmanager.dart' ;
69
69
70
70
// TODO (App release)
71
- const String appVersion = '3.6.2 ' ;
72
- const String androidCompilation = '467 ' ;
73
- const String iosCompilation = '467 ' ;
71
+ const String appVersion = '3.6.3 ' ;
72
+ const String androidCompilation = '470 ' ;
73
+ const String iosCompilation = '470 ' ;
74
74
75
75
// TODO (App release)
76
76
// Note: if using Windows and calling HTTP functions, we need to change the URL in [firebase_functions.dart]
@@ -553,6 +553,13 @@ class MyAppState extends State<MyApp> with WidgetsBindingObserver {
553
553
if (! splitNowActive && splitUserEnabled && screenIsWide) {
554
554
_webViewProvider.webViewSplitActive = true ;
555
555
_webViewProvider.browserForegroundWithSplitTransition ();
556
+
557
+ // Chat notifications should be omitted when switching into splitview
558
+ // (note: the case where we are no longer in splitiew is handled below,
559
+ // by notifying the webviewProvider with true/false which in turns
560
+ // will update the Sendbird Controller with the right value)
561
+ SendbirdController sb = Get .find <SendbirdController >();
562
+ sb.webviewInForeground = true ;
556
563
} else if (splitNowActive && (! splitUserEnabled || ! screenIsWide)) {
557
564
_webViewProvider.webViewSplitActive = false ;
558
565
if (_webViewProvider.splitScreenRevertsToApp) {
@@ -682,14 +689,21 @@ Future<void> _shouldSyncDeviceTheme(WidgetsBinding widgetsBinding) async {
682
689
}
683
690
}
684
691
685
- logToUser (String ? message, {int duration = 3 , Color ? color, Color ? borderColor}) {
692
+ logToUser (
693
+ String ? message, {
694
+ int duration = 3 ,
695
+ Color ? textColor,
696
+ Color ? backgroundcolor,
697
+ Color ? borderColor,
698
+ }) {
686
699
log (message.toString ());
687
700
if (message == null ) return ;
688
- color ?? = Colors .red.shade600;
701
+ backgroundcolor ?? = Colors .red.shade600;
689
702
borderColor ?? = Colors .red.shade800;
703
+ textColor ?? = Colors .white;
690
704
if (logAndShowToUser) {
691
705
toastification.showCustom (
692
- autoCloseDuration: const Duration (seconds: 3 ),
706
+ autoCloseDuration: Duration (seconds: duration ),
693
707
alignment: Alignment .bottomCenter,
694
708
builder: (BuildContext context, ToastificationItem holder) {
695
709
return Center (
@@ -698,15 +712,15 @@ logToUser(String? message, {int duration = 3, Color? color, Color? borderColor})
698
712
child: Container (
699
713
decoration: BoxDecoration (
700
714
borderRadius: BorderRadius .circular (8 ),
701
- color: color ,
715
+ color: backgroundcolor ,
702
716
border: Border .all (color: borderColor! , width: 2 ),
703
717
),
704
- padding: const EdgeInsets .all (16 ),
705
- margin: const EdgeInsets .all (8 ),
718
+ padding: const EdgeInsets .all (8 ),
719
+ margin: const EdgeInsets .all (2 ),
706
720
child: Column (
707
721
children: [
708
- Text ("Debug Message\n " , style: TextStyle (color: Colors .white , fontWeight: FontWeight .bold)),
709
- Text (message.toString (), maxLines: 10 , style: TextStyle (color: Colors .white )),
722
+ Text ("Debug Message\n " , style: TextStyle (color: textColor , fontWeight: FontWeight .bold)),
723
+ Text (message.toString (), maxLines: 10 , style: TextStyle (color: textColor )),
710
724
],
711
725
),
712
726
)),
0 commit comments