make rpc page title scrollable

pull/2/head
fuwa 5 years ago
parent ee3750ce09
commit 867c403029

@ -103,37 +103,43 @@ Widget rpcView(String title, String body) {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget> children: <Widget>
[ [
Text
(
title,
style: TextStyle
(
fontFamily: 'RobotoMono',
fontSize: 35,
fontWeight: FontWeight.bold,
color: config.textColor,
),
),
Container(
height: 1,
color: config.textColor,
margin: const EdgeInsets.only(bottom: 20, top: 20),
),
Expanded Expanded
( (
flex: 1, flex: 1,
child: SingleChildScrollView child: SingleChildScrollView
( (
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
child: Text child: Column
( (
body, children: <Widget>
style: TextStyle [
( Text
fontFamily: 'RobotoMono', (
fontSize: 11, title,
color: config.textColor, style: TextStyle
), (
fontFamily: 'RobotoMono',
fontSize: 35,
fontWeight: FontWeight.bold,
color: config.textColor,
),
),
Container(
height: 1,
color: config.textColor,
margin: const EdgeInsets.only(bottom: 20, top: 20),
),
Text
(
body,
style: TextStyle
(
fontFamily: 'RobotoMono',
fontSize: 11,
color: config.textColor,
),
)
],
) )
) )
) )