Skip to content

Commit

Permalink
Merge pull request #22 from katrinleinweber/compact-plant-show-screen
Browse files Browse the repository at this point in the history
Reduce fontSize & SizedBox height values
  • Loading branch information
abertschi committed Apr 2, 2023
2 parents 6d53000 + 1d88798 commit 8651aa7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/screens/plant_show.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,29 @@ class ShowPlant extends StatelessWidget {
final plant = Provider.of<PlantModel>(context);

const descTextSize =
TextStyle(color: Color.fromRGBO(243, 243, 243, 1.0), fontSize: 25.0);
TextStyle(color: Color.fromRGBO(243, 243, 243, 1.0), fontSize: 21.0);

const descTextBold = TextStyle(
fontWeight: FontWeight.bold,
color: Color.fromRGBO(243, 243, 243, 1.0),
fontSize: 25.0);
fontSize: 21.0);

final topText = SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
const SizedBox(height: 90.0),
const SizedBox(height: 60.0),
const Icon(
Icons.water_drop_outlined,
color: Colors.white,
size: 80.0,
size: 40.0,
),
const SizedBox(height: 50.0),
const SizedBox(height: 30.0),
Text(
plant.plantName,
style: const TextStyle(color: Colors.white, fontSize: 70.0),
style: const TextStyle(color: Colors.white, fontSize: 34.0),
),
const SizedBox(height: 50.0),
const SizedBox(height: 30.0),
const Padding(
padding: EdgeInsets.only(left: 10.0),
child: Divider(
Expand Down Expand Up @@ -90,7 +90,7 @@ class ShowPlant extends StatelessWidget {
color: Color.fromRGBO(255, 255, 255, 0.7607843137254902),
thickness: 1.0,
)),
const SizedBox(height: 50.0),
const SizedBox(height: 30.0),
Padding(
padding: const EdgeInsets.only(bottom: 100.0),
child: buttonTemplate(
Expand Down

0 comments on commit 8651aa7

Please sign in to comment.