change trading view
This commit is contained in:
parent
5c9c3152e0
commit
5f73b3fcb7
@ -225,7 +225,7 @@ class _TradingState extends State<Trading> {
|
||||
"${titlelist["2. From Symbol"]}/${titlelist["3. To Symbol"]}"),
|
||||
//legend: const Legend(isVisible: true),
|
||||
//trackballBehavior: _trackballBehavior,
|
||||
series: <ChartSeries>[
|
||||
series: <CartesianSeries>[
|
||||
AreaSeries<Modeltradenet, DateTime>(
|
||||
borderColor: const Color(0xFF6334A9),
|
||||
borderWidth: 1,
|
||||
@ -233,7 +233,6 @@ class _TradingState extends State<Trading> {
|
||||
dataSource: chartDatatrade,
|
||||
xValueMapper: (Modeltradenet sales, _) => sales.date,
|
||||
yValueMapper: (Modeltradenet sales, _) => sales.close,
|
||||
|
||||
// lowValueMapper: (Modeltradenet sales, _) => sales.low,
|
||||
// highValueMapper: (Modeltradenet sales, _) => sales.high,
|
||||
// openValueMapper: (Modeltradenet sales, _) => sales.open,
|
||||
@ -246,20 +245,16 @@ class _TradingState extends State<Trading> {
|
||||
xValueMapper: (Modeltradenet sales, _) => sales.date,
|
||||
yValueMapper: (Modeltradenet sales, _) => sales.close,
|
||||
markerSettings: MarkerSettings(
|
||||
isVisible: true, // Afficher les marqueurs
|
||||
shape: DataMarkerType
|
||||
.horizontalLine, // Forme du marqueur (circle, square, etc.)
|
||||
color: const Color(0xFF6334A9)
|
||||
.withOpacity(0.5), // Couleur des marqueurs
|
||||
width: 1000, // Largeur des marqueurs
|
||||
isVisible: true,
|
||||
shape: DataMarkerType.horizontalLine,
|
||||
color: const Color(0xFF6334A9).withOpacity(0.5),
|
||||
width: 1000,
|
||||
),
|
||||
dataLabelSettings: const DataLabelSettings(
|
||||
offset: Offset(-50, 25),
|
||||
useSeriesColor: true,
|
||||
borderWidth: 2,
|
||||
borderColor: Color(0xFF6334A9),
|
||||
// connectorLineSettings: ConnectorLineSettings(
|
||||
// width: 2, color: Colors.red, type: ConnectorType.curve),
|
||||
isVisible: true,
|
||||
alignment: ChartAlignment.center,
|
||||
labelAlignment: ChartDataLabelAlignment.bottom,
|
||||
@ -272,14 +267,12 @@ class _TradingState extends State<Trading> {
|
||||
xValueMapper: (Modeltradenet sales, _) => sales.date,
|
||||
yValueMapper: (Modeltradenet sales, _) => sales.close,
|
||||
markerSettings: MarkerSettings(
|
||||
isVisible: true, // Afficher les marqueurs
|
||||
shape: DataMarkerType
|
||||
.circle, // Forme du marqueur (circle, square, etc.)
|
||||
color: Colors.white
|
||||
.withOpacity(0.5), // Couleur des marqueurs
|
||||
width: 4, // Largeur des marqueurs
|
||||
isVisible: true,
|
||||
shape: DataMarkerType.circle,
|
||||
color: Colors.white.withOpacity(0.5),
|
||||
width: 4,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
primaryXAxis: DateTimeAxis(
|
||||
maximum: DateTime.now().add(const Duration(minutes: 15)),
|
||||
|
||||
@ -52,11 +52,17 @@ class _AccueilState extends State<Accueil> with SingleTickerProviderStateMixin {
|
||||
}
|
||||
|
||||
Future<void> initConnectivity() async {
|
||||
final ConnectivityResult result = await _connectivity.checkConnectivity();
|
||||
final List<ConnectivityResult> results =
|
||||
await _connectivity.checkConnectivity();
|
||||
final ConnectivityResult result =
|
||||
results.isNotEmpty ? results.first : ConnectivityResult.none;
|
||||
setState(() {
|
||||
_connectionStatus = result;
|
||||
});
|
||||
_connectivity.onConnectivityChanged.listen((ConnectivityResult status) {
|
||||
_connectivity.onConnectivityChanged
|
||||
.listen((List<ConnectivityResult> results) {
|
||||
final ConnectivityResult status =
|
||||
results.isNotEmpty ? results.first : ConnectivityResult.none;
|
||||
setState(() {
|
||||
_connectionStatus = status;
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user