Skip to content

Commit

Permalink
FIX icons and textbuttons
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodevs committed Mar 13, 2023
1 parent 23362ed commit 3796eeb
Show file tree
Hide file tree
Showing 31 changed files with 15 additions and 43 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Expand Up @@ -3,7 +3,7 @@
<application
android:label="flutter_ecommerce_template"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 7 additions & 33 deletions lib/screens/auth/forgot_password_page.dart
@@ -1,9 +1,5 @@

import 'package:ecommerce_int2/app_properties.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:country_code_picker/country_code_picker.dart';


import 'confirm_otp_page.dart';

Expand All @@ -18,21 +14,6 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
GlobalKey prefixKey = GlobalKey();
double prefixWidth = 0;

Widget prefix() {
return Container(
key: prefixKey,
//padding: EdgeInsets.fromLTRB(12.0, 20.0, 12.0, 12.0),
margin: EdgeInsets.only(right: 4.0),
decoration: BoxDecoration(
border: Border(bottom: BorderSide(color: Colors.black, width: 0.5))),
child: CountryCodePicker(
initialSelection: 'GT',

favorite: ['+1','US'],
)
);
}

@override
Widget build(BuildContext context) {
Widget background = Container(
Expand Down Expand Up @@ -73,7 +54,8 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
bottom: 40,
child: InkWell(
onTap: () {
Navigator.of(context).push(MaterialPageRoute(builder:(_)=>ConfirmOtpPage()));
Navigator.of(context)
.push(MaterialPageRoute(builder: (_) => ConfirmOtpPage()));
},
child: Container(
width: MediaQuery.of(context).size.width / 2,
Expand Down Expand Up @@ -113,7 +95,7 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
Container(
height: 100,
width: MediaQuery.of(context).size.width,
padding: const EdgeInsets.only(left: 32.0, right: 12.0,bottom: 30),
padding: const EdgeInsets.only(left: 32.0, right: 12.0, bottom: 30),
decoration: BoxDecoration(
color: Color.fromRGBO(255, 255, 255, 0.8),
borderRadius: BorderRadius.only(
Expand All @@ -122,7 +104,6 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
child: Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
prefix(),
Flexible(
child: Padding(
padding: const EdgeInsets.only(top: 8.0),
Expand Down Expand Up @@ -170,16 +151,11 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
return GestureDetector(
onTap: () => FocusScope.of(context).requestFocus(new FocusNode()),
child: Container(
decoration:BoxDecoration(
image:DecorationImage(
image: AssetImage('assets/background.jpg'),
fit: BoxFit.cover
)
),
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/background.jpg'), fit: BoxFit.cover)),
child: Container(
decoration: BoxDecoration(
color:transparentYellow
),
decoration: BoxDecoration(color: transparentYellow),
child: Scaffold(
appBar: AppBar(
backgroundColor: Colors.transparent,
Expand Down Expand Up @@ -211,5 +187,3 @@ class _ForgotPasswordPageState extends State<ForgotPasswordPage> {
);
}
}


6 changes: 3 additions & 3 deletions lib/screens/intro_page.dart
Expand Up @@ -167,7 +167,7 @@ class _IntroPageState extends State<IntroPage> {
children: <Widget>[
Opacity(
opacity: pageIndex != 2 ? 1.0 : 0.0,
child: ElevatedButton(
child: TextButton(
child: Text(
'SKIP',
style: TextStyle(
Expand All @@ -183,7 +183,7 @@ class _IntroPageState extends State<IntroPage> {
),
),
pageIndex != 2
? ElevatedButton(
? TextButton(
child: Text(
'NEXT',
style: TextStyle(
Expand All @@ -198,7 +198,7 @@ class _IntroPageState extends State<IntroPage> {
curve: Curves.linear);
},
)
: ElevatedButton(
: TextButton(
child: Text(
'FINISH',
style: TextStyle(
Expand Down
8 changes: 4 additions & 4 deletions lib/screens/main/components/product_list.dart
Expand Up @@ -31,7 +31,7 @@ class ProductList extends StatelessWidget {
fade: 0.5,
pagination: SwiperCustomPagination(
builder: (context, config) {
if (config!.itemCount! > 20) {
if (config.itemCount > 20) {
print(
"The itemCount is too big, we suggest use FractionPaginationBuilder instead of DotSwiperPaginationBuilder in this sitituation");
}
Expand All @@ -43,7 +43,7 @@ class ProductList extends StatelessWidget {
if (config.indicatorLayout != PageIndicatorLayout.NONE &&
config.layout == SwiperLayout.DEFAULT) {
return new PageIndicator(
count: config.itemCount!,
count: config.itemCount,
controller: config.pageController!,
layout: config.indicatorLayout,
size: size,
Expand All @@ -55,8 +55,8 @@ class ProductList extends StatelessWidget {

List<Widget> dots = [];

int itemCount = config.itemCount!;
int activeIndex = config.activeIndex!;
int itemCount = config.itemCount;
int activeIndex = config.activeIndex;

for (int i = 0; i < itemCount; ++i) {
bool active = i == activeIndex;
Expand Down
2 changes: 0 additions & 2 deletions pubspec.yaml
Expand Up @@ -27,12 +27,10 @@ dependencies:
flutter_staggered_grid_view: ^0.6.2
rubber: ^1.0.1
pin_code_text_field: ^1.8.0
country_code_picker: ^2.0.2
http: ^0.13.4
flutter_rating_bar: ^4.0.0
intl: ^0.18.0
numberpicker: ^2.1.1
flare_splash_screen: ^4.0.0
flutter_svg: ^2.0.2


Expand Down

0 comments on commit 3796eeb

Please sign in to comment.