picked a button color

This commit is contained in:
broodjeaap89 2021-09-25 18:21:52 +02:00
parent afd8e982f2
commit f2c6682755
11 changed files with 34 additions and 26 deletions

View file

@ -117,6 +117,8 @@ class PizzaPlannerState extends State<PizzaPlanner> {
headline3: TextStyle(fontSize: 50, color: Color.fromARGB(255, 10, 10, 10)), headline3: TextStyle(fontSize: 50, color: Color.fromARGB(255, 10, 10, 10)),
), ),
primaryColor: const Color.fromARGB(255, 200, 42, 53), primaryColor: const Color.fromARGB(255, 200, 42, 53),
buttonColor: const Color.fromARGB(255, 200, 42, 53),
highlightColor: const Color.fromARGB(255, 53, 200, 42),
) )
); );
} }

View file

@ -64,7 +64,8 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
const Icon(FontAwesome5.hashtag), const Icon(FontAwesome5.hashtag),
Expanded( Expanded(
child: Slider( child: Slider(
activeColor: Theme.of(context).highlightColor,
inactiveColor: Theme.of(context).highlightColor.withOpacity(0.5),
value: pizzaCount.toDouble(), value: pizzaCount.toDouble(),
min: 1, min: 1,
max: 20, max: 20,
@ -86,6 +87,8 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
const Icon(FontAwesome5.weight_hanging), const Icon(FontAwesome5.weight_hanging),
Expanded( Expanded(
child: Slider( child: Slider(
activeColor: Theme.of(context).highlightColor,
inactiveColor: Theme.of(context).highlightColor.withOpacity(0.5),
value: doughBallSize.toDouble(), value: doughBallSize.toDouble(),
min: 100, min: 100,
max: 400, max: 400,
@ -119,6 +122,8 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
child: Slider( child: Slider(
activeColor: Theme.of(context).highlightColor,
inactiveColor: Theme.of(context).highlightColor.withOpacity(0.5),
value: recipeStep.waitValue!.toDouble(), value: recipeStep.waitValue!.toDouble(),
min: recipeStep.waitMin.toDouble(), min: recipeStep.waitMin.toDouble(),
max: recipeStep.waitMax.toDouble(), max: recipeStep.waitMax.toDouble(),
@ -145,7 +150,7 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
width: double.infinity, width: double.infinity,
height: 70, height: 70,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {
@ -248,7 +253,7 @@ class ConfirmPizzaEventState extends State<ConfirmPizzaEventDialog> {
width: double.infinity, width: double.infinity,
height: 50, height: 50,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
DatePicker.showDateTimePicker(context, DatePicker.showDateTimePicker(context,
@ -288,7 +293,7 @@ class ConfirmPizzaEventState extends State<ConfirmPizzaEventDialog> {
width: double.infinity, width: double.infinity,
height: 70, height: 70,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {
Navigator.pop(context, eventTime); Navigator.pop(context, eventTime);

View file

@ -44,7 +44,7 @@ class AddRecipeURLPageState extends State<AddRecipeURLPage> {
Expanded( Expanded(
flex: 5, flex: 5,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {

View file

@ -87,7 +87,7 @@ class EditRecipePageState extends State<EditRecipePage> {
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
@ -108,7 +108,7 @@ class EditRecipePageState extends State<EditRecipePage> {
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
@ -126,7 +126,7 @@ class EditRecipePageState extends State<EditRecipePage> {
), ),
const Divider(), const Divider(),
Container( Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
setState(() { setState(() {
@ -145,7 +145,7 @@ class EditRecipePageState extends State<EditRecipePage> {
child: Text("Steps") child: Text("Steps")
), ),
Container( Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
setState(() { setState(() {
@ -161,7 +161,7 @@ class EditRecipePageState extends State<EditRecipePage> {
] + pizzaRecipe.recipeSteps.map((recipeStep) => buildRecipeStepRow(recipeStep)).toList() + [ ] + pizzaRecipe.recipeSteps.map((recipeStep) => buildRecipeStepRow(recipeStep)).toList() + [
const Divider(), const Divider(),
Container( Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {
@ -287,7 +287,7 @@ class EditRecipePageState extends State<EditRecipePage> {
Expanded( Expanded(
flex: 4, flex: 4,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
FocusScope.of(context).unfocus(); FocusScope.of(context).unfocus();

View file

@ -66,7 +66,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
@ -87,7 +87,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
@ -157,7 +157,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
const Divider(), const Divider(),
const Center(child: Text("Sub Steps")), const Center(child: Text("Sub Steps")),
Container( Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
setState(() { setState(() {
@ -185,7 +185,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
Expanded( Expanded(
flex: 4, flex: 4,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
FocusScope.of(context).unfocus(); FocusScope.of(context).unfocus();

View file

@ -58,7 +58,7 @@ class EditRecipeSubStepPageState extends State<EditRecipeSubStepPage> {
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
@ -79,7 +79,7 @@ class EditRecipeSubStepPageState extends State<EditRecipeSubStepPage> {
Expanded( Expanded(
flex: 2, flex: 2,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {

View file

@ -77,7 +77,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
Expanded( Expanded(
flex: 10, flex: 10,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {
@ -93,7 +93,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
Expanded( Expanded(
flex: 30, flex: 30,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {
@ -123,7 +123,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
Expanded( Expanded(
flex: 40, flex: 40,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {

View file

@ -49,7 +49,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
Text(widget.pizzaEvent.name), Text(widget.pizzaEvent.name),
Text(getTimeRemainingString(widget.pizzaEvent.dateTime)), Text(getTimeRemainingString(widget.pizzaEvent.dateTime)),
Container( Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
Navigator.pushNamed(context, RecipePage.route, arguments: widget.pizzaEvent.recipe); Navigator.pushNamed(context, RecipePage.route, arguments: widget.pizzaEvent.recipe);
@ -102,7 +102,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
), ),
const Divider(), const Divider(),
if (firstStepDue != null) Container( if (firstStepDue != null) Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {

View file

@ -123,6 +123,7 @@ class PizzaEventsState extends State<PizzaEventsPage> {
} }
}, },
tooltip: "Add Pizza Plans", tooltip: "Add Pizza Plans",
backgroundColor: Theme.of(context).buttonColor,
child: Center( child: Center(
child: Row( child: Row(
children: const <Widget>[ children: const <Widget>[

View file

@ -92,7 +92,7 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
flex: 15, flex: 15,
child: Container( child: Container(
width: double.infinity, width: double.infinity,
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
if (page == 0){ if (page == 0){
@ -116,7 +116,7 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
flex: 35, flex: 35,
child: Container( child: Container(
width: double.infinity, width: double.infinity,
color: Colors.blue, color: Theme.of(context).buttonColor,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
if (page == widget.recipeStep.subSteps.length){ if (page == widget.recipeStep.subSteps.length){

View file

@ -153,7 +153,7 @@ class RecipesPageState extends State<RecipesPage> {
Expanded( Expanded(
flex: 5, flex: 5,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {
@ -193,7 +193,7 @@ class RecipesPageState extends State<RecipesPage> {
Expanded( Expanded(
flex: 5, flex: 5,
child: Container( child: Container(
color: Colors.blue, color: Theme.of(context).buttonColor,
width: double.infinity, width: double.infinity,
child: TextButton( child: TextButton(
onPressed: () async { onPressed: () async {