30 lines
738 B
Dart
30 lines
738 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class TreeviewParentWidget extends StatelessWidget {
|
|
final String text;
|
|
//final DateTime lastModified;
|
|
|
|
TreeviewParentWidget({@required this.text});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Widget parentWidget = Text(
|
|
this.text,
|
|
style: TextStyle(fontWeight: FontWeight.w800, color: Colors.blueAccent, backgroundColor: Colors.transparent),
|
|
);
|
|
|
|
Icon icon = Icon(Icons.person);
|
|
|
|
return Card(
|
|
color: Colors.white38,
|
|
shadowColor: Colors.black54,
|
|
elevation: 0.0,
|
|
child: ListTile(
|
|
leading: icon,
|
|
title: parentWidget,
|
|
//subtitle: lastModifiedWidget,
|
|
),
|
|
);
|
|
}
|
|
} |