Create an awesome About Page for your Flutter App in 2 minutes
This package is highly inspired from android_about_page
Import the flutter_about_page package.
import "package:flutter_about_page/flutter_about_page.dart";
And Initialize the AboutPage object.
AboutPage ab = AboutPage();
// You can also set Custom Font Family for description and list items
ab.customStyle(descFontFamily: "Roboto",listTextFontFamily: "RobotoMedium");
- Set Image
ab.setImage("assets/logo.png")
-
Set Description
dart ab.setDescription("lorem ipsum")
-
Add predefined Social network The library has already some predefined social networks like :
ab.addFacebook("sulav.parajuli.90"),
ab.addTwitter("sulav"),
ab.addYoutube("UCeVMnSShP_Iviwkknt83cww"),
ab.addPlayStore("com.tripline.radioapp"),
ab.addInstagram("sulav")
- Add Email
ab.addEmail("lackminds20@gmail.com")
- Add Website
ab.addWebsite("http://www.facebook.com")
- Add custom Widget
ab.addWidget(
Text(
"Version 1.2",
style: TextStyle(
fontFamily: "RobotoMedium"
),
),
)
- Add Custom List Item
ab.addItemWidget(Icon(Icons.add), "Title")
- Complete Example
class Example extends StatelessWidget {
@override
Widget build(BuildContext context) {
AboutPage ab = AboutPage();
ab.customStyle(descFontFamily: "Roboto",listTextFontFamily: "RobotoMedium");
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
title: Text("About Page"),
centerTitle: true,
),
body: ListView(
children: [
ab.setImage("assets/logo.png"),
ab.addDescription(" Nullam elit magna, blandit vitae feugiat vel, "),
ab.addWidget(
Text(
"Version 1.2",
style: TextStyle(
fontFamily: "RobotoMedium"
),
),
),
ab.addGroup("Connect with us"),
ab.addEmail("lackminds20@gmail.com"),
ab.addFacebook("sulav.parajuli.90"),
ab.addTwitter("sulav"),
ab.addYoutube("UCeVMnSShP_Iviwkknt83cww"),
ab.addPlayStore("com.tripline.radioapp"),
ab.addGithub("npsulav"),
ab.addInstagram("sulav"),
ab.addWebsite("http://www.facebook.com"),
ab.addItemWidget(Icon(Icons.add), "title")
],
)
);
}
}