picked a button color
This commit is contained in:
parent
afd8e982f2
commit
f2c6682755
11 changed files with 34 additions and 26 deletions
|
@ -117,6 +117,8 @@ class PizzaPlannerState extends State<PizzaPlanner> {
|
|||
headline3: TextStyle(fontSize: 50, color: Color.fromARGB(255, 10, 10, 10)),
|
||||
),
|
||||
primaryColor: const Color.fromARGB(255, 200, 42, 53),
|
||||
buttonColor: const Color.fromARGB(255, 200, 42, 53),
|
||||
highlightColor: const Color.fromARGB(255, 53, 200, 42),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,8 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
|
|||
const Icon(FontAwesome5.hashtag),
|
||||
Expanded(
|
||||
child: Slider(
|
||||
|
||||
activeColor: Theme.of(context).highlightColor,
|
||||
inactiveColor: Theme.of(context).highlightColor.withOpacity(0.5),
|
||||
value: pizzaCount.toDouble(),
|
||||
min: 1,
|
||||
max: 20,
|
||||
|
@ -86,6 +87,8 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
|
|||
const Icon(FontAwesome5.weight_hanging),
|
||||
Expanded(
|
||||
child: Slider(
|
||||
activeColor: Theme.of(context).highlightColor,
|
||||
inactiveColor: Theme.of(context).highlightColor.withOpacity(0.5),
|
||||
value: doughBallSize.toDouble(),
|
||||
min: 100,
|
||||
max: 400,
|
||||
|
@ -119,6 +122,8 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
|
|||
children: <Widget>[
|
||||
Expanded(
|
||||
child: Slider(
|
||||
activeColor: Theme.of(context).highlightColor,
|
||||
inactiveColor: Theme.of(context).highlightColor.withOpacity(0.5),
|
||||
value: recipeStep.waitValue!.toDouble(),
|
||||
min: recipeStep.waitMin.toDouble(),
|
||||
max: recipeStep.waitMax.toDouble(),
|
||||
|
@ -145,7 +150,7 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
|
|||
width: double.infinity,
|
||||
height: 70,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
||||
|
@ -248,7 +253,7 @@ class ConfirmPizzaEventState extends State<ConfirmPizzaEventDialog> {
|
|||
width: double.infinity,
|
||||
height: 50,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
DatePicker.showDateTimePicker(context,
|
||||
|
@ -288,7 +293,7 @@ class ConfirmPizzaEventState extends State<ConfirmPizzaEventDialog> {
|
|||
width: double.infinity,
|
||||
height: 70,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
Navigator.pop(context, eventTime);
|
||||
|
|
|
@ -44,7 +44,7 @@ class AddRecipeURLPageState extends State<AddRecipeURLPage> {
|
|||
Expanded(
|
||||
flex: 5,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -87,7 +87,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
|||
Expanded(
|
||||
flex: 2,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
@ -108,7 +108,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
|||
Expanded(
|
||||
flex: 2,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
@ -126,7 +126,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
|||
),
|
||||
const Divider(),
|
||||
Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
@ -145,7 +145,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
|||
child: Text("Steps")
|
||||
),
|
||||
Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
@ -161,7 +161,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
|||
] + pizzaRecipe.recipeSteps.map((recipeStep) => buildRecipeStepRow(recipeStep)).toList() + [
|
||||
const Divider(),
|
||||
Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
@ -287,7 +287,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
|||
Expanded(
|
||||
flex: 4,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
FocusScope.of(context).unfocus();
|
||||
|
|
|
@ -66,7 +66,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
|||
Expanded(
|
||||
flex: 2,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
@ -87,7 +87,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
|||
Expanded(
|
||||
flex: 2,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
@ -157,7 +157,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
|||
const Divider(),
|
||||
const Center(child: Text("Sub Steps")),
|
||||
Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
@ -185,7 +185,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
|||
Expanded(
|
||||
flex: 4,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
FocusScope.of(context).unfocus();
|
||||
|
|
|
@ -58,7 +58,7 @@ class EditRecipeSubStepPageState extends State<EditRecipeSubStepPage> {
|
|||
Expanded(
|
||||
flex: 2,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
@ -79,7 +79,7 @@ class EditRecipeSubStepPageState extends State<EditRecipeSubStepPage> {
|
|||
Expanded(
|
||||
flex: 2,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -77,7 +77,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
|
|||
Expanded(
|
||||
flex: 10,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
@ -93,7 +93,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
|
|||
Expanded(
|
||||
flex: 30,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
@ -123,7 +123,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
|
|||
Expanded(
|
||||
flex: 40,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -49,7 +49,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
|
|||
Text(widget.pizzaEvent.name),
|
||||
Text(getTimeRemainingString(widget.pizzaEvent.dateTime)),
|
||||
Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, RecipePage.route, arguments: widget.pizzaEvent.recipe);
|
||||
|
@ -102,7 +102,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
|
|||
),
|
||||
const Divider(),
|
||||
if (firstStepDue != null) Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -123,6 +123,7 @@ class PizzaEventsState extends State<PizzaEventsPage> {
|
|||
}
|
||||
},
|
||||
tooltip: "Add Pizza Plans",
|
||||
backgroundColor: Theme.of(context).buttonColor,
|
||||
child: Center(
|
||||
child: Row(
|
||||
children: const <Widget>[
|
||||
|
|
|
@ -92,7 +92,7 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
|
|||
flex: 15,
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
if (page == 0){
|
||||
|
@ -116,7 +116,7 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
|
|||
flex: 35,
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
if (page == widget.recipeStep.subSteps.length){
|
||||
|
|
|
@ -153,7 +153,7 @@ class RecipesPageState extends State<RecipesPage> {
|
|||
Expanded(
|
||||
flex: 5,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
@ -193,7 +193,7 @@ class RecipesPageState extends State<RecipesPage> {
|
|||
Expanded(
|
||||
flex: 5,
|
||||
child: Container(
|
||||
color: Colors.blue,
|
||||
color: Theme.of(context).buttonColor,
|
||||
width: double.infinity,
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
|
|
Loading…
Add table
Reference in a new issue