Redesigned
This commit is contained in:
@@ -4,6 +4,7 @@ import '../settings.dart';
|
||||
import 'mapView.dart';
|
||||
import 'orderView.dart';
|
||||
import 'favoritesView.dart';
|
||||
import 'menuiButton.dart';
|
||||
|
||||
class HomePage extends StatelessWidget {
|
||||
final MenuiSettings settings = new MenuiSettings();
|
||||
@@ -29,7 +30,7 @@ class HomePage extends StatelessWidget {
|
||||
style: TextStyle(color: Colors.grey[500]),
|
||||
),
|
||||
RaisedButton.icon(
|
||||
color: Colors.grey[850],
|
||||
color: Colors.grey[900],
|
||||
onPressed: () => Navigator.push(context,
|
||||
MaterialPageRoute(builder: (context) => MapView())),
|
||||
icon: Icon(
|
||||
@@ -38,7 +39,7 @@ class HomePage extends StatelessWidget {
|
||||
),
|
||||
label: Text(
|
||||
'Pokaż w pobliżu',
|
||||
style: TextStyle(color: Colors.grey[400]),
|
||||
style: TextStyle(color: Colors.grey[300]),
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(50)),
|
||||
@@ -49,102 +50,38 @@ class HomePage extends StatelessWidget {
|
||||
),
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
||||
floatingActionButton: Container(
|
||||
decoration: BoxDecoration(color: Colors.grey[850]),
|
||||
decoration: BoxDecoration(color: Colors.grey[900]),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
RaisedButton(
|
||||
color: Colors.grey[850],
|
||||
elevation: 0,
|
||||
padding: EdgeInsets.all(8),
|
||||
MenuiButton(
|
||||
color: Colors.orange,
|
||||
icon: Icons.home_rounded,
|
||||
text: "Szukaj",
|
||||
onPressed: () {},
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.home_rounded,
|
||||
color: Colors.orange,
|
||||
),
|
||||
Text(
|
||||
'Szukaj',
|
||||
style: TextStyle(
|
||||
color: Colors.grey[200],
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
RaisedButton(
|
||||
color: Colors.grey[850],
|
||||
elevation: 0,
|
||||
padding: EdgeInsets.all(8),
|
||||
MenuiButton(
|
||||
color: Colors.orange,
|
||||
icon: Icons.note_rounded,
|
||||
text: "Zamównienie",
|
||||
onPressed: () => Navigator.push(context,
|
||||
MaterialPageRoute(builder: (context) => OrderView())),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.note_rounded,
|
||||
color: Colors.orange,
|
||||
),
|
||||
Text(
|
||||
'Zamówienie',
|
||||
style: TextStyle(
|
||||
color: Colors.grey[200],
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
RaisedButton(
|
||||
color: Colors.grey[850],
|
||||
elevation: 0,
|
||||
padding: EdgeInsets.all(8),
|
||||
MenuiButton(
|
||||
color: Colors.orange,
|
||||
icon: Icons.favorite_rounded,
|
||||
text: "Ulubione",
|
||||
onPressed: () => Navigator.push(context,
|
||||
MaterialPageRoute(builder: (context) => FavoritesView())),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.favorite_rounded,
|
||||
color: Colors.orange,
|
||||
),
|
||||
Text(
|
||||
'Ulubione',
|
||||
style: TextStyle(
|
||||
color: Colors.grey[200],
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
RaisedButton(
|
||||
color: Colors.grey[850],
|
||||
elevation: 0,
|
||||
padding: EdgeInsets.all(8),
|
||||
MenuiButton(
|
||||
color: Colors.orange,
|
||||
icon: Icons.settings,
|
||||
text: "Ustawienia",
|
||||
onPressed: () {
|
||||
showSettings(context, settings);
|
||||
},
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
Icons.settings,
|
||||
color: Colors.orange,
|
||||
),
|
||||
Text(
|
||||
'Ustawienia',
|
||||
style: TextStyle(
|
||||
color: Colors.grey[200],
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400),
|
||||
)
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user