Compare commits
3 Commits
20046f13f6
...
2829825670
Author | SHA1 | Date | |
---|---|---|---|
|
2829825670 | ||
|
27d98e5694 | ||
|
9e25114005 |
@ -31,7 +31,8 @@ class _UniversityScreenState extends State<UniversityScreen> {
|
||||
final TextEditingController ageController = TextEditingController();
|
||||
List<String> selectedCourses = [];
|
||||
|
||||
void _addStudent() {
|
||||
void _addStudent() async {
|
||||
await Future.delayed(Duration(seconds: 1));
|
||||
String name = nameController.text;
|
||||
int age = int.tryParse(ageController.text) ?? 0;
|
||||
|
||||
@ -177,16 +178,7 @@ 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(
|
||||
@ -200,6 +192,16 @@ 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(),),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user