début du cours
This commit is contained in:
25
TP1/bonjour/lib/main.dart
Normal file
25
TP1/bonjour/lib/main.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
runApp(
|
||||
const Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: 'Bonjour',
|
||||
children: <TextSpan>[
|
||||
TextSpan(
|
||||
text: ' comment ',
|
||||
style: TextStyle(fontStyle: FontStyle.italic, fontSize: 20),
|
||||
),
|
||||
TextSpan(
|
||||
text: 'ça va ?',
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
],
|
||||
),
|
||||
textDirection: TextDirection.ltr,
|
||||
style: TextStyle(fontSize: 30),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user