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
class WebViewScrollDemoState extends State<WebViewDemo> { | |
double _bodyHeight = 500; | |
WebViewController _controller; | |
@override | |
void initState() { | |
super.initState(); | |
} |
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
import 'dart:math' as math; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
class WebViewport extends SingleChildRenderObjectWidget { | |
const WebViewport({ | |
Key key, | |
this.axisDirection = AxisDirection.down, | |
@required this.offset, |
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
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
///Inset Shadow | |
class InsetShadow extends SingleChildRenderObjectWidget { | |
const InsetShadow({ | |
Key key, | |
this.shadows = const <Shadow>[], | |
Widget child, |
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
####需要提供Engine_Version: ${Flutter_Path}/bin/internal/engine.version | |
cpu=(armeabi_v7a arm64_v8a x86 x86_64) | |
buildType=(debug profile release) | |
#配置翻墙代理,用于下载资源 | |
export http_proxy=http://127.0.0.1:8001 | |
export https_proxy=http://127.0.0.1:8001 | |
#上传到maven私服 |
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
class ImageDemo extends StatefulWidget { | |
@override | |
_ImageDemoState createState() => _ImageDemoState(); | |
} | |
class _ImageDemoState extends State<ImageDemo> { | |
bool _err = false; | |
@override | |
void initState() { |
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
class NetworkImageSSL extends ImageProvider<NetworkImageSSL> { | |
const NetworkImageSSL(this.url, {this.scale = 1.0, this.headers}) | |
: assert(url != null), | |
assert(scale != null); | |
final String url; | |
final double scale; | |
final Map<String, String> headers; |