Skip to content

Instantly share code, notes, and snippets.

@daohoangson
Created September 12, 2019 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daohoangson/e944af545c2a9fccf33497d849e24d9e to your computer and use it in GitHub Desktop.
Save daohoangson/e944af545c2a9fccf33497d849e24d9e to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
// https://www.onetechstop.net/wp-json/wp/v2/posts
const html = """
<p>Damn, none of the smartphones are getting leaked as much as Pixel 4. However, it hasn&#8217;t touched the height like Pixel 3 last year. But this new leak showcases some new camera features the smartphone.</p>
<p>The new series of camera features leaks tells us the next generation Pixel device is going to be epic.</p>
<p>The new leak shows the setting page of that section, which is generally not used by people. That is the Flash, the timer, the face retouch, and others have been moved to the floating overlay menu. </p>
<div class="wp-block-image"><figure class="aligncenter"><img data-attachment-id="37259" data-permalink="https://www.onetechstop.net/2019/09/12/pixel-4-leak-again-shows-new-camera-features/pixel-4-camera-specs-1-genk-vn_/" data-orig-file="https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?fit=1200%2C800&amp;ssl=1" data-orig-size="1200,800" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pixel-4-camera-specs-1-genk.vn_" data-image-description="" data-medium-file="https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?fit=300%2C200&amp;ssl=1" data-large-file="https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?fit=1024%2C683&amp;ssl=1" src="https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?resize=1024%2C683&#038;ssl=1" alt="Pixel 4" class="wp-image-37259" srcset="https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?resize=1024%2C683&amp;ssl=1 1024w, https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?resize=300%2C200&amp;ssl=1 300w, https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?resize=768%2C512&amp;ssl=1 768w, https://i0.wp.com/www.onetechstop.net/wp-content/uploads/2019/09/Pixel-4-camera-specs-1-genk.vn_.jpg?w=1200&amp;ssl=1 1200w" sizes="(max-width: 1024px) 100vw, 1024px" data-recalc-dims="1" /></figure></div>
<p>Another feature that is available on the Pixel 4 is the option to turnoff selfie mirroring. In this mode, you can save images exactly how you clicked. Now no more mirrored selfies! Well, this feature is already present on several OEMs already.</p>
<p>Also, facial recognition is going to detect your face at any angle now. The following GIF shows it all!</p>
<div class="wp-block-image"><figure class="aligncenter"><img src="https://i2.wp.com/cdn57.androidauthority.net/wp-content/uploads/2019/09/Pixel-4-face-unlock.gif?w=1170&#038;ssl=1" alt="" data-recalc-dims="1"/></figure></div>
<p>Also, the leak which says that you can change icons, themes fonts etc is still solid.</p>
<p><em>Source: <a href="https://www.androidauthority.com/pixel-4-camera-features-leak-1028963/">Android Authority</a>.</em></p>
""";
void main() => runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(),
body: SingleChildScrollView(
child: HtmlWidget(html, webView: true),
),
),
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment