roar-tech

roar-tech

Lv2

Armstrong Atlantic State University

0 Followers
0 Following
1 Helped
I have done Bachelor in Computer Science.

ANSWERS

Published23

Subjects

History1English3Marketing2Science2Geography1Nursing1Algebra3Computer Science2Calculus1Biology3Physics3Chemistry1

Using the latest flutter version under Android Studio. 

Main dart page got numerous errors - See below link

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

 

The first one -

import 'package:flutter/material.dart';

What is wrong with that line above?
URL doesn't exist not sure why because it used to work before. For some reason it can't find the package

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?

import 'package:flutter/material.dart';

import 'dart:core';

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's likely that something is messed up in the references that the Flu...
Answer: Parentheses: 3(r+s) Exponents: 3(r+s) Multiplication and Division: 3(r...

I asked this question before I still don't get it. Using Flutter ver 3.3.2 

Return value is missing see attachment on the bottom of this page.

 

Here is the full code and the screenshot below the full code. Also when putting in the answer can you put in the full code. Because I put in the previous answers I still got error messages.

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() {

runApp(const MyApp());
}
class MyAppState extends State<MyApp>{
@override
Widget build(BuildContext context) {
return;
}
}
class MyApp extends StatefulWidget {

const MyApp({super.key});

@override

MyAppState createState() => MyAppState();
}

class LoginData {
String username = "";
String password = "";
}

class _MyApp extends State {

LoginData loginData = LoginData();
final GlobalKey<FormState> _formkey = GlobalKey<FormState>();
@override

Widget build(BuildContext inContext) {
return MaterialApp(home: Scaffold(
body : Container(
padding : const EdgeInsets.all(50.0),
child : Form(
key: _formkey,
child: Column(
children: [
TextFormField(
keyboardType: TextInputType.emailAddress,
validator: (String? inValue) {
if (inValue?.isEmpty?? true) {
return "Please enter username";
}
return null;
},
onSaved: (String? inValue) {
loginData.username = inValue!;
},

decoration: const InputDecoration(
hintText: "[email protected]",
labelText: "Username (eMail address)"
),
),

TextFormField(

obscureText: true,

validator: (String? inValue) {
if (inValue == null) {
return "Password cannot be null";
} else if (inValue.length < 10) {
return "Password must be >= 10 in length";
}
return null;
},

onSaved: (String? inValue) {
loginData.password = inValue!;
},

decoration: const InputDecoration(
hintText : "Password",
labelText : "Password"
),
),

ElevatedButton(

child : const Text("Log In!"),

onPressed: (){

if (_formkey.currentState!.validate()){

_formkey.currentState!.save();

if (kDebugMode) {
debugPrint ("Username: ${loginData.username}");
}
if (kDebugMode) {
debugPrint ("Password: ${loginData.password}");
}

}

},

),

]

),

),

),

));

}

}

Answer: The error message "Return value is missing" is indicating that the bui...
Answer: EMR, or electronic medical records, were mandated in 2014 as part of t...
Answer: a. Name of the function b. Input variable (or domain of the function) ...
Answer: a. f(x) = -3x - 6 b. f(x) = -5x - 3 c. f(x) = 6x + 7
Answer: she
Answer: The laminas of uniform density ρ bounded by the graphs of the equatio...
Answer: To calculate the cost of paint for the walls, we need to first determi...
Answer: a. 0.5 M sodium acetate/0.5 M acetic acid is a buffer solution with a ...
Answer: A. To calculate the shear rate at the wall of the tube, we can use the...
Answer: A. The total work performed by the heart can be estimated by calculati...
Answer: The correct choice that correctly completes sentence 6 is: "Every stud...
Answer: The term "first mass in the Philippines" is quite broad and there are ...
Answer: Agrarian Reform program in the Philippines, which aims to redistribute...

Fill in the blank with the vocabulary term that best fits the following description.

___________________________ Substances in plants that have a positive effect on health and vitality

___________________________ Substances in animals, such as egg yolks, that provide health benefits beyond traditional nutrients

___________________________ Food or food ingredients that are thought possess a beneficiary effect beyond just what micronutrients and macronutrients do

___________________________ Claim made on a food and dietary supplement label that describes a relationship between a food substance and reduced risk of a disease.

___________________________ Live microorganism that can be consumed, in either a supplement or certain foods, that colonizes the body. It is especially important in colonizing the large intestine and balancing out the gut flora.

___________________________ The live microorganisms of the digestive tract need these nondigestable food components to stimulate growth.

___________________________ Type of fiber found only in plants that is made up of nondigestible carbohydrates and lignins.

___________________________ Type of fiber that is isolated, extracted or synthesized and most likely has a beneficial physiological effect in humans.

___________________________ A fat that contains the maximum number of hydrogen possible and no carbon-carbon bonds.

___________________________ A type of passive uptake or transport in the bod that moves soluates from an area of higher concentration to an area of lower concentration without the help of a carrier molecule such as protein.

Answer: Phytochemicals Bioactive compounds Functional foods Health claim Probi...
Answer: Table salt - Micronutrient (mineral) Table sugar - Macronutrient (carb...
Answer: Successful marketing proceeds the production of goods and services as ...
Yes, it is possible to convert wasted heat into useful work, energy, or electr...
a. People who do not smoke run a higher risk of developing ailments associated...

Blood is the transport medium in our bodies. Its special function is to make sure all the tissues receive needed nutrients for survival. It becomes apparent, then, that all components of blood need to be assembled correctly in order for this important transport fluid to function. There is a unique location for the creation of blood that helps to protect the process of hematopoiesis.


1. Where in the adult human body are is/are the blood made/created? Be specific (name specific locations in the body).


2. How does the newly created blood get from its place of origin to the rest of the body? Erythropoiesis, the process of creating red blood cells has its own unique requirements in order to complete the process correctly.


3. What 3 food nutrients (other than the required macronutrients [proteins/carbohydrates]) are
essential for the production of red blood cells? (Hint: all 3 are in the micronutrient category).


4. Highlight all the factors that would serve as a stimulus for erythropoiesis:
a) hemorrhage 

b) insufficient hemoglobin per RBC

c) living at a high altitude

d) breathing pure oxygen

5. What makes blood red? Blood can be either a bright scarlet red or a dark brick red. What creates the difference between the two colors of blood? Can either color indicate an anemia?


6. The process of creating new erythrocytes is under the direction of a hormone, erythropoietin. Where is erythropoietin synthesized and released? What cells are created that will then become mature erythrocytes?

7. Define anemia. Be sure to include the 2 general causes of anemia.              

8. There is a type of anemia that occurs from acute blood loss, i.e. from trauma where the internal environment has been exposed to the outside environment. Name this type of anemia. Explain how this type of anemia would be determined by laboratory analysis.

9. Women in their childbearing years are particularly susceptible to one type of anemia. Name
this type of anemia, its causes and list treatment protocols.

10. Intrinsic factor is protein produced by specific cells (parietal cells) in the lining of the stomach. The elderly tend to have a decreased efficiency of the gastric mucosa (stomach lining) and may end up with another type of anemia, associated with the lack of intrinsic factor. Name this anemia. What is important about intrinsic factor? Why does it contribute to a type of anemia?


REFERENCE(S): required for this assignment

The blood is made/created in the bone marrow of the adult human body. Bone mar...
Answer: It is certainly possible to convert wasted heat into useful work or en...
Answer: Step-by-step explanation: Strengthening institutions: Establishing and...

Weekly leaderboard

Start filling in the gaps now
Log in