Encrypted peer-to-peer IM for data security. Own data, own privacy. (Rust+Flutter)
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.
 
 
 
 
 
 

37 lines
1.0 KiB

import 'package:flutter/material.dart';
class ListSystemApp extends StatelessWidget {
final String name;
final IconData icon;
final VoidCallback callback;
const ListSystemApp({Key? key, required this.name, required this.icon, required this.callback}) : super(key: key);
@override
Widget build(BuildContext context) {
final color = Theme.of(context).colorScheme;
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: callback,
child: SizedBox(
height: 55.0,
child: Row(
children: [
Container(
width: 45.0,
height: 45.0,
margin: const EdgeInsets.only(left: 20.0, right: 15.0),
child: Icon(icon, color: color.primary, size: 24.0),
decoration: BoxDecoration(
color: color.surface,
borderRadius: BorderRadius.circular(10.0)
),
),
Text(name, style: TextStyle(fontSize: 16.0)),
],
),
),
);
}
}