-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add family license to the FAQ (#1654)
- Loading branch information
1 parent
3ccc360
commit dcf6066
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
Binary file modified
BIN
+2.7 KB
(100%)
...s/sharezone_plus/goldens/sharezone_plus_unsubscribe_section.tablet_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,8 @@ class SharezonePlusFaq extends StatelessWidget { | |
const _DoesTheFileStorageLimitAlsoForGroups(), | ||
const SizedBox(height: 12), | ||
const _SchoolClassLicense(), | ||
const SizedBox(height: 12), | ||
const _FamilyLicense(), | ||
if (showContentCreatorQuestion) ...[ | ||
const SizedBox(height: 12), | ||
const _ContentCreator(), | ||
|
@@ -148,7 +150,7 @@ class _SchoolClassLicense extends StatelessWidget { | |
@override | ||
Widget build(BuildContext context) { | ||
return ExpansionCard( | ||
header: const Text('Gibt es eine Lizenz für meine gesamte Klasse?'), | ||
header: const Text('Gibt es spezielle Angebote für Schulklassen?'), | ||
body: MarkdownBody( | ||
data: | ||
'Du bist interessiert an einer Lizenz für deine gesamte Klasse? Schreib' | ||
|
@@ -177,6 +179,40 @@ class _SchoolClassLicense extends StatelessWidget { | |
} | ||
} | ||
|
||
class _FamilyLicense extends StatelessWidget { | ||
const _FamilyLicense(); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ExpansionCard( | ||
header: const Text('Gibt es spezielle Angebote für Familien?'), | ||
body: MarkdownBody( | ||
data: | ||
'Ja, für Familien mit mehreren Kindern bieten wir besondere Konditionen an. Schreib uns einfach eine E-Mail an [[email protected]](mailto:[email protected]), um mehr zu erfahren.', | ||
styleSheet: MarkdownStyleSheet( | ||
a: TextStyle( | ||
color: Theme.of(context).primaryColor, | ||
decoration: TextDecoration.underline, | ||
), | ||
), | ||
onTapLink: (text, href, title) async { | ||
try { | ||
final uri = Uri.parse(href!); | ||
await launchUrl(uri); | ||
} on Exception catch (_) { | ||
if (!context.mounted) return; | ||
showSnackSec( | ||
text: 'E-Mail: [email protected]', | ||
context: context, | ||
); | ||
} | ||
}, | ||
), | ||
backgroundColor: Theme.of(context).colorScheme.primary.withOpacity(0.2), | ||
); | ||
} | ||
} | ||
|
||
class _ContentCreator extends StatelessWidget { | ||
const _ContentCreator(); | ||
|
||
|
Binary file modified
BIN
+20.7 KB
(110%)
.../test_goldens/goldens/sharezone_plus_faq_section_dark_theme.tablet_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+20.1 KB
(110%)
...test_goldens/goldens/sharezone_plus_faq_section_light_theme.tablet_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.