시험 샘플 코드
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return DefaultTabController(
initialIndex: 1,
length: 5,
child: Scaffold(
appBar: AppBar(
title: Text("1"),
leading: Text("1"),
actions: [
Text("1")
],
bottom: TabBar(
tabs: [
Tab(text: "전체"),
Tab(text: "쇼핑뉴스"),
Tab(text: "사은"),
Tab(text: "쿠폰"),
Tab(text: "문화/이벤트"),
],
),
),
body: TabBarView(
children: [
FirstPage(),
Center(child: Text("쇼핑뉴스")),
Center(child: Text("사은")),
Center(child: Text("쿠폰")),
Center(child: Text("문화/이벤트")),
],
),
),
);
}
}
class FirstPage extends StatelessWidget {
const FirstPage({
super.key,
});
@override
Widget build(BuildContext context) {
return Center(child: Text("전체"));
}
}
시험 제출 URL
<http://naver.me/5N1F7RiZ>
시험지
삼성중공업 작업형 시험.docx
삼성중공업 작업형 시험.pdf