NullSafety: Migrate more UI widgets

This commit is contained in:
Neeraj Gupta 2022-12-27 23:21:11 +05:30
parent 454e700c81
commit 7a10ac3971
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 6 additions and 8 deletions

View file

@ -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

View file

@ -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);
},