pavanchacravarthi2

pavanchacravarthi2

Lv10

Pavan Edit Studios

6 Followers
0 Following
17 Helped

ANSWERS

Published592

Subjects

Architecture4Project Management13History28Law5Management9Music4English60Philosophy1Anthropology5Astronomy8Business29Marketing4Science29Mechanical Engineering9Sociology13Geography13Nursing17Psychology11Communications2Information Technology12Algebra30Engineering5Probability17Geometry1Computer Science43Accounting24Calculus9Biology54Mathematics42Statistics7Physics31Finance7Economics19Chemistry27
Answer: Pseudomonas is a genus of gram-negative, aerobic bacteria commonly fou...
Answer: Here is a possible mechanism for the proposed three-step synthetic seq...
Answer: The mechanism for this transformation involves a nucleophilic substitu...
Answer: The charge on the molybdenum ion (Mo) with 39 electrons (row 4) can be...

Answer: Q4: The total cost of the portfolio is 1728. To determine the total co...
Answer: When K=3, the production function becomes: F(3, L) = min(18, 2L) The c...
Answer: When K=3, the production function becomes: F(3, L) = min(18, 2L) The c...
Answer: In the short run, capital is fixed at K=3. The production function bec...
Answer: In the short run, capital is fixed at K=3. The production function bec...
Answer: Here are ten economic functions across producer and consumer theory, a...
Answer: Here are five macroeconomic functions along with what they are a funct...
Answer: One example of a "system" in the real world that could serve as a meta...
Answer: Macroeconomics and microeconomics are two branches of economics that d...
Answer: Macro and micro are terms used to distinguish between two different le...
Answer: b) Opportunities and threats originate outside an organization.
Answer: B. flat organization.
Answer: Introduction: The organization selected for this case study is Tesla, ...
Answer: To check the health of a stream, it is necessary to monitor various wa...
Answer: import 'package:flutter/material.dart';void main() { runApp(MyApp());}...

Using the latest flutter version under Android Studio. 

Main dart page got numerous errors - See below link

The first one -

import 'package:flutter/material.dart';
URL doesn't exist not sure why because it used to work before. TextStyle(fontWeight: FontWeight.bold, fontSize: 13, color: Colors.black);
TextStyle not define (huh)? Was working before as well.
The rest of the required create class.
Are you guys able to resolve these error messages?

The entire code (Which contained several pages)listed below in url

 

 

import 'dart:core';
import 'package:flutter/material.dart';
import 'package:final_project1/second.dart';
//test
void main() {
runApp(const App());
}

const text =
TextStyle(fontWeight: FontWeight.bold, fontSize: 13, color: Colors.black);
//for passing image to second screen

Image pic1 = Image.asset('images/burger.jpg');
Image pic2 = Image.asset('images/chicken.jpg');
Image pic3 = Image.asset('images/fries.jpg');

class App extends StatelessWidget {
const App({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark(),
debugShowCheckedModeBanner: false,
home: const MyApp(),
);
}
}

// ignore: non_constant_identifier_names
double? SmallPrize, MediumPrize, LargePrize;

// ignore: constant_identifier_names
enum OS { Burger, Chicken_Sandwich, French_Fries }

List<String> list = ['Burger', 'Chicken Sandwich', 'French Fries'];

OS? _os;
String? name;
Image pic = Image.asset('images/burger.jpg');
double? sb, mb, lb, ss, ms, ls, sf, mf, lf;
bool button = true;

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);

@override
State<MyApp> createState() => _MyAppState();
}

String b = 'burger';
String c = 'Chicken Sandwich';
String f = 'French fries';

class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
toolbarHeight: 100,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
title: const Text(
'Menu',
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 30, color: Colors.black),
),
centerTitle: true,
backgroundColor: Colors.deepOrange,
),
body: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expanded(
child: SizedBox(
width: 300,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
height: 100, width: 100, child: ClipOval(child: pic2)),
const SizedBox(width: 20),
Expanded(
child: SizedBox(
child: RadioListTile<OS>(
dense: true,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
side: const BorderSide(
color: Colors.black, width: 3)),
contentPadding: const EdgeInsets.all(0),
tileColor: Colors.deepOrange,
title: Text(
list.elementAt(1),
style: text,
),
value: OS.Chicken_Sandwich,
groupValue: _os,
onChanged: (val) {
setState(() {
SmallPrize = 5.00;
MediumPrize = 7.00;
LargePrize = 9.00;
name = list.elementAt(1);
pic = pic2;
_os = val;
});
},
),
),
),
],
),
),
),
Expanded(
flex: 1,
child: SizedBox(
width: 300,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
height: 100, width: 100, child: ClipOval(child: pic1)),
const SizedBox(width: 20),
Expanded(
child: RadioListTile<OS>(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
side:
const BorderSide(color: Colors.black, width: 3)),
contentPadding: const EdgeInsets.all(0),
title: Text(
list.first,
style: text,
),
value: OS.Burger,
groupValue: _os,
tileColor: Colors.deepOrange,
onChanged: (val) {
setState(() {
SmallPrize = 5.00;
MediumPrize = 7.00;
LargePrize = 9.00;
name = list.first;
pic = pic1;
_os = val;
});
},
),
),
],
),
),
),
Expanded(
child: SizedBox(
width: 300,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
height: 100, width: 100, child: ClipOval(child: pic3)),
const SizedBox(width: 20),
Expanded(
child: SizedBox(
width: 400,
child: RadioListTile<OS>(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
side: const BorderSide(
color: Colors.black, width: 3)),
contentPadding: const EdgeInsets.all(0),
tileColor: Colors.deepOrange,
title: Text(
list.last,
style: text,
),
value: OS.French_Fries,
groupValue: _os,
onChanged: (val) {
setState(() {
SmallPrize = 2.50;
MediumPrize = 3.50;
LargePrize = 5.00;
name = list.last;
pic = pic3;
_os = val;
});
},
),
),
),
],
),
),
),
GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Second(
name_item: name.toString(),
pic: pic,
SmallPrize: SmallPrize,
MediumPrize: MediumPrize,
LargePrize: LargePrize,
),
),
);
},
child: Container(
width: double.infinity,
height: 100,
color: Colors.deepOrange,
child: const Center(
child: Text(
'Proceed',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 20,
color: Colors.black),
),
),
),
),
],
),
);
}
}

Answer: It seems that some of the errors in the code are caused by missing imp...
5. Consider the following class: import java.util.Scanner; public class Money private int dollars; private int cents; public Money (int d, int c) { dollars = d; cents = c; /* Point 1 */ public String toString() { String result; if (cents > 100) int totalCents = dollars * 100 + cents; dollars = totalCents / 100; cents = total Cents % 100; /* Point 2 */ /* Point 3 */ result = "$" + dollars + ", " + cents + "C"; return result; public static void main(String[] yourGrandfather) Scanner keyboard - new Scanner (System.in); Money amount; int C; /* Point 4 */ System.out.print("Enter an amount in cents: "); C = keyboard.nextInt (); amount = new Money (c/ 100, CX 100); System.out.println("You have: " + amount.toString()); The above program compiles and runs without error. Which variables are in scope at each of the points marked by comments in the above class? In other words, if each of these comments were replaced by an actual Java statement, which variables could be used in this statement without a prefix (that is, without having to write the name of a class or other variable in front of the variable name) and without the compiler reporting an unknown variable error? List each variable that is in scope at each of the points marked by comments in the above class, and indicate whether it is an instance variable, a formal parameter, or a local variable. Note that you will be penalized for every variable that is out of scope at a given point but that you list as being in scope at that point.
Answer: There are four points marked in the code, and for each point, we need ...
Answer: None of the options provided in the question matches the definition pr...
Answer: Sure, here are some notes on System Concept: A system is a set of comp...
Answer: If a two-word fragment of the first document has multiple possible ent...
Answer: The statement "The stats=true parameter results in a statistics node i...
Answer: It appears that the runApp() function is not being recognized in your ...
Answer: 1. Many immigrants came from southern and eastern Europe in the period...
Answer: There are a number of problems that America faces today due to immigra...