Skip to content

Commit

Permalink
Household Register WhatsApp Share Allignment Issue FIx (#790 )
Browse files Browse the repository at this point in the history
Household Register WhatsApp Share Allignment Issue FIx https://digit-discuss.atlassian.net/browse/ISTE-25
  • Loading branch information
anilsingha-eGov authored May 14, 2024
2 parents fe05fc1 + fa641fa commit df740c1
Showing 1 changed file with 27 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_focus_watcher/flutter_focus_watcher.dart';
import 'package:mgramseva/components/household_register/household_card.dart';
import 'package:mgramseva/providers/household_register_provider.dart';
Expand Down Expand Up @@ -44,6 +46,7 @@ class _HouseholdRegister extends State<HouseholdRegister>

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;
var householdRegisterProvider =
Provider.of<HouseholdRegisterProvider>(context, listen: false);

Expand Down Expand Up @@ -76,14 +79,25 @@ class _HouseholdRegister extends State<HouseholdRegister>
child: CustomScrollView(slivers: [
SliverList(
delegate: SliverChildListDelegate([
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
HomeBack(),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [_buildDownload, _buildShare])
],
SizedBox(
width: size.width,
child: Row(
children: [
HomeBack(),
Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expanded(
child: Align(
alignment: Alignment.centerRight,
child: _buildDownload)),
_buildShare
],
),
)
],
),
),
Container(key: key, child: HouseholdCard()),
])),
Expand Down Expand Up @@ -130,7 +144,11 @@ class _HouseholdRegister extends State<HouseholdRegister>
onPressed: () => showDownloadList(Constants.DOWNLOAD_OPTIONS, context),
icon: Icon(Icons.download_sharp),
label: Text(
ApplicationLocalizations.of(context).translate(i18.common.DOWNLOAD)));
ApplicationLocalizations.of(context).translate(i18.common.DOWNLOAD),
maxLines: 1,
softWrap: false,
overflow: TextOverflow.ellipsis,
));
}

showDownloadList(List<String> result, BuildContext context) {
Expand Down

0 comments on commit df740c1

Please sign in to comment.