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

39 lines
743 B
Dart
Raw Normal View History

2024-09-16 15:07:04 +00:00
import 'package:dialer/classes/contactClass.dart';
import 'package:flutter/material.dart';
List<History> histories = [
2024-10-17 13:16:39 +00:00
History("Hello"),
2024-09-16 15:07:04 +00:00
];
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) {
2024-10-17 13:16:39 +00:00
//
2024-09-16 15:07:04 +00:00
},
),
);
}
}
class History {
2024-10-17 13:16:39 +00:00
final String text;
2024-09-16 15:07:04 +00:00
2024-10-17 13:16:39 +00:00
History(this.text);
2024-09-16 15:07:04 +00:00
}