TF-261 Add HtmlEditor for web browser
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:core';
|
||||
|
||||
import 'package:device_info/device_info.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
|
||||
|
||||
class DeviceManager {
|
||||
final DeviceInfoPlugin _deviceInfoPlugin;
|
||||
@@ -9,6 +10,10 @@ class DeviceManager {
|
||||
|
||||
Future<bool> isNeedRequestStoragePermissionOnAndroid() async {
|
||||
final androidInfo = await _deviceInfoPlugin.androidInfo;
|
||||
return androidInfo.version.sdkInt <= 28;
|
||||
final sdkInt = androidInfo.version.sdkInt;
|
||||
if (sdkInt != null) {
|
||||
return sdkInt <= 28;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,7 @@ class ImagePaths {
|
||||
String get icFilterMessageAll => _getImagePath('ic_filter_message_all.svg');
|
||||
String get icFilterMessageAttachments => _getImagePath('ic_filter_message_attachments.svg');
|
||||
String get icLogoTMailV2 => _getImagePath('logo_tmail_v2.png');
|
||||
String get icSendToast => _getImagePath('ic_send_toast.svg');
|
||||
|
||||
String _getImagePath(String imageName) {
|
||||
return AssetsPaths.images + imageName;
|
||||
|
||||
@@ -61,7 +61,8 @@ class AppToast {
|
||||
}
|
||||
|
||||
void showToastWithIcon(BuildContext context,
|
||||
{String? message, String? icon, Color? bgColor, double? radius, EdgeInsets? padding, TextStyle? textStyle}) {
|
||||
{String? message, String? icon, Color? bgColor,
|
||||
Color? textColor, double? radius, EdgeInsets? padding, TextStyle? textStyle}) {
|
||||
final toast = Material(
|
||||
color: bgColor ?? Colors.white,
|
||||
elevation: 10,
|
||||
@@ -71,7 +72,7 @@ class AppToast {
|
||||
padding: padding ?? EdgeInsets.symmetric(horizontal: 12.0, vertical: 14),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(radius ?? 10.0),
|
||||
color: Colors.white,
|
||||
color: bgColor ?? Colors.white,
|
||||
),
|
||||
width: 320,
|
||||
child: Row(
|
||||
@@ -81,7 +82,7 @@ class AppToast {
|
||||
SizedBox(width: 10.0),
|
||||
Expanded(child: Text(
|
||||
message ?? '',
|
||||
style: textStyle ?? TextStyle(fontSize: 15, color: Colors.black))),
|
||||
style: textStyle ?? TextStyle(fontSize: 15, color: textColor ?? Colors.black))),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ dependencies:
|
||||
# GetX
|
||||
get: 4.1.4
|
||||
|
||||
# device_info
|
||||
device_info: 2.0.2
|
||||
# device_info_plus
|
||||
device_info_plus: 3.2.2
|
||||
|
||||
# getwidget
|
||||
getwidget: 2.0.4
|
||||
|
||||
Reference in New Issue
Block a user