mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
Center title in SFTP/Apt
This commit is contained in:
@@ -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),
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user