Last active
January 26, 2021 04:34
-
-
Save hacker1024/f68f9b38298f1283bae8a1ef3107a42c to your computer and use it in GitHub Desktop.
Material settings section title widget for Flutter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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