Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astu.mobile.g3.remote data source test #2302

Open
wants to merge 3 commits into
base: astu.mobile.g3.main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SingleProduct extends StatelessWidget {
final mediaQuery = MediaQuery.of(context);
const textStyle = TextStyle(
fontFamily: 'poppins',
fontWeight: FontWeight.bold,
fontWeight: FontWeight.w500,
fontSize: 16,
);
return Scaffold(
Expand Down Expand Up @@ -130,7 +130,7 @@ class SingleProduct extends StatelessWidget {
],
),
Padding(
padding: const EdgeInsets.all(20),
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expand Down Expand Up @@ -177,7 +177,7 @@ class SingleProduct extends StatelessWidget {
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
const EdgeInsets.symmetric(horizontal: 20, vertical: 2),
child: BlocBuilder<ProductBloc, ProductStates>(
builder: (context, state) {
if (state is LoadedSingleProductState) {
Expand All @@ -189,7 +189,7 @@ class SingleProduct extends StatelessWidget {
style: const TextStyle(
fontFamily: 'poppins',
fontSize: 24,
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w500),
),
Text(
'${state.productEntity.price}\$',
Expand All @@ -206,7 +206,7 @@ class SingleProduct extends StatelessWidget {
style: TextStyle(
fontFamily: 'poppins',
fontSize: 24,
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w500),
),
Text(
'0\$',
Expand All @@ -221,14 +221,15 @@ class SingleProduct extends StatelessWidget {
const Padding(
padding: EdgeInsets.symmetric(
horizontal: 20,
vertical: 10,
vertical: 5,
),
child: Text(
'Size:',
style: TextStyle(
fontFamily: 'poppins',
fontWeight: FontWeight.bold,
fontSize: 18,
fontWeight: FontWeight.w500,
fontSize: 20,
color: Color(0xFF3E3E3E),
),
),
),
Expand All @@ -244,17 +245,20 @@ class SingleProduct extends StatelessWidget {
return GestureDetector(
onTap: () {},
child: Container(
margin: const EdgeInsets.symmetric(horizontal: 5),
padding: const EdgeInsets.all(20),
margin: EdgeInsets.fromLTRB(5, 4, 5, 4),
height: 60,
width: 60,

decoration: BoxDecoration(
color: (size[index][0] == 0)
? Colors.white
: MyTheme.ecBlue,
boxShadow: const [
? const Color(0XFFFFFFFF)
: const Color(0XFF3F51F3),
boxShadow: [
BoxShadow(
color: Color.fromARGB(11, 11, 11, 11),
spreadRadius: 1,
blurRadius: 2)
color: Colors.black.withOpacity(0.1),
spreadRadius: 0.5,
blurRadius: 1,
offset: Offset(0,2))
],
borderRadius: BorderRadius.circular(10)),
child: Center(
Expand All @@ -264,8 +268,8 @@ class SingleProduct extends StatelessWidget {
color: (size[index][0] == 0)
? Colors.black
: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 20),
fontWeight: FontWeight.w500,
fontSize: 19),
))),
);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FillCustomButton extends StatelessWidget {
key: Key(label),
onPressed: press,
style: FilledButton.styleFrom(
padding: const EdgeInsets.symmetric(vertical: 16),
padding: const EdgeInsets.symmetric(vertical: 18),
backgroundColor: MyTheme.ecBlue,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(5))),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class OutlineCustomButton extends StatelessWidget {
style: FilledButton.styleFrom(
foregroundColor: MyTheme.ecRed,
side: const BorderSide(color: MyTheme.ecRed),
padding: EdgeInsets.symmetric(vertical: 16),
padding: EdgeInsets.symmetric(vertical: 18),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),
Expand Down
3 changes: 1 addition & 2 deletions mobile/ASTU-mobile-group-3/ecommerce_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import 'splash_page.dart';
void main() async {
WidgetsFlutterBinding().ensureSemantics();
await init();

runApp(DevicePreview(builder: (context) => const MyApp()));
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
Expand Down