Skip to content

Commit

Permalink
Fix RenderFlex overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tayormi committed Mar 17, 2020
1 parent 5bd2ff2 commit 57d3c7f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
5 changes: 2 additions & 3 deletions lib/pages/screens/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ class _HomeScreenState extends State<HomeScreen> {
currentData.totalRecovered - firstData.totalRecovered,
percentChange: calculateGrowthPercentage(
currentData.totalRecovered, firstData.totalRecovered),
icon: showGrowthIcon(
currentData.totalRecovered, firstData.totalRecovered),
color: Colors.red,
icon: Icon(Icons.arrow_upward, color: Colors.green,),
color: Colors.green,
),
SizedBox(height: hp(3)),
GlobalSituationCard(
Expand Down
32 changes: 17 additions & 15 deletions lib/pages/widgets/information_title_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,23 @@ class InformationTitleCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Icon(icon, size: 50, color: iconColor,),
SizedBox(width: wp(5)),
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(title, style: AppTheme.h2Style.copyWith(color: LightColor.darkgrey, fontWeight: FontWeight.bold, fontSize: 16)),
SizedBox(height: hp(1)),
Text(subTitle, style: AppTheme.h2Style.copyWith(color: LightColor.darkgrey.withOpacity(0.5), fontSize: 16))
],
)
]
Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Icon(icon, size: 50, color: iconColor,),
SizedBox(width: wp(5)),
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(title, style: AppTheme.h2Style.copyWith(color: LightColor.darkgrey, fontWeight: FontWeight.bold, fontSize: 16)),
SizedBox(height: hp(1)),
Text(subTitle, style: AppTheme.h2Style.copyWith(color: LightColor.darkgrey.withOpacity(0.5), fontSize: 16))
],
)
]
),
)
]
),
Expand Down

0 comments on commit 57d3c7f

Please sign in to comment.