Center title in SFTP/Apt

This commit is contained in:
Junyuan Feng
2022-03-08 18:07:52 +08:00
parent 7a5516792c
commit e6e08dc407
8 changed files with 38 additions and 22 deletions

View File

@@ -1,17 +1,24 @@
import 'package:flutter/material.dart';
class TwoLineText extends StatelessWidget {
const TwoLineText({Key? key, required this.up, required this.down}) : super(key: key);
const TwoLineText({Key? key, required this.up, required this.down})
: super(key: key);
final String up;
final String down;
@override
Widget build(BuildContext context) {
return Column(
children: [
Text(up, style: const TextStyle(fontSize: 15),),
Text(down, style: const TextStyle(fontSize: 11),)
],
);
children: [
Text(
up,
style: const TextStyle(fontSize: 15),
),
Text(
down,
style: const TextStyle(fontSize: 11),
)
],
);
}
}