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

Second GET API Calling with Bloc simple Example in Flutter

Stack Container Scrollable Card widget UI with Custom Widget

Pagination with Bloc Pattern in Flutter