Compare commits

...

3 Commits

Author SHA1 Message Date
DyCTaTOR
2829825670 lab3-modificated 2024-10-03 15:56:21 +04:00
DyCTaTOR
27d98e5694 Merge remote-tracking branch 'origin/lab2' into lab3 2024-10-03 15:40:06 +04:00
DyCTaTOR
9e25114005 lab2-modificated 2024-10-03 15:39:20 +04:00

View File

@ -31,7 +31,8 @@ class _UniversityScreenState extends State<UniversityScreen> {
final TextEditingController ageController = TextEditingController(); final TextEditingController ageController = TextEditingController();
List<String> selectedCourses = []; List<String> selectedCourses = [];
void _addStudent() { void _addStudent() async {
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;
@ -177,16 +178,7 @@ 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(
@ -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(),),
),
),
], ],
), ),
); );