SHARE
TWEET

Untitled

a guest Aug 21st, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Future dataline() async {
  2.  
  3.         final dao1 = Provider.of<CommandeDao>(context);
  4.  
  5.         List<GeneratorCommandeResult> liste = await dao1.GeneratorCommande();
  6.         return liste;
  7.   }
  8.  
  9.   Material mychart1Items(String title, String priceVal,String subtitle) {
  10.     Future liste  = dataline() ;
  11.  
  12.  
  13.     return Material(
  14.       color: Colors.white,
  15.       elevation: 14.0,
  16.       borderRadius: BorderRadius.circular(24.0),
  17.       shadowColor: Color(0x802196F3),
  18.       child: Center(
  19.         child: Padding(
  20.           padding: EdgeInsets.all(8.0),
  21.           child: Row(
  22.             mainAxisAlignment: MainAxisAlignment.center,
  23.             children: <Widget>[
  24.               Column(
  25.                 mainAxisAlignment: MainAxisAlignment.center,
  26.                 children: <Widget>[
  27.  
  28.                   Padding(
  29.                     padding: EdgeInsets.all(1.0),
  30.                     child: new Sparkline(
  31.                       data: liste,
  32.                       lineColor: Color(0xffff6101),
  33.                       pointsMode: PointsMode.all,
  34.                       pointSize: 8.0,
  35.                     ),
  36.                   ),
  37.  
  38.                 ],
  39.               ),
  40.             ],
  41.           ),
  42.         ),
  43.       ),
  44.     );
  45.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top