diff --git a/lib/common/widgets/job_card.dart b/lib/common/widgets/job_card.dart index 55b3783..133b667 100644 --- a/lib/common/widgets/job_card.dart +++ b/lib/common/widgets/job_card.dart @@ -67,48 +67,56 @@ class JobCard extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ - Flexible( - child: Text( - "\$ ${job.jobIncome}", - style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold), - - overflow: TextOverflow.ellipsis, + // 수입 + Text( + job.jobIncome is num ? "\$ ${job.jobIncome}" : job.jobIncome.toString(), + style: const TextStyle(fontSize: 22, fontWeight: FontWeight.bold), + maxLines: 1, + softWrap: false, ), - ), - Flexible( - child: Text( + // 수입 타입 + Text( job.jobIncomeType, - style: TextStyle(color: Colors.grey), - overflow: TextOverflow.ellipsis, + style: const TextStyle(color: Colors.grey), + maxLines: 1, + softWrap: false, ), - ), - const SizedBox(height: 20), - Flexible( - child: Text( + + const SizedBox(height: 5), + // 도시 + Text( job.jobLocationCity, - style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold), - overflow: TextOverflow.ellipsis, + style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + maxLines: 1, + softWrap: false, ), - ), - Flexible( - child: Text( + + // 국가 + Text( job.jobLocationCountry, - style: TextStyle(color: Colors.grey), - overflow: TextOverflow.ellipsis, + style: const TextStyle(color: Colors.grey), + maxLines: 1, + softWrap: false, ), - ), + + const Spacer(), - ElevatedButton( - onPressed: () {}, - style: ElevatedButton.styleFrom( - backgroundColor: Color(0xFF3056D3), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(50), + + // 지원 버튼 + SizedBox( + height: 44, + child: ElevatedButton( + onPressed: () {}, + style: ElevatedButton.styleFrom( + backgroundColor: const Color(0xB91459DB), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(50), + ), + padding: const EdgeInsets.symmetric(horizontal: 20), ), - padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), + child: const Text("Apply", style: TextStyle(color: Colors.white)), ), - child: const Text("지원"), ), ], ), diff --git a/lib/main.dart b/lib/main.dart index 99bbc8e..deacbab 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -22,7 +22,7 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'Case Study', theme: ThemeData( - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + colorScheme: ColorScheme.fromSeed(seedColor: Color(0xFF2005E6)), useMaterial3: true, ), home: const MyHomePage(),