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(); final TextEditingController ageController = TextEditingController();
List<String> selectedCourses = []; List<String> selectedCourses = [];
void _addStudent() async { void _addStudent() {
await Future.delayed(Duration(seconds: 1));
String name = nameController.text; String name = nameController.text;
int age = int.tryParse(ageController.text) ?? 0; int age = int.tryParse(ageController.text) ?? 0;
@ -178,7 +177,16 @@ class _Card extends StatelessWidget {
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ 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), SizedBox(width: 16),
Flexible( Flexible(
child: Column( 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(),),
),
),
], ],
), ),
); );