Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
726 B

import 'package:flutter/material.dart';
class SettingTile extends StatelessWidget {
const SettingTile(
this.context, {
super.key,
this.leading,
this.title,
this.trailing,
this.onTap,
});
final BuildContext context;
final IconData? leading;
final String? title;
final Widget? trailing;
final Function()? onTap;
@override
Widget build(BuildContext context) {
return Card(
child: ListTile(
leading: leading != null
? Icon(
leading,
color: Theme.of(context).colorScheme.secondary,
)
: null,
title: Text(title ?? ''),
trailing: trailing,
onTap: onTap,
),
);
}
}