Posts

Showing posts with the label material-design

LinearProgressIndicator Flutter Usage

I am learning Flutter allthought i dont know if it is right decition or not. Any way i want to use LinearProgressIndicator Component from Material Librery but i didnt get how to use it i tried this code: import 'dart:async'; import 'package:flutter/material.dart'; void main() { runApp(new MaterialApp( debugShowCheckedModeBanner: false, home: new MyApp(), )); } class MyApp extends StatefulWidget { @override MyAppState createState() => new MyAppState(); } class MyAppState extends State<MyApp> { @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text('Slider Demo'), ), body: new Container( color: Colors.blueAccent, padding: new EdgeInsets.all(32.0), child: new ProgressIndicatorDemo(), ), ); } } class ProgressIndicatorDemo extends StatefulWidget { @override _ProgressIndicatorDemoState createState() => new _ProgressIndicatorDemoState(); } class _ProgressIndicatorDemoState extends ...