Slide 102
Slide 102 text
ΟδΣοτͷΓग़͠ํΫϥε8JEHFU
class SampleState extends State {
final text1 = '΄͛ΓΜ';
final text2 = '͏ͳΓΜ';
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
children: [
Text(text1),
Text(text2),
],
),
),
);
}
}
class SampleState extends State {
final text1 = '΄͛ΓΜ';
final text2 = '͏ͳΓΜ';
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: SampleText(
text1: text1,
text2: text2,
),
);
}
}
class SampleText extends StatelessWidget {
final String text1;
final String text2;
const SampleText({
super.key,
required this.text1,
required this.text2,
});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
Text(text1),
Text(text2),
],
),
);
}
}
Ϋϥεͱͯ͠Γग़͢ͱ
ͪΐͬͱΊΜͲ͍͚͘͞Ͳ
ςετ͍͢͠ˍ
ແବͳ࠶ඳըΛ͑ΒΕΔʂ