CWA-209 | applied scroll to all receive page; reduced height of header tiles and address field; reduced font of address

wownero
Oleksandr Sobol 4 years ago
parent e1de337ab1
commit 0ca1cd7157

@ -75,7 +75,7 @@ class ReceiveBodyState extends State<ReceiveBody> {
final copyImage = Image.asset('assets/images/copy_content.png'); final copyImage = Image.asset('assets/images/copy_content.png');
final currentColor = PaletteDark.menuList; final currentColor = PaletteDark.menuList;
final notCurrentColor = Colors.transparent; final notCurrentColor = PaletteDark.historyPanel;
amountController.addListener(() { amountController.addListener(() {
if (_formKey.currentState.validate()) { if (_formKey.currentState.validate()) {
@ -90,11 +90,10 @@ class ReceiveBodyState extends State<ReceiveBody> {
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
color: PaletteDark.mainBackgroundColor, color: PaletteDark.mainBackgroundColor,
padding: EdgeInsets.only(top: 24), padding: EdgeInsets.only(top: 24),
child: SingleChildScrollView(
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Flexible( Observer(builder: (_) {
flex: 2,
child: Observer(builder: (_) {
return Row( return Row(
children: <Widget>[ children: <Widget>[
Spacer( Spacer(
@ -119,7 +118,6 @@ class ReceiveBodyState extends State<ReceiveBody> {
], ],
); );
}), }),
),
Padding( Padding(
padding: EdgeInsets.all(24), padding: EdgeInsets.all(24),
child: Row( child: Row(
@ -165,7 +163,7 @@ class ReceiveBodyState extends State<ReceiveBody> {
)); ));
}, },
child: Container( child: Container(
height: 54, height: 48,
padding: EdgeInsets.only(left: 24, right: 24), padding: EdgeInsets.only(left: 24, right: 24),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(27)), borderRadius: BorderRadius.all(Radius.circular(27)),
@ -180,7 +178,7 @@ class ReceiveBodyState extends State<ReceiveBody> {
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 14,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.white color: Colors.white
), ),
@ -196,21 +194,22 @@ class ReceiveBodyState extends State<ReceiveBody> {
) )
), ),
), ),
Flexible( Container(
flex: 3, decoration: BoxDecoration(
child: ClipRRect(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(24), topLeft: Radius.circular(24),
topRight: Radius.circular(24), topRight: Radius.circular(24),
), ),
child: Container(
color: PaletteDark.historyPanel, color: PaletteDark.historyPanel,
),
child: Observer( child: Observer(
builder: (_) => ListView.separated( builder: (_) => ListView.separated(
separatorBuilder: (context, index) => Divider( separatorBuilder: (context, index) => Divider(
height: 1, height: 1,
color: PaletteDark.menuList, color: PaletteDark.menuList,
), ),
shrinkWrap: true,
physics: NeverScrollableScrollPhysics(),
itemCount: subaddressListStore.subaddresses.length + 2, itemCount: subaddressListStore.subaddresses.length + 2,
itemBuilder: (context, index) { itemBuilder: (context, index) {
@ -302,10 +301,9 @@ class ReceiveBodyState extends State<ReceiveBody> {
) )
), ),
), ),
)
)
], ],
), ),
)
); );
} }
} }

@ -20,8 +20,8 @@ class HeaderTile extends StatelessWidget {
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 24, left: 24,
right: 24, right: 24,
top: 32, top: 24,
bottom: 32 bottom: 24
), ),
color: Colors.transparent, color: Colors.transparent,
child: Row( child: Row(

Loading…
Cancel
Save