phone method

  1. @override
Widget? phone()
override

Implementation

@override
Widget? phone() {
  return ListView.builder(
    controller: _scrollController,
    itemCount: prompts.length,
    itemBuilder: (BuildContext context, int index) {
      return InkWell(
        onTap: () => {onPromptClick(prompts[index].prompt)},
        child:   Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const SizedBox(height: 10),
            Container(
              margin: const EdgeInsets.all(2),
              padding: const EdgeInsets.all(2),
              decoration: BoxDecoration(
                color: const Color.fromARGB(20, 255, 255, 255),
                borderRadius: BorderRadius.circular(8),
              ),
              child: Text(
                  prompts[index].prompt,
                  maxLines: 2,
                  overflow: TextOverflow.ellipsis,
                  style: const TextStyle(
                    fontSize: 16,
                    color: Color.fromARGB(255, 102, 101, 101),
                  ),
              ),
            ),
          ],
        )
      );
    },
  );
}