native settings for flutter
create nat,ive settings for flutter app in a minutes.
installing:
in your pubspec.yaml
dependencies:
settings_ui: ^0.1.1
import 'package:settings_ui/settings_ui.dart';
basic usage:
settingslist(
sections: [
settingssection(
title: 'section',
tiles: [
settingstile(
title: 'language',
subtitle: 'english',
leading: icon(icons.language),
ontap: () {},
),
settingstile.switchtile(
title: 'use fingerprint',
leading: icon(icons.fingerprint),
switchvalue: value,
ontoggle: (bool value) {},
),
],
),
],
)
settings ui supports dark mode:
Comments are closed.