Fix lint warnings (#1117)
This commit is contained in:
commit
095df3abba
5 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ Future<void> showSingleFileDeleteSheet(
|
|||
file.uploadedFileID != null && file.localID != null;
|
||||
final bool isLocalOnly = file.uploadedFileID == null && file.localID != null;
|
||||
final bool isRemoteOnly = file.uploadedFileID != null && file.localID == null;
|
||||
String bodyHighlight = S.of(context).singleFileDeleteHighlight;
|
||||
final String bodyHighlight = S.of(context).singleFileDeleteHighlight;
|
||||
String body = "";
|
||||
if (isBothLocalAndRemote) {
|
||||
body = S.of(context).singleFileInBothLocalAndRemote(fileType);
|
||||
|
|
|
@ -107,7 +107,7 @@ class HeaderErrorWidget extends StatelessWidget {
|
|||
const Padding(padding: EdgeInsets.all(4)),
|
||||
Text(
|
||||
S.of(context).couldNotBackUpTryLater,
|
||||
style: TextStyle(height: 1.4),
|
||||
style: const TextStyle(height: 1.4),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
const Padding(padding: EdgeInsets.all(8)),
|
||||
|
|
|
@ -61,7 +61,7 @@ class LinkExpiryPickerPage extends StatelessWidget {
|
|||
|
||||
class ItemsWidget extends StatefulWidget {
|
||||
final Collection collection;
|
||||
ItemsWidget(this.collection, {super.key});
|
||||
const ItemsWidget(this.collection, {super.key});
|
||||
|
||||
@override
|
||||
State<ItemsWidget> createState() => _ItemsWidgetState();
|
||||
|
|
|
@ -42,7 +42,7 @@ class _NonRecyclableViewWidgetState extends State<NonRecyclableViewWidget> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!_shouldRender!) {
|
||||
if (!_shouldRender) {
|
||||
return VisibilityDetector(
|
||||
key: Key("gallery" + widget.filesInDay.first.tag),
|
||||
onVisibilityChanged: (visibility) {
|
||||
|
|
|
@ -4,10 +4,10 @@ import "package:device_info/device_info.dart";
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
late DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();
|
||||
DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();
|
||||
|
||||
// https://gist.github.com/adamawolf/3048717
|
||||
late Set<String> iOSLowEndMachineCodes = <String>{
|
||||
final Set<String> iOSLowEndMachineCodes = <String>{
|
||||
"iPhone5,1", //iPhone 5 (GSM)
|
||||
"iPhone5,2", //iPhone 5 (GSM+CDMA)
|
||||
"iPhone5,3", //iPhone 5C (GSM)
|
||||
|
|
Loading…
Add table
Reference in a new issue