import 'package:dialer/classes/contactClass.dart'; import 'package:flutter/material.dart'; List histories = [ History("Hello"), ]; class HistoryPage extends StatefulWidget { const HistoryPage({super.key}); @override _HistoryPageState createState() => _HistoryPageState(); } class _HistoryPageState extends State { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.black, appBar: AppBar( title: const Text('History'), ), body: ListView.builder( itemCount: histories.length, itemBuilder: (context, index) { // }, ), ); } } class History { final String text; History(this.text); }