Skip to content

Instantly share code, notes, and snippets.

View CoolONEOfficial's full-sized avatar
💭
The programmer creates a new one, the coder follows the instructions

Nikolai Trukhin CoolONEOfficial

💭
The programmer creates a new one, the coder follows the instructions
View GitHub Profile
@CoolONEOfficial
CoolONEOfficial / Flutter preferences screen button
Created December 6, 2018 19:39
Function returns preferences screen button widget
Widget buildPreferenceButton(BuildContext context,
{@required String title,
@required String description,
@required VoidCallback onPressed,
Widget rightWidget}) {
var rowChildren = <Widget>[
Expanded(
child: ListBody(
children: <Widget>[
Text(