|
@@ -22,56 +22,56 @@ class SocialSectionWidget extends StatelessWidget {
|
|
|
}
|
|
|
|
|
|
Widget _getSectionOptions(BuildContext context) {
|
|
|
- return Column(
|
|
|
- children: [
|
|
|
- GestureDetector(
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- onTap: () {
|
|
|
- launch("https://twitter.com/enteio");
|
|
|
- },
|
|
|
- child: SettingsTextItem(text: "Twitter", icon: Icons.navigate_next),
|
|
|
- ),
|
|
|
- SectionOptionDivider,
|
|
|
- GestureDetector(
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- onTap: () {
|
|
|
- launch("https://ente.io/discord");
|
|
|
- },
|
|
|
- child: SettingsTextItem(text: "Discord", icon: Icons.navigate_next),
|
|
|
- ),
|
|
|
- SectionOptionDivider,
|
|
|
- GestureDetector(
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- onTap: () {
|
|
|
- launch("https://reddit.com/r/enteio");
|
|
|
- },
|
|
|
- child: SettingsTextItem(text: "Reddit", icon: Icons.navigate_next),
|
|
|
- ),
|
|
|
- !UpdateService.instance.isIndependent()
|
|
|
- ? Column(
|
|
|
- children: [
|
|
|
- GestureDetector(
|
|
|
- behavior: HitTestBehavior.translucent,
|
|
|
- onTap: () {
|
|
|
- if (Platform.isAndroid) {
|
|
|
- launch(
|
|
|
- "https://play.google.com/store/apps/details?id=io.ente.photos",
|
|
|
- );
|
|
|
- } else {
|
|
|
- launch(
|
|
|
- "https://apps.apple.com/in/app/ente-photos/id1542026904",
|
|
|
- );
|
|
|
- }
|
|
|
- },
|
|
|
- child: SettingsTextItem(
|
|
|
- text: "Rate us! ✨",
|
|
|
- icon: Icons.navigate_next,
|
|
|
- ),
|
|
|
- ),
|
|
|
- ],
|
|
|
- )
|
|
|
- : Container(),
|
|
|
- ],
|
|
|
- );
|
|
|
+ List<Widget> options = [
|
|
|
+ GestureDetector(
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ onTap: () {
|
|
|
+ launch("https://twitter.com/enteio");
|
|
|
+ },
|
|
|
+ child: SettingsTextItem(text: "Twitter", icon: Icons.navigate_next),
|
|
|
+ ),
|
|
|
+ SectionOptionDivider,
|
|
|
+ GestureDetector(
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ onTap: () {
|
|
|
+ launch("https://ente.io/discord");
|
|
|
+ },
|
|
|
+ child: SettingsTextItem(text: "Discord", icon: Icons.navigate_next),
|
|
|
+ ),
|
|
|
+ SectionOptionDivider,
|
|
|
+ GestureDetector(
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ onTap: () {
|
|
|
+ launch("https://reddit.com/r/enteio");
|
|
|
+ },
|
|
|
+ child: SettingsTextItem(text: "Reddit", icon: Icons.navigate_next),
|
|
|
+ ),
|
|
|
+ ];
|
|
|
+ if (!UpdateService.instance.isIndependent()) {
|
|
|
+ options.addAll(
|
|
|
+ [
|
|
|
+ SectionOptionDivider,
|
|
|
+ GestureDetector(
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ onTap: () {
|
|
|
+ if (Platform.isAndroid) {
|
|
|
+ launch(
|
|
|
+ "https://play.google.com/store/apps/details?id=io.ente.photos",
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ launch(
|
|
|
+ "https://apps.apple.com/in/app/ente-photos/id1542026904",
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
+ child: SettingsTextItem(
|
|
|
+ text: "Rate us! ✨",
|
|
|
+ icon: Icons.navigate_next,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ );
|
|
|
+ }
|
|
|
+ return Column(children: options);
|
|
|
}
|
|
|
}
|