Skip to content

Instantly share code, notes, and snippets.

@hacker1024
Last active January 26, 2021 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacker1024/f68f9b38298f1283bae8a1ef3107a42c to your computer and use it in GitHub Desktop.
Save hacker1024/f68f9b38298f1283bae8a1ef3107a42c to your computer and use it in GitHub Desktop.
Material settings section title widget for Flutter.
import 'package:flutter/material.dart';
class SettingsSectionTitle extends StatelessWidget {
final String title;
const SettingsSectionTitle({
Key? key,
required this.title,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(top: 21.5, bottom: 21.5, left: 72),
child: Text(
title,
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Theme.of(context).accentColor,
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment