-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c6f754
commit 0365ccb
Showing
12 changed files
with
72 additions
and
47 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// Flutter icons Unicons | ||
/// Copyright (C) 2020 by original authors @ fluttericon.com, fontello.com | ||
/// This font was generated by FlutterIcon.com, which is derived from Fontello. | ||
import 'package:flutter/widgets.dart'; | ||
|
||
class CustomIcons { | ||
CustomIcons._(); | ||
|
||
static const String _kFontFam = 'CustomIcons'; | ||
|
||
static const IconData dice_multiple = IconData(0xe800, fontFamily: _kFontFam); | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import 'dart:developer'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_markdown/flutter_markdown.dart'; | ||
import 'package:tv_randshow/core/utils/constants.dart'; | ||
import 'package:flutter/services.dart' show rootBundle; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class PrivacyPolicyView extends StatelessWidget { | ||
const PrivacyPolicyView({Key key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return SingleChildScrollView( | ||
padding: EdgeInsets.all(16.0), | ||
key: const Key('app.privacy.scroll'), | ||
physics: const BouncingScrollPhysics(), | ||
child: FutureBuilder<String>( | ||
future: rootBundle.loadString(Assets.PRIVACY_POLICY), | ||
builder: (BuildContext context, AsyncSnapshot<String> snapshot) { | ||
return snapshot.hasData | ||
? MarkdownBody( | ||
data: snapshot.data, | ||
onTapLink: (text, href, title) async { | ||
try { | ||
await launch(href); | ||
log('Launched: $href'); | ||
} catch (e) { | ||
throw 'Could not launch $href because $e'; | ||
} | ||
}, | ||
selectable: true, | ||
) | ||
: const Center(child: CircularProgressIndicator()); | ||
}, | ||
), | ||
); | ||
} | ||
} |
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
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
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
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
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
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
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