Skip to content

Commit

Permalink
[articles] replace twitter with nitter
Browse files Browse the repository at this point in the history
faster loading
privacy-friendly
better ui integration
  • Loading branch information
BrightDV committed Oct 15, 2023
1 parent fd2f7a9 commit 68cb63e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/api/article_parts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,11 @@ class WidgetsList extends StatelessWidget {
? SizedBox(
height: 400,
child: InAppWebView(
initialData:
InAppWebViewInitialData(
data:
'<blockquote class="twitter-tweet"><a href="https://twitter.com/x/status/${element['fields']['postId']}"></a> </blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>'),
initialUrlRequest: URLRequest(
url: WebUri(
"https://nitter.net/x/status/${element['fields']['postId']}/embed",
),
),
gestureRecognizers: {
Factory<VerticalDragGestureRecognizer>(
() =>
Expand Down

0 comments on commit 68cb63e

Please sign in to comment.