fix: assets local history

This commit is contained in:
Prajna Prayoga 2024-02-15 20:24:19 +07:00
parent b3a68b4436
commit 3c1f7e210a
7 changed files with 32 additions and 23 deletions

BIN
assets/icons/icon-cake.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/icons/icon-house.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/icons/icon-toga.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,4 +1,6 @@
import 'package:cims_apps/application/assets/path_assets.dart';
import 'package:cims_apps/application/theme/color_palette.dart';
import 'package:cims_apps/core/utils/size_config.dart';
import 'package:flutter/material.dart';
class GoalInvest {
@ -20,27 +22,38 @@ class GoalInvestingView extends StatelessWidget {
GoalInvest(PathAssets.iconCreatePlan, 'Create Plan'),
];
return Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('Your Goal in Investing'),
GestureDetector(
child: Icon(Icons.close_rounded),
children:
listGoalInvest.asMap().entries.map((e) {
return Padding(
padding: EdgeInsets.only(top: e.key != 0 ? 16 : 0),
child: ListTile(
shape: RoundedRectangleBorder(
side: BorderSide(color: ColorPalette.slate200),
borderRadius: BorderRadius.circular(14)
),
leading: Container(
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: ColorPalette.blue200.withOpacity(0.5),
borderRadius: BorderRadius.circular(8)
),
child: Image.asset(
e.value.icon,
width: SizeConfig.width * 0.07
)
),
contentPadding: EdgeInsets.symmetric(horizontal: 16, vertical: 4),
title: Text(e.value.title,
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16
),
],
),
...listGoalInvest.asMap().entries.map((e) {
return ListTile(
leading: Image.asset(e.value.icon),
title: Text(e.value.title),
trailing: Icon(Icons.chevron_right_rounded),
),
);
})
],
}).toList()
);
}
}

View File

@ -90,7 +90,7 @@ class _LoginViewState extends State<LoginView> {
currentPage++;
pageController.jumpToPage(1);
} else {
routePush(context, page: RiskProfileView());
routePush(context, page: BottomNavigationView());
}
}
}

View File

@ -111,10 +111,6 @@ class PhoneNumberView extends StatelessWidget {
)
],
),
NumericPad(
onNumberSelected: (p0) {
},
)
],
),
);