NullSafety: Migrate more UI widgets
This commit is contained in:
parent
454e700c81
commit
7a10ac3971
|
@ -1,5 +1,3 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:photos/services/update_service.dart';
|
||||
import 'package:photos/theme/ente_theme.dart';
|
||||
|
@ -10,7 +8,7 @@ import 'package:photos/ui/settings/common_settings.dart';
|
|||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
class SocialSectionWidget extends StatelessWidget {
|
||||
const SocialSectionWidget({Key key}) : super(key: key);
|
||||
const SocialSectionWidget({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -60,7 +58,7 @@ class SocialSectionWidget extends StatelessWidget {
|
|||
class SocialsMenuItemWidget extends StatelessWidget {
|
||||
final String text;
|
||||
final String urlSring;
|
||||
const SocialsMenuItemWidget(this.text, this.urlSring, {Key key})
|
||||
const SocialsMenuItemWidget(this.text, this.urlSring, {Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// @dart=2.9
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
@ -15,7 +13,7 @@ import 'package:photos/ui/settings/common_settings.dart';
|
|||
import 'package:photos/utils/email_util.dart';
|
||||
|
||||
class SupportSectionWidget extends StatelessWidget {
|
||||
const SupportSectionWidget({Key key}) : super(key: key);
|
||||
const SupportSectionWidget({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -63,7 +61,9 @@ class SupportSectionWidget extends StatelessWidget {
|
|||
final endpoint = Configuration.instance.getHttpEndpoint() +
|
||||
"/users/roadmap";
|
||||
final url = Configuration.instance.isLoggedIn()
|
||||
? endpoint + "?token=" + Configuration.instance.getToken()
|
||||
? endpoint +
|
||||
"?token=" +
|
||||
Configuration.instance.getToken()!
|
||||
: roadmapURL;
|
||||
return WebPage("Suggest features", url);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue