Skip to content

Commit

Permalink
Expand on page layout
Browse files Browse the repository at this point in the history
 * CHORE: Fix image to display properly inline with the headings
  • Loading branch information
VTIvanov20 committed May 29, 2023
1 parent 3a8650f commit 5882f1e
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class _BottomNavigationBarExampleState
'Settings',
style: optionStyle,
),
Text(
'Settings',
style: optionStyle,
),
];

void _onItemTapped(int index) {
Expand All @@ -56,11 +60,38 @@ class _BottomNavigationBarExampleState
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFF060606), //<-- SEE HERE
appBar: AppBar(
title: const Text('Movie App'),
),
body: Center(
child: _widgetOptions.elementAt(_selectedIndex),
body: Column(
children: <Widget>[
const Align(
alignment: Alignment.centerLeft,
child: Text(
'Hey, Bob',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 70,
),
),
),
const Align(
alignment: Alignment.centerLeft,
child: Text(
'What are we watching today?',
style: TextStyle(
color: Color(0xFF656565),
fontWeight: FontWeight.normal,
fontSize: 35,
),
),
),
Align(
alignment: Alignment.centerRight,
child: Image.network('https://picsum.photos/200/200'))

This comment has been minimized.

Copy link
@VTIvanov20

VTIvanov20 May 29, 2023

Author Owner

Reference point for #2

Use more of GitHub's Gist features?

],
),
bottomNavigationBar: BottomNavigationBar(
items: const <BottomNavigationBarItem>[
Expand All @@ -84,6 +115,11 @@ class _BottomNavigationBarExampleState
label: 'Settings',
backgroundColor: Colors.black87,
),
BottomNavigationBarItem(
icon: Icon(Icons.settings),
label: 'Settings',
backgroundColor: Colors.black87,
),
],
currentIndex: _selectedIndex,
selectedItemColor: Colors.yellow[700],
Expand Down

0 comments on commit 5882f1e

Please sign in to comment.