108 lines
3.6 KiB
Dart
108 lines
3.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../settings.dart';
|
|
import 'homeScreen.dart';
|
|
import 'orderView.dart';
|
|
import 'menuiButton.dart';
|
|
|
|
class FavoritesView extends StatelessWidget {
|
|
final settings = new MenuiSettings();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Container(
|
|
decoration: BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage("img/bg_tile.jpg"), fit: BoxFit.cover)),
|
|
child: Column(
|
|
children: <Widget>[
|
|
Container(
|
|
decoration: BoxDecoration(color: Colors.grey[900]),
|
|
child: Column(
|
|
children: [
|
|
SizedBox(
|
|
height: 20,
|
|
),
|
|
Container(
|
|
decoration: BoxDecoration(color: Colors.grey[900]),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
RaisedButton(
|
|
color: Colors.grey[900],
|
|
elevation: 0,
|
|
padding:
|
|
EdgeInsets.symmetric(vertical: 12, horizontal: 4),
|
|
onPressed: () {
|
|
Navigator.pop(context);
|
|
},
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
Icon(
|
|
Icons.arrow_back_rounded,
|
|
color: Colors.orange,
|
|
),
|
|
Text(
|
|
'Cofnij',
|
|
style: TextStyle(
|
|
color: Colors.grey[200],
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.w400),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
Row(
|
|
children: [],
|
|
)
|
|
],
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
|
floatingActionButton: Container(
|
|
decoration: BoxDecoration(color: Colors.grey[900]),
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
MenuiButton(
|
|
color: Colors.orange,
|
|
icon: Icons.home_rounded,
|
|
text: "Szukaj",
|
|
onPressed: () => Navigator.push(
|
|
context, MaterialPageRoute(builder: (context) => HomePage())),
|
|
),
|
|
MenuiButton(
|
|
color: Colors.orange,
|
|
icon: Icons.note_rounded,
|
|
text: "Zamównienie",
|
|
onPressed: () => Navigator.push(context,
|
|
MaterialPageRoute(builder: (context) => OrderView())),
|
|
),
|
|
MenuiButton(
|
|
color: Colors.orange,
|
|
icon: Icons.favorite_rounded,
|
|
text: "Ulubione",
|
|
onPressed: () {},
|
|
),
|
|
MenuiButton(
|
|
color: Colors.orange,
|
|
icon: Icons.settings,
|
|
text: "Ustawienia",
|
|
onPressed: () {
|
|
showSettings(context, settings);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|