1662385237
#Introduce We forked the project from https://github.com/OpenFlutter/k_chart and add some function to meet our requirments.
all the version below are the version we released.
https://dart.cn/tools/pub/publishing
Raw README.md from forked project
k_chart
Maybe this is the best k chart in Flutter.Support drag,scale,long press,fling.And easy to use.
dependencies:
k_chart: ^0.5.0
or use latest:
k_chart:
git:
url: https://github.com/mafanwei/k_chart
When you change the data, you must call this:
DataUtil.calculate(datas); //This function has some optional parameters: n is BOLL N-day closing price. k is BOLL param.
use k line chart:
Container(
height: 450,
width: double.infinity,
child: KChartWidget(
chartStyle, // Required for styling purposes
chartColors,// Required for styling purposes
datas,// Required,Data must be an ordered list,(history=>now)
isLine: isLine,// Decide whether it is k-line or time-sharing
mainState: _mainState,// Decide what the main view shows
secondaryState: _secondaryState,// Decide what the sub view shows
fixedLength: 2,// Displayed decimal precision
timeFormat: TimeFormat.YEAR_MONTH_DAY,
onLoadMore: (bool a) {},// Called when the data scrolls to the end. When a is true, it means the user is pulled to the end of the right side of the data. When a
// is false, it means the user is pulled to the end of the left side of the data.
maDayList: [5,10,20],// Display of MA,This parameter must be equal to DataUtil.calculate‘s maDayList
bgColor: [Colors.black, Colors.black],// The background color of the chart is gradient
translations: kChartTranslations,// Graphic language
volHidden: false,// hide volume
showNowPrice: true,// show now price
isOnDrag: (isDrag){},// true is on Drag.Don't load data while Draging.
onSecondaryTap:(){}// on secondary rect taped.
),
),
use TrendLine(New): You can use Trendline by long-pressing and moving your finger after setting true to isTrendLine property.
use depth chart:
DepthChart(_bids, _asks, chartColors) //Note: Datas must be an ordered list,
Buy a cup of coffee for the author.
Maybe there are some bugs in this k chart,or you want new indicators,you can create a pull request.I will happy to accept it and I hope we can make it better.
The version of fork
Run this command:
With Flutter:
$ flutter pub add k_chart_pw
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
k_chart_pw: ^0.5.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:k_chart_pw/chart_style.dart';
import 'package:k_chart_pw/chart_translations.dart';
import 'package:k_chart_pw/depth_chart.dart';
import 'package:k_chart_pw/entity/candle_entity.dart';
import 'package:k_chart_pw/entity/cci_entity.dart';
import 'package:k_chart_pw/entity/depth_entity.dart';
import 'package:k_chart_pw/entity/extra_buy_sell_signal.dart';
import 'package:k_chart_pw/entity/extra_line.dart';
import 'package:k_chart_pw/entity/extra_text_label.dart';
import 'package:k_chart_pw/entity/index.dart';
import 'package:k_chart_pw/entity/info_window_entity.dart';
import 'package:k_chart_pw/entity/k_entity.dart';
import 'package:k_chart_pw/entity/k_line_entity.dart';
import 'package:k_chart_pw/entity/kdj_entity.dart';
import 'package:k_chart_pw/entity/macd_entity.dart';
import 'package:k_chart_pw/entity/rsi_entity.dart';
import 'package:k_chart_pw/entity/rw_entity.dart';
import 'package:k_chart_pw/entity/volume_entity.dart';
import 'package:k_chart_pw/extension/map_ext.dart';
import 'package:k_chart_pw/extension/num_ext.dart';
import 'package:k_chart_pw/flutter_k_chart.dart';
import 'package:k_chart_pw/k_chart_widget.dart';
import 'package:k_chart_pw/renderer/base_chart_painter.dart';
import 'package:k_chart_pw/renderer/base_chart_renderer.dart';
import 'package:k_chart_pw/renderer/chart_painter.dart';
import 'package:k_chart_pw/renderer/index.dart';
import 'package:k_chart_pw/renderer/main_renderer.dart';
import 'package:k_chart_pw/renderer/secondary_renderer.dart';
import 'package:k_chart_pw/renderer/vol_renderer.dart';
import 'package:k_chart_pw/utils/data_util.dart';
import 'package:k_chart_pw/utils/date_format_util.dart';
import 'package:k_chart_pw/utils/index.dart';
import 'package:k_chart_pw/utils/number_util.dart';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:http/http.dart' as http;
import 'package:k_chart_pw/chart_style.dart';
import 'package:k_chart_pw/chart_translations.dart';
import 'package:k_chart_pw/entity/extra_buy_sell_signal.dart';
import 'package:k_chart_pw/entity/extra_line.dart';
import 'package:k_chart_pw/entity/extra_text_label.dart';
import 'package:k_chart_pw/flutter_k_chart.dart';
import 'package:k_chart_pw/k_chart_widget.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.green,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key? key, this.title}) : super(key: key);
final String? title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
List<KLineEntity>? datas;
List<ExtraBuySellSignal>? extraBuySellSignals = [];
List<ExtraLine> extraLineList = [];
List<ExtraTextLabel> extraTextLabel = [];
bool showLoading = true;
MainState _mainState = MainState.MA;
bool _volHidden = false;
SecondaryState _secondaryState = SecondaryState.MACD;
bool isLine = true;
bool isChinese = true;
bool _hideGrid = false;
bool _showNowPrice = true;
List<DepthEntity>? _bids, _asks;
bool isChangeUI = false;
bool _isTrendLine = false;
ChartStyle chartStyle = ChartStyle();
ChartColors chartColors = ChartColors();
@override
void initState() {
super.initState();
getData('1day');
rootBundle.loadString('assets/depth.json').then((result) {
final parseJson = json.decode(result);
final tick = parseJson['tick'] as Map<String, dynamic>;
final List<DepthEntity> bids = (tick['bids'] as List<dynamic>)
.map<DepthEntity>(
(item) => DepthEntity(item[0] as double, item[1] as double))
.toList();
final List<DepthEntity> asks = (tick['asks'] as List<dynamic>)
.map<DepthEntity>(
(item) => DepthEntity(item[0] as double, item[1] as double))
.toList();
initDepth(bids, asks);
});
}
void initDepth(List<DepthEntity>? bids, List<DepthEntity>? asks) {
if (bids == null || asks == null || bids.isEmpty || asks.isEmpty) return;
_bids = [];
_asks = [];
double amount = 0.0;
bids.sort((left, right) => left.price.compareTo(right.price));
//累加买入委托量
bids.reversed.forEach((item) {
amount += item.vol;
item.vol = amount;
_bids!.insert(0, item);
});
amount = 0.0;
asks.sort((left, right) => left.price.compareTo(right.price));
//累加卖出委托量
asks.forEach((item) {
amount += item.vol;
item.vol = amount;
_asks!.add(item);
});
setState(() {});
}
@override
Widget build(BuildContext context) {
return ListView(
shrinkWrap: true,
children: <Widget>[
Stack(children: <Widget>[
Container(
height: 450,
width: double.infinity,
child: KChartWidget(
datas,
chartStyle,
chartColors,
isLine: isLine,
onSecondaryTap: () {
print('SSecondary Tap');
},
default_scale_x: 0.4,
extraBuySellSignals: this.extraBuySellSignals,
extraLineList: this.extraLineList,
extraTextLabelList: this.extraTextLabel,
isTrendLine: _isTrendLine,
mainState: _mainState,
volHidden: _volHidden,
secondaryState: _secondaryState,
fixedLength: 2,
timeFormat: TimeFormat.YEAR_MONTH_DAY,
translations: kChartTranslations,
showNowPrice: _showNowPrice,
//`isChinese` is Deprecated, Use `translations` instead.
isChinese: isChinese,
hideGrid: _hideGrid,
isTapShowInfoDialog: false,
maDayList: [1, 100, 1000],
),
),
if (showLoading)
Container(
width: double.infinity,
height: 450,
alignment: Alignment.center,
child: const CircularProgressIndicator()),
]),
buildButtons(),
if (_bids != null && _asks != null)
Container(
height: 230,
width: double.infinity,
child: DepthChart(_bids!, _asks!, chartColors),
)
],
);
}
Widget buildButtons() {
return Wrap(
alignment: WrapAlignment.spaceEvenly,
children: <Widget>[
button("Time Mode", onPressed: () => isLine = true),
button("K Line Mode", onPressed: () => isLine = false),
button("TrendLine", onPressed: () => _isTrendLine = !_isTrendLine),
button("Line:MA", onPressed: () => _mainState = MainState.MA),
button("Line:BOLL", onPressed: () => _mainState = MainState.BOLL),
button("Hide Line", onPressed: () => _mainState = MainState.NONE),
button("Secondary Chart:MACD",
onPressed: () => _secondaryState = SecondaryState.MACD),
button("Secondary Chart:KDJ",
onPressed: () => _secondaryState = SecondaryState.KDJ),
button("Secondary Chart:RSI",
onPressed: () => _secondaryState = SecondaryState.RSI),
button("Secondary Chart:WR",
onPressed: () => _secondaryState = SecondaryState.WR),
button("Secondary Chart:CCI",
onPressed: () => _secondaryState = SecondaryState.CCI),
button("Secondary Chart:Hide",
onPressed: () => _secondaryState = SecondaryState.NONE),
button(_volHidden ? "Show Vol" : "Hide Vol",
onPressed: () => _volHidden = !_volHidden),
button("Change Language", onPressed: () => isChinese = !isChinese),
button(_hideGrid ? "Show Grid" : "Hide Grid",
onPressed: () => _hideGrid = !_hideGrid),
button(_showNowPrice ? "Hide Now Price" : "Show Now Price",
onPressed: () => _showNowPrice = !_showNowPrice),
button("Customize UI", onPressed: () {
setState(() {
this.isChangeUI = !this.isChangeUI;
if (this.isChangeUI) {
chartColors.selectBorderColor = Colors.red;
chartColors.selectFillColor = Colors.red;
chartColors.lineFillColor = Colors.red;
chartColors.kLineColor = Colors.yellow;
} else {
chartColors.selectBorderColor = Color(0xff6C7A86);
chartColors.selectFillColor = Color(0xff0D1722);
chartColors.lineFillColor = Color(0x554C86CD);
chartColors.kLineColor = Color(0xff4C86CD);
}
});
}),
],
);
}
Widget button(String text, {VoidCallback? onPressed}) {
return TextButton(
onPressed: () {
if (onPressed != null) {
onPressed();
setState(() {});
}
},
child: Text(text),
style: TextButton.styleFrom(
primary: Colors.white,
minimumSize: const Size(88, 44),
padding: const EdgeInsets.symmetric(horizontal: 16.0),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(2.0)),
),
backgroundColor: Colors.blue,
),
);
}
void getData(String period) {
/*
* 可以翻墙使用方法1加载数据,不可以翻墙使用方法2加载数据,默认使用方法1加载最新数据
*/
final Future<String> future = getChatDataFromInternet(period);
// final Future<String> future = getChatDataFromJson();
future.then((String result) {
solveChatData(result);
}).catchError((_) {
showLoading = false;
setState(() {});
print('### datas error $_');
});
}
//获取火币数据,需要翻墙
Future<String> getChatDataFromInternet(String? period) async {
var url =
'https://api.huobi.br.com/market/history/kline?period=${period ?? '1day'}&size=300&symbol=btcusdt';
late String result;
final response = await http.get(Uri.parse(url));
if (response.statusCode == 200) {
result = response.body;
} else {
print('Failed getting IP address');
}
return result;
}
// 如果你不能翻墙,可以使用这个方法加载数据
Future<String> getChatDataFromJson() async {
return rootBundle.loadString('assets/chatData.json');
}
void solveChatData(String result) {
final Map parseJson = json.decode(result) as Map<dynamic, dynamic>;
final list = parseJson['data'] as List<dynamic>;
datas = list
.map((item) => KLineEntity.fromJson(item as Map<String, dynamic>))
.toList()
.reversed
.toList()
.cast<KLineEntity>();
DataUtil.calculate(datas!);
var theData = datas;
if (theData != null && theData.length > 10) {
var theTime = theData[theData.length - 2].time;
if (theTime != null) {
extraBuySellSignals?.add(
ExtraBuySellSignal(time: theTime, isBuy: true, isSell: false));
}
theTime = theData[theData.length - 8].time;
if (theTime != null) {
extraBuySellSignals?.add(
ExtraBuySellSignal(time: theTime, isBuy: false, isSell: true));
}
}
extraLineList.add(ExtraLine(
startIndex: 0,
startPrice: 29888,
endIndex: theData != null ? theData.length - 1 : 100,
endPrice: 60000,
color: Colors.blue,
strokeWidth: 2.0));
extraLineList.add(ExtraLine(
startIndex: 0,
startPrice: 50000,
endIndex: 100,
endPrice: 40000,
color: Colors.amberAccent));
extraTextLabel.add(ExtraTextLabel(
startIndex: 10, startPrice: 50000, textContent: " world you "));
extraTextLabel.add(ExtraTextLabel(
startIndex: 100, startPrice: 50000, textContent: " hello you "));
showLoading = false;
setState(() {});
}
}
Download Details:
Author: pecpwee
Source Code: https://github.com/pecpwee/k_chart
1597014000
Flutter Google cross-platform UI framework has released a new version 1.20 stable.
Flutter is Google’s UI framework to make apps for Android, iOS, Web, Windows, Mac, Linux, and Fuchsia OS. Since the last 2 years, the flutter Framework has already achieved popularity among mobile developers to develop Android and iOS apps. In the last few releases, Flutter also added the support of making web applications and desktop applications.
Last month they introduced the support of the Linux desktop app that can be distributed through Canonical Snap Store(Snapcraft), this enables the developers to publish there Linux desktop app for their users and publish on Snap Store. If you want to learn how to Publish Flutter Desktop app in Snap Store that here is the tutorial.
Flutter 1.20 Framework is built on Google’s made Dart programming language that is a cross-platform language providing native performance, new UI widgets, and other more features for the developer usage.
Here are the few key points of this release:
In this release, they have got multiple performance improvements in the Dart language itself. A new improvement is to reduce the app size in the release versions of the app. Another performance improvement is to reduce junk in the display of app animation by using the warm-up phase.
If your app is junk information during the first run then the Skia Shading Language shader provides for pre-compilation as part of your app’s build. This can speed it up by more than 2x.
Added a better support of mouse cursors for web and desktop flutter app,. Now many widgets will show cursor on top of them or you can specify the type of supported cursor you want.
Autofill was already supported in native applications now its been added to the Flutter SDK. Now prefilled information stored by your OS can be used for autofill in the application. This feature will be available soon on the flutter web.
A new widget for interaction
InteractiveViewer
is a new widget design for common interactions in your app like pan, zoom drag and drop for resizing the widget. Informations on this you can check more on this API documentation where you can try this widget on the DartPad. In this release, drag-drop has more features added like you can know precisely where the drop happened and get the position.
In this new release, there are many pre-existing widgets that were updated to match the latest material guidelines, these updates include better interaction with Slider
and RangeSlider
, DatePicker
with support for date range and time picker with the new style.
pubspec.yaml
formatOther than these widget updates there is some update within the project also like in pubspec.yaml
file format. If you are a flutter plugin publisher then your old pubspec.yaml
is no longer supported to publish a plugin as the older format does not specify for which platform plugin you are making. All existing plugin will continue to work with flutter apps but you should make a plugin update as soon as possible.
Visual Studio code flutter extension got an update in this release. You get a preview of new features where you can analyze that Dev tools in your coding workspace. Enable this feature in your vs code by _dart.previewEmbeddedDevTools_
setting. Dart DevTools menu you can choose your favorite page embed on your code workspace.
The updated the Dev tools comes with the network page that enables network profiling. You can track the timings and other information like status and content type of your** network calls** within your app. You can also monitor gRPC traffic.
Pigeon is a command-line tool that will generate types of safe platform channels without adding additional dependencies. With this instead of manually matching method strings on platform channel and serializing arguments, you can invoke native class and pass nonprimitive data objects by directly calling the Dart
method.
There is still a long list of updates in the new version of Flutter 1.2 that we cannot cover in this blog. You can get more details you can visit the official site to know more. Also, you can subscribe to the Navoki newsletter to get updates on these features and upcoming new updates and lessons. In upcoming new versions, we might see more new features and improvements.
You can get more free Flutter tutorials you can follow these courses:
#dart #developers #flutter #app developed #dart devtools in visual studio code #firebase local emulator suite in flutter #flutter autofill #flutter date picker #flutter desktop linux app build and publish on snapcraft store #flutter pigeon #flutter range slider #flutter slider #flutter time picker #flutter tutorial #flutter widget #google flutter #linux #navoki #pubspec format #setup flutter desktop on windows
1647351133
Minimum educational required – 10+2 passed in any stream from a recognized board.
The age limit is 18 to 25 years. It may differ from one airline to another!
Physical and Medical standards –
You can become an air hostess if you meet certain criteria, such as a minimum educational level, an age limit, language ability, and physical characteristics.
As can be seen from the preceding information, a 10+2 pass is the minimal educational need for becoming an air hostess in India. So, if you have a 10+2 certificate from a recognized board, you are qualified to apply for an interview for air hostess positions!
You can still apply for this job if you have a higher qualification (such as a Bachelor's or Master's Degree).
So That I may recommend, joining Special Personality development courses, a learning gallery that offers aviation industry courses by AEROFLY INTERNATIONAL AVIATION ACADEMY in CHANDIGARH. They provide extra sessions included in the course and conduct the entire course in 6 months covering all topics at an affordable pricing structure. They pay particular attention to each and every aspirant and prepare them according to airline criteria. So be a part of it and give your aspirations So be a part of it and give your aspirations wings.
Read More: Safety and Emergency Procedures of Aviation || Operations of Travel and Hospitality Management || Intellectual Language and Interview Training || Premiere Coaching For Retail and Mass Communication || Introductory Cosmetology and Tress Styling || Aircraft Ground Personnel Competent Course
For more information:
Visit us at: https://aerofly.co.in
Phone : wa.me//+919988887551
Address: Aerofly International Aviation Academy, SCO 68, 4th Floor, Sector 17-D, Chandigarh, Pin 160017
Email: info@aerofly.co.in
#air hostess institute in Delhi,
#air hostess institute in Chandigarh,
#air hostess institute near me,
#best air hostess institute in India,
#air hostess institute,
#best air hostess institute in Delhi,
#air hostess institute in India,
#best air hostess institute in India,
#air hostess training institute fees,
#top 10 air hostess training institute in India,
#government air hostess training institute in India,
#best air hostess training institute in the world,
#air hostess training institute fees,
#cabin crew course fees,
#cabin crew course duration and fees,
#best cabin crew training institute in Delhi,
#cabin crew courses after 12th,
#best cabin crew training institute in Delhi,
#cabin crew training institute in Delhi,
#cabin crew training institute in India,
#cabin crew training institute near me,
#best cabin crew training institute in India,
#best cabin crew training institute in Delhi,
#best cabin crew training institute in the world,
#government cabin crew training institute
1598396940
Flutter is an open-source UI toolkit for mobile developers, so they can use it to build native-looking** Android and iOS** applications from the same code base for both platforms. Flutter is also working to make Flutter apps for Web, PWA (progressive Web-App) and Desktop platform (Windows,macOS,Linux).
Flutter was officially released in December 2018. Since then, it has gone a much stronger flutter community.
There has been much increase in flutter developers, flutter packages, youtube tutorials, blogs, flutter examples apps, official and private events, and more. Flutter is now on top software repos based and trending on GitHub.
What is Flutter? this question comes to many new developer’s mind.
Flutter means flying wings quickly, and lightly but obviously, this doesn’t apply in our SDK.
So Flutter was one of the companies that were acquired by **Google **for around $40 million. That company was based on providing gesture detection and recognition from a standard webcam. But later when the Flutter was going to release in alpha version for developer it’s name was Sky, but since Google already owned Flutter name, so they rename it to Flutter.
Flutter is used in many startup companies nowadays, and even some MNCs are also adopting Flutter as a mobile development framework. Many top famous companies are using their apps in Flutter. Some of them here are
and many more other apps. Mobile development companies also adopted Flutter as a service for their clients. Even I was one of them who developed flutter apps as a freelancer and later as an IT company for mobile apps.
#dart #flutter #uncategorized #flutter framework #flutter jobs #flutter language #flutter meaning #flutter meaning in hindi #google flutter #how does flutter work #what is flutter
1644991598
The Ultimate Guide To Tik Tok Clone App With Firebase - Ep 2
In this video, I'm going to show you how to make a Cool Tik Tok App a new Instagram using Flutter,firebase and visual studio code.
In this tutorial, you will learn how to Upload a Profile Pic to Firestore Data Storage.
🚀 Nice, clean and modern TikTok Clone #App #UI made in #Flutter⚠️
Starter Project : https://github.com/Punithraaj/Flutter_Tik_Tok_Clone_App/tree/Episode1
► Timestamps
0:00 Intro 0:20
Upload Profile Screen
16:35 Image Picker
20:06 Image Cropper
24:25 Firestore Data Storage Configuration.
⚠️ IMPORTANT: If you want to learn, I strongly advise you to watch the video at a slow speed and try to follow the code and understand what is done, without having to copy the code, and then download it from GitHub.
► Social Media
GitHub: https://github.com/Punithraaj/Flutter_Tik_Tok_Clone_App.git
LinkedIn: https://www.linkedin.com/in/roaring-r...
Twitter: https://twitter.com/roaringraaj
Facebook: https://www.facebook.com/flutterdartacademy
► Previous Episode : https://youtu.be/QnL3fr-XpC4
► Playlist: https://youtube.com/playlist?list=PL6vcAuTKAaYe_9KQRsxTsFFSx78g1OluK
I hope you liked it, and don't forget to like,comment, subscribe, share this video with your friends, and star the repository on GitHub!
⭐️ Thanks for watching the video and for more updates don't forget to click on the notification.
⭐️Please comment your suggestion for my improvement.
⭐️Remember to like, subscribe, share this video, and star the repo on Github :)
Hope you enjoyed this video!
If you loved it, you can Buy me a coffee : https://www.buymeacoffee.com/roaringraaj
LIKE & SHARE & ACTIVATE THE BELL Thanks For Watching :-)
https://youtu.be/F_GgZVD4sDk
#flutter tutorial - tiktok clone with firebase #flutter challenge @tiktokclone #fluttertutorial firebase #flutter firebase #flutter pageview #morioh #flutter
1627129340
Looking for the best-in-class Flutter app development services in USA? We at AppClues Infotech offer next-generation mobile app development services using Google’s powerful framework, Flutter.
Our extremely trustworthy and exceptional Flutter app developers help enterprises and businesses to design high-quality native interfaces on cross-platform.
If you have any project ideas, hiring our Flutter app development services helps you get multi-platform applications with seamless animations, appealing UI, and excellent performance.
Flutter Mobile App Development Services
• Flutter Custom App Development
• Flutter App UI/UX Design
• Flutter Widget Development
• Flutter App QA Testing & Maintenance
• Flutter App Updations & Migration
• Flutter for Embedded Devices
• Flutter Development Consultation
For more info:
Website: https://www.appcluesinfotech.com/
Email: info@appcluesinfotech.com
Call: +1-978-309-9910
#top flutter app development company in usa #best flutter app development service in usa #best flutter app development company usa #hire flutter app developers in usa #best flutter app development services in usa #custom flutter app development services in usa