👨🏫0.1 Переменные
import 'package:flutter/material.dart';
class Lesson14 extends StatefulWidget {
const Lesson14({super.key});
@override
State<Lesson14> createState() => _Lesson14State();
}
class _Lesson14State extends State<Lesson14> {
// String
// int
// double
// bool - true - false
String title = 'Жакшы';
String doctor = 'Врач';
int age = 19;
double kg = 98.90;
bool isMarried = true;
double size = 70;
// Color -
// Widget -
Color color = Colors.blue;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Column(
children: [
Text(title, style: TextStyle(fontSize: size, color: color),),
Text(title, style: TextStyle(fontSize: size, color: color),),
Text(doctor),
Text(doctor),
Text(doctor),
Text(doctor),
Text(doctor),
Text(doctor),
Text(doctor),
Text(doctor),
Text('$age')
],
),
);
}
}Last updated