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.

33 lines
797 B

import 'package:flutter/material.dart';
/// UnfocusParser
class UnfocusParser extends StatelessWidget {
final dynamic data;
const UnfocusParser({Key? key, required this.data}) : super(key: key);
@override
Widget build(BuildContext context) {
return Material(
color: Colors.white,
child: ListTile(
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Scaffold(
appBar: AppBar(title: Text(data.runtimeType.toString())),
body: Text(data.toString()),
),
),
),
title: Text(
data.toString(),
maxLines: 1,
),
trailing: Chip(
label: Text(data.runtimeType.toString()),
),
),
);
}
}