babstrap_settings_screen 0.0.1
babstrap_settings_screen: ^0.0.1 copied to clipboard
This package helps you to display a nice settings screen with Flutter in a very simple and fast way. Use it to have MVP right now.
Babstrap settings screen #
This package helps you to display a nice settings screen with Flutter in a very simple and fast way.
Compatible with Android & iOS & Web.
Showcase #

- add the following dependency in your
pubspact.yaml
file:
dependencies:
babstrap_settings_screen : "^lastest_version"
- add import in your
dart
code:
import 'package:babstrap_settings_screen/babstrap_settings_screen.dart';
- Example
Padding(
padding: const EdgeInsets.all(10),
child: ListView(
children: [
SettingsGroup(
items: [
SettingsItem(
onTap: () {},
icons: CupertinoIcons.pencil_outline,
iconStyle: IconStyle(),
title: 'Appearance',
subtitle: "Make Ziar'App yours",
),
SettingsItem(
onTap: () {},
icons: Icons.dark_mode_rounded,
iconStyle: IconStyle(
iconsColor: Colors.white,
withBackground: true,
backgroundColor: Colors.red,
),
title: 'Dark mode',
subtitle: "Automatic",
trailing: Switch.adaptive(
value: false,
onChanged: (value) {},
),
),
],
),
SettingsGroup(
items: [
SettingsItem(
onTap: () {},
icons: Icons.info_rounded,
iconStyle: IconStyle(
backgroundColor: Colors.purple,
),
title: 'About',
subtitle: "Learn more about Ziar'App",
),
],
),
// You can add a settings title
SettingsGroup(
settingsGroupTitle: "Account",
items: [
SettingsItem(
onTap: () {},
icons: Icons.exit_to_app_rounded,
title: "Sign Out",
),
SettingsItem(
onTap: () {},
icons: CupertinoIcons.delete_solid,
title: "Delete account",
titleStyle: TextStyle(
color: Colors.red,
fontWeight: FontWeight.bold,
),
),
],
),
],
),
),
Licence #
Licence MIT