Open zhangyu0218 opened 5 years ago
No, we don't have such example
Feel free to make a PR with such example!
can you support flutter? flutter is fashion
Hello, we will work on it using Flutter, have you finally worked on it?
have you finally worked on it?
No.
hi can u do it in flutter?
Unfortunately, current state of WebView in Flutter is not acceptable. The widget still needs a lot of improvements. At the moment you can use combination of native code and Flutter. Check this link out
Hey, anybody has any news regarding this ?
Is there a tradingview example of flutter?
https://pub.dev/packages/trading_chart
Is this worthwhile looking into ?
Since Flutter 2.0, web channel is now out of beta. I would also be very interested in Flutter example with Tradingview.
I agree, please support Flutter, Flutter is growing super fast.
Hi guys! Sorry for restarting this thread but I managed to run tv charting_library using flutter_inappwebview and follow this sample. It is running default and basic sample tv charting library.
import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; class TradindView extends StatefulWidget { @override _TradindViewState createState() => _TradindViewState(); } final InAppLocalhostServer localhostServer = new InAppLocalhostServer(); class _TradindViewState extends State
{ @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('InAppLocalhostServer Example'), ), body: Container( child: Column(children: [ Expanded( child: InAppWebView( initialUrlRequest: URLRequest( url: Uri.parse("http://localhost:8080/assets/index.html")), onWebViewCreated: (controller) {}, onLoadStart: (controller, url) {}, onLoadStop: (controller, url) {}, ), ) ])), ); } }
my pubspec.yalm:
assets:
@thicow could you please go into more detail about this? I'm trying to implement something similar
@thicow could you please go into more detail about this? I'm trying to implement something similar
Hi @alexanderytaylor ! I implemented exactly it. Using flutter_inappwebview I created a widget with InAppWebView using initialUrlRequest: URLRequest(url: Uri.parse("http://localhost:8080/assets/index.html")),
I download tv-chart-library into assets folder and configure pubspec.yalm:
assets:
and it works fine! Inside my index.html I configured the datasource to render the chart.
@thicow thanks for the reply! Does setting the initialUrlRequest to localhost work when the site is live as well or just for debugging?
@thicow thanks for the reply! Does setting the initialUrlRequest to localhost work when the site is live as well or just for debugging?
Localhost everytime! Localhost because index.html works like a angular app (SPA)... I don't need open a remote website in initialUrlRequest. But the most important is setting the urldatafeed to production datafeed in file index.html (https://github.com/tradingview/charting_library/blob/master/index.html) on line
datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
Hi @timocov, @kirchet , is there any update on this issue? Any PoC, sample projects, dummy code etc. that your team can provide will be much appreciated. Please update.
Localhost everytime! Localhost because index.html works like a angular app (SPA)... I don't need open a remote website in initialUrlRequest. But the most important is setting the urldatafeed to production datafeed in file index.html (https://github.com/tradingview/charting_library/blob/master/index.html) on line
datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
Hi @thicow ! If possible, could you provide an example project or an example of what is in the following files
@serzhikdnepr see https://github.com/tradingview/charting_library/, all files are there
@serzhikdnepr see https://github.com/tradingview/charting_library/, all files are there
@thicow Thanks for the answer! I don't have access to this repository
Hi guys is there any update?
if need works with flutter_inappwebview .
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<title>Document</title>
</head>
<body>
<div class="tradingview-widget-container">
<div id="tradingview_17f8f"></div>
<div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/symbols/NASDAQ-AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div>
</div>
Is there an tradingview example of flutter?