import 'dart:convert'; import 'package:http/http.dart' as http; import…
- User
import 'dart:convert'; import 'package:http/http.dart' as http; import 'package:flutter/material.dart';
void main() { runApp(const MyApp()); }
class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key);
@override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( title: const Text('Open Events'), ), body: const OpenEventsList(), ), ); } }
// stores ExpansionPanel state information class Item { Item({ required this.expandedValue, required this.headerValue, required this.imgValue, this.isExpanded = false, });
String expandedValue; String headerValue; String imgValue; bool isExpanded; }
List generateItems(int numberOfItems) { return List.generate(numberOfItems, (int index) { return Item( headerValue: 'Panel index', imgValue: '', ); }); }
- Assistant