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
Post a Comment