flutter y 축 값 interval 이용 나누기

  leftTitles: SideTitles ( showTitles: true, getTextStyles: (value) => const TextStyle ( color: Color ( 0xff7589a2 ) , fontWeight: FontWeight. bold , fontSize: 14 ) , margin: 10 , interval: 500 ) ,

flutter fl_chat line

이미지
// chart 용 start final maxYValue = chartDataMain[ 4 ]. maxY .toDouble() ; final List<double> saleValues = [] ; final List<double> deposValues = [] ; final List<double> holdValues = [] ; final List<double> settleValues = [] ; for ( var i = 0 ; i < chartDataMain. length ; i++) { saleValues.add(chartDataMain[i]. amt .toDouble()) ; deposValues.add(chartDataMain[i]. depAmt .toDouble()) ; holdValues.add(chartDataMain[i]. holdAmt .toDouble()) ; if (chartDataMainSettle != null ) { settleValues.add(chartDataMainSettle[i]. withCust .toDouble()) ; } ; } // 매출 List<FlSpot> salesSpots = saleValues.asMap(). entries .map((e) { return FlSpot (e. key .toDouble() , e. value ) ; }).toList() ; // 입금 List<FlSpot> deposSpots = deposValues.asMap(). entries .map((e) { return FlSpot (e. key .toDouble() , e. value ) ; }).toList() ; // 미입금 List<FlSpot> holdSpots = holdValues.asMap(). entries .map((e) { return FlSpot (e. key .toDouble() , e. valu...

flutter color code hex

Flutter에서 Color 클래스는 정수만 매개변수로 받기에, 문자열인 Hex를 정수로 바꾸어 주기만 하면 사용 가능합니다! 또한 정수로 바꾸는 과정에서, 불투명도를 항상 지정해주어야합니다! 전체 불투명도는 255이므로, 이를 16진수로 바꾸면 FF입니다. 즉, 불투명도를 지정해준 0xff뒤에 여러분이 사용하시고 싶은 Hex값을 붙이면 끝입니다! 예) 만약 #3195f7을 바꾸고 싶다면? 불투명도를 지정해주는 0xff뒤에 Hex값을 붙이면 됩니다! 즉, 0xff3195f7이 되는것입니다!

json data dart

이미지
응답을 확인 하면 된다

flutter Failed 'hasSize' ListView

expanded: ListView( shrinkWrap: true, children: [ Text( "article.bㅂㅂㅂㅂㅂfdsfsdfsddddddddddddddddddddddddddddddddddddf fsdfsdfsdㅂody", ), Text( "22222222", ), ], ), shrinkWrap: true 를 선언을 해 준다 또는 사이즈 지정을 해 준다

flutter 에서 이미지 넣어는데 반영이 안되는 경우 /정중앙에 타이틀

flutter 에서 이미지 넣어는데 반영이 안되는 경우 assets: - images/ - images/common/ 새로 고침 및 재기동 한다, AppBar headerNav({String title}) { return AppBar( title: new Text( '타이틀', textAlign: TextAlign.center, // style: new TextStyle(fontSize: 20.0, color: Colors.white), style: TextStyle(color: Colors.white, fontSize: 22, fontFamily: "NanumGothic", fontWeight: FontWeight.w700, ), ), centerTitle: true, // 정중앙에 타이틀 backgroundColor: Color(0xff324bca), leading: Padding( padding: const EdgeInsets.all(8.0), child: IconButton( icon: Image.asset( "images/common/menu_icon.png", color: Colors.white, ), onPressed: () {}, ), ), actions: [ IconButton( icon: Image.asset( "images/common/logo.png", color: Colors.white, ), onPressed: () {}, ), ], );

flutter comma intl

  import 'package:flutter/material.dart' ; import 'package:intl/intl.dart' show NumberFormat ; // 전역 변수 class Common { // static String localcontextUrl="http://192.168.0.8:8080"; static String contextUrl = "http://192.168.0.8:8080" ; // 일반적인 alert 창 제어 static void Alert (BuildContext context , String titles , String message) { var alert = new AlertDialog ( title: new Text (titles) , content: Container ( child: Row ( children: <Widget>[ Text (message)] , ) , ) , actions: <Widget>[ new FlatButton ( onPressed: () => Navigator. pop (context) , child: Text ( " 확인 " , style: TextStyle (color: Colors. black ) , )) ] , ) ; showDialog( context: con...