LinearProgressIndicator in Flutter

 import "package:flutter/material.dart";


void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
title: "LinearProgressIndicator",
debugShowCheckedModeBanner: false,
theme: ThemeData(
appBarTheme: const AppBarTheme(
backgroundColor: Colors.grey,
centerTitle: true,
),
),
home: const LinearProgressIndicatorPractice(),
);
}
}

class LinearProgressIndicatorPractice extends StatelessWidget {
const LinearProgressIndicatorPractice({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text(
"LinearProgressIndicator",
style: TextStyle(fontWeight: FontWeight.bold),
),
centerTitle: true,
),
body: const Center(
child: LinearProgressIndicator(
color: Colors.blue,
),
),
);
}
}



Comments

Popular posts from this blog

Pagination with Bloc Pattern in Flutter

Pagination First Practical in Flutter

ExpansionPanel with ExpansionPanelList with Complete Collapse Operation in Flutter