Compare commits

..

No commits in common. "282982567003202d92e7e9d7e95d69f9d526f123" and "20046f13f6614cd37e907ee2b7e6bb8f60495dbe" have entirely different histories.

View File

@ -31,8 +31,7 @@ class _UniversityScreenState extends State<UniversityScreen> {
final TextEditingController ageController = TextEditingController();
List<String> selectedCourses = [];
void _addStudent() async {
await Future.delayed(Duration(seconds: 1));
void _addStudent() {
String name = nameController.text;
int age = int.tryParse(ageController.text) ?? 0;
@ -178,7 +177,16 @@ class _Card extends StatelessWidget {
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(20),
child: SizedBox(
height: 140,
width: 100,
child: Image.network(imageUrl ?? '',
fit: BoxFit.cover,
errorBuilder: (_, __, ___) => const Placeholder(),),
),
),
SizedBox(width: 16),
Flexible(
child: Column(
@ -192,16 +200,6 @@ class _Card extends StatelessWidget {
],
),
),
ClipRRect(
borderRadius: BorderRadius.circular(20),
child: SizedBox(
height: 140,
width: 100,
child: Image.network(imageUrl ?? '',
fit: BoxFit.cover,
errorBuilder: (_, __, ___) => const Placeholder(),),
),
),
],
),
);