import 'package:flutter/material.dart';
import 'package:local_food_vrhnika/sidebar.dart';
import 'package:local_food_vrhnika/style/style.dart';
class FirstPage extends StatelessWidget {
const FirstPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: new AppBar(
backgroundColor: rdecaDva,
shadowColor: Colors.black,
centerTitle: true,
title: RichText(
text: TextSpan(
style: TextStyle(fontWeight: FontWeight.bold),
children: [
TextSpan(
text: 'Local',
style:
naslov(textStyle: TextStyle(color: tekst, fontSize: 25))),
TextSpan(
text: 'food',
style: naslov(
textStyle: TextStyle(color: oranznaDva, fontSize: 20))),
TextSpan(
text: 'Vrhnika',
style:
naslov(textStyle: TextStyle(color: tekst, fontSize: 25)))
])),
/*leading: IconButton(
icon: new Icon(Icons.food_bank),
onPressed: () => Scaffold.of(context).openDrawer(),
),*/
),
drawer: SideDrawer(),
body: Center(
child: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [oranzna!, oranznaDva!, rdecaDva!])),
),
),
);
}
}
I want to have a container below appbar that i already have and in this container text. But all of the answers that i got made my gradient background colors go from background to edges of container and now i have white background with container with those colors...