Widgets 10 | Placeholder
In this tutorial, you will learn how to use the Placeholder in the flutter.
Before Start
import "package:flutter/material.dart";
import 'package:flutter_widgets/const/_const.dart';
class PlaceHolderPage extends StatefulWidget {
@override
_PlaceHolderState createState() => _PlaceHolderState();
}
class _PlaceHolderState extends State<PlaceHolderPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(PageName.PLACE_HOLDER),
),
body: SingleChildScrollView(
child: Column(
children: <Widget>[
//our code here.
SizedBox(height: 600)
],
),
),
);
}
}
Simple Use

Constructor
color

strokeWidth

fallbackWidth & fallbackHeight

Conclusion
Whole code in GitHub,star to support.
Last updated
Was this helpful?