G-EIP-700-TLS-7-1-eip-steph.../lib/pages/history.dart

39 lines
743 B
Dart

import 'package:dialer/classes/contactClass.dart';
import 'package:flutter/material.dart';
List<History> histories = [
History("Hello"),
];
class HistoryPage extends StatefulWidget {
const HistoryPage({super.key});
@override
_HistoryPageState createState() => _HistoryPageState();
}
class _HistoryPageState extends State<HistoryPage> {
@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);
}