|
@@ -30,19 +30,16 @@ class AboutSectionWidget extends StatelessWidget {
|
|
sectionOptionSpacing,
|
|
sectionOptionSpacing,
|
|
const AboutMenuItemWidget(
|
|
const AboutMenuItemWidget(
|
|
title: "FAQ",
|
|
title: "FAQ",
|
|
- webPageTitle: "FAQ",
|
|
|
|
url: "https://ente.io/faq",
|
|
url: "https://ente.io/faq",
|
|
),
|
|
),
|
|
sectionOptionSpacing,
|
|
sectionOptionSpacing,
|
|
const AboutMenuItemWidget(
|
|
const AboutMenuItemWidget(
|
|
title: "Terms",
|
|
title: "Terms",
|
|
- webPageTitle: "terms",
|
|
|
|
url: "https://ente.io/terms",
|
|
url: "https://ente.io/terms",
|
|
),
|
|
),
|
|
sectionOptionSpacing,
|
|
sectionOptionSpacing,
|
|
const AboutMenuItemWidget(
|
|
const AboutMenuItemWidget(
|
|
title: "Privacy",
|
|
title: "Privacy",
|
|
- webPageTitle: "privacy",
|
|
|
|
url: "https://ente.io/privacy",
|
|
url: "https://ente.io/privacy",
|
|
),
|
|
),
|
|
sectionOptionSpacing,
|
|
sectionOptionSpacing,
|
|
@@ -99,12 +96,12 @@ class AboutSectionWidget extends StatelessWidget {
|
|
|
|
|
|
class AboutMenuItemWidget extends StatelessWidget {
|
|
class AboutMenuItemWidget extends StatelessWidget {
|
|
final String title;
|
|
final String title;
|
|
- final String webPageTitle;
|
|
|
|
final String url;
|
|
final String url;
|
|
|
|
+ final String webPageTitle;
|
|
const AboutMenuItemWidget({
|
|
const AboutMenuItemWidget({
|
|
@required this.title,
|
|
@required this.title,
|
|
- @required this.webPageTitle,
|
|
|
|
@required this.url,
|
|
@required this.url,
|
|
|
|
+ this.webPageTitle,
|
|
Key key,
|
|
Key key,
|
|
}) : super(key: key);
|
|
}) : super(key: key);
|
|
|
|
|
|
@@ -120,7 +117,7 @@ class AboutMenuItemWidget extends StatelessWidget {
|
|
Navigator.of(context).push(
|
|
Navigator.of(context).push(
|
|
MaterialPageRoute(
|
|
MaterialPageRoute(
|
|
builder: (BuildContext context) {
|
|
builder: (BuildContext context) {
|
|
- return WebPage(webPageTitle, url);
|
|
|
|
|
|
+ return WebPage(webPageTitle ?? title, url);
|
|
},
|
|
},
|
|
),
|
|
),
|
|
);
|
|
);
|