Факнуть линукс
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
@@ -3507,6 +3508,7 @@ class _SferumWebViewPanelState extends State<SferumWebViewPanel> {
|
||||
Expanded(
|
||||
child: Stack(
|
||||
children: [
|
||||
if (!Platform.isLinux)
|
||||
InAppWebView(
|
||||
initialUrlRequest: URLRequest(url: WebUri(widget.url)),
|
||||
initialSettings: InAppWebViewSettings(
|
||||
@@ -3535,7 +3537,23 @@ class _SferumWebViewPanelState extends State<SferumWebViewPanel> {
|
||||
);
|
||||
},
|
||||
),
|
||||
if (_isLoading)
|
||||
if (Platform.isLinux)
|
||||
Container(
|
||||
color: colors.surface,
|
||||
child: const Center(
|
||||
child: Text(
|
||||
'Сферум временно не доступен на линуксе,\nмы думаем как это исправить.',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
if (_isLoading && !Platform.isLinux)
|
||||
Container(
|
||||
color: colors.surface,
|
||||
child: const Center(child: CircularProgressIndicator()),
|
||||
|
||||
Reference in New Issue
Block a user