repo_id
stringlengths 21
168
| file_path
stringlengths 36
210
| content
stringlengths 1
9.98M
| __index_level_0__
int64 0
0
|
|---|---|---|---|
mirrored_repositories/threads_app_flutter
|
mirrored_repositories/threads_app_flutter/lib/main.dart
|
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a blue toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
//
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
// action in the IDE, or press "p" in the console), to see the
// wireframe for each widget.
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
| 0
|
mirrored_repositories/threads_app_flutter
|
mirrored_repositories/threads_app_flutter/test/widget_test.dart
|
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:threads_app_flutter/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/main.dart
|
import 'package:flutter/material.dart';
import 'package:whatsapp_layout/pages/home.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'WhatsApp clone',
theme: ThemeData(
primaryColor: Color(0xFF075E54),
accentColor: Color(0xFF25D366),
),
home: Home(),
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/widgets/chat.dart
|
import 'package:flutter/material.dart';
class Chat extends StatelessWidget {
String image;
String name;
String lastMessage;
String date;
int messages;
bool read;
bool last;
Chat(this.image, this.name, this.lastMessage, this.date, this.messages, this.read, this.last);
bool notNull(Object o) => o != null;
@override
Widget build(BuildContext context) {
return Row(
children: <Widget>[
Expanded(
child: Row(
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
child: CircleAvatar(
backgroundImage: AssetImage(this.image),
radius: 28.0,
),
),
Expanded(
child: Container(
padding: EdgeInsets.only(
top: 15.0,
bottom: 15.0,
),
decoration: !this.last ? BoxDecoration(
border: Border(
bottom: BorderSide(
color: Color(0xFFDDDDDD),
width: 0.5,
),
),
) : null,
margin: EdgeInsets.only(right: 15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
child: Text(
this.name,
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w600,
),
),
margin: EdgeInsets.only(bottom: 5.0),
),
Container(
child: Text(
this.lastMessage,
style: TextStyle(
fontSize: 16.0,
color: Color(0xFF999999)
),
),
),
],
),
Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
Container(
margin: EdgeInsets.only(
top: 4.0,
bottom: 5.0,
),
child: Text(
this.date,
style: TextStyle(
fontSize: 14.0,
color: Color(0xFF888888),
),
),
),
!this.read ? Container(
width: 20.0,
height: 20.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0),
color: Theme.of(context).accentColor,
),
child: Center(
child: Text(
this.messages.toString(),
style: TextStyle(
fontSize: 12.0,
color: Colors.white,
),
),
),
) : null,
].where(notNull).toList(),
)
],
),
),
),
],
)
),
],
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/widgets/call.dart
|
import 'package:flutter/material.dart';
class Call extends StatelessWidget {
String image;
String name;
String date;
int direction;
int type;
bool last;
Call(this.image, this.name, this.date, this.direction, this.type, this.last);
@override
Widget build(BuildContext context) {
return Row(
children: <Widget>[
Expanded(
child: Row(
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
child: CircleAvatar(
backgroundImage: AssetImage(this.image),
radius: 28.0,
),
),
Expanded(
child: Container(
padding: EdgeInsets.fromLTRB(0, 15.0, 0, 15.0),
margin: EdgeInsets.only(right: 15.0),
decoration: !this.last ? BoxDecoration(
border: Border(
bottom: BorderSide(
color: Color(0xFFDDDDDD),
width: 0.5,
),
),
) : null,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(bottom: 5.0),
child: Text(
this.name,
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w600,
)
),
),
Row(
children: <Widget>[
this.direction == 0 ? Icon(
Icons.call_received,
color: Colors.red,
size: 18.0,
) : Icon(
Icons.call_made,
color: Colors.green,
size: 18.0,
),
Container(
margin: EdgeInsets.only(left: 5.0),
child: Text(
this.date,
style: TextStyle(
fontSize: 14.0,
color: Color(0xFF999999),
),
),
),
],
),
],
),
Column(
children: <Widget>[
this.type == 1 ? Icon(
Icons.videocam,
size: 26.0,
color: Color(0xFF085F61),
) : Icon(
Icons.call,
size: 26.0,
color: Color(0xFF085F61),
),
],
)
],
),
),
),
],
),
)
],
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/TabsViews/status.dart
|
import 'package:flutter/material.dart';
class Status extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Column(
children: <Widget>[
Expanded(
child: Column(
children: <Widget>[
Row(
children: <Widget>[
Expanded(
child: Container(
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: 0.5,
color: Color(0xFFCCCCCC),
),
),
),
child: Row(
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
child: Stack(
children: <Widget>[
CircleAvatar(
backgroundImage: AssetImage('lib/assets/images/person4.jpg'),
radius: 28,
),
Container(
width: 22.0,
height: 22.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(11.0),
color: Theme.of(context).accentColor,
),
margin: EdgeInsets.fromLTRB(36.0, 36.0, 0, 0),
child: Center(
child: Icon(
Icons.add,
size: 20.0,
color: Colors.white,
),
),
),
],
),
),
Row(
children: <Widget>[
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(bottom: 5.0),
child: Text(
'My status',
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w600,
),
),
),
Text(
'Tap to add status update',
style: TextStyle(
fontSize: 14.0,
color: Color(0xFF999999),
),
),
],
),
),
],
),
],
),
),
)
],
),
Container(
color: Color(0xFFEEEEEE),
height: 40.0,
padding: EdgeInsets.all(10.0),
child: Row(
children: <Widget>[
Expanded(
child: Text(
'Viewed updates',
style: TextStyle(
color: Color(0xFF888888),
fontSize: 16.0,
),
),
),
],
),
),
Row(
children: <Widget>[
Expanded(
child: Row(
children: <Widget>[
Container(
margin: EdgeInsets.all(15.0),
padding: EdgeInsets.all(0.5),
decoration: BoxDecoration(
border: Border.all(
color: Color(0xFFAAAAAA),
width: 2.0,
),
borderRadius: BorderRadius.circular(30.0)
),
child: CircleAvatar(
backgroundImage: AssetImage('lib/assets/images/status.jpg'),
radius: 28,
),
),
Expanded(
child: Container(
child: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(bottom: 5.0),
child: Text(
'Japinha do Google',
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w600,
),
),
),
Text(
'Today, 1:24 PM',
style: TextStyle(
fontSize: 16.0,
color: Color(0xFF999999),
),
),
],
),
),
),
),
],
),
),
],
),
],
),
),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
child: Column(
children: <Widget>[
Container(
width: 48.0,
height: 48.0,
child: FloatingActionButton(
backgroundColor: Color(0xFFEEEEEE),
child: Center(
child: Icon(
Icons.edit,
color: Color(0xFF085F61),
),
),
),
),
Container(
margin: EdgeInsets.only(top: 20.0),
child: FloatingActionButton(
backgroundColor: Theme.of(context).accentColor,
child: Center(
child: Icon(
Icons.camera_alt,
color: Colors.white,
),
),
),
),
],
),
),
],
),
],
),
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/TabsViews/chats.dart
|
import 'package:flutter/material.dart';
import 'package:whatsapp_layout/widgets/chat.dart';
class Chats extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Expanded(
child: Column(
children: <Widget>[
Chat('lib/assets/images/person.jpeg', 'Japinha do Google', 'Olá', '10:47', 1, false, false),
Chat('lib/assets/images/person3.jpg', 'Einsten', 'Eis a questão', '00:38', 0, true, false),
Chat('lib/assets/images/person2.jpg', 'Mina do google', 'Nada a declarar', 'Yesterday', 0, true, true),
],
)
),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
child: FloatingActionButton(
onPressed: null,
backgroundColor: Theme.of(context).accentColor,
child: Icon(
Icons.chat,
color: Colors.white,
),
),
),
],
)
],
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/TabsViews/camera.dart
|
import 'package:flutter/material.dart';
class Camera extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
margin: EdgeInsets.only(bottom: 10.0),
child: Icon(
Icons.error,
size: 100.0,
color: Color(0xFFDDDDDD),
),
),
Text(
'Error on load camera',
style: TextStyle(
fontSize: 22.0,
color: Color(0xFFDDDDDD),
),
)
],
),
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/TabsViews/calls.dart
|
import 'package:flutter/material.dart';
import 'package:whatsapp_layout/widgets/call.dart';
class Calls extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Column(
children: <Widget>[
Expanded(
child: Column(
children: <Widget>[
Call('lib/assets/images/person2.jpg', 'Mina do Google', 'Aug 05, 3:23 PM', 1, 1, false),
Call('lib/assets/images/person3.jpg', 'Einstein', 'Jul 12, 7:46 AM', 0, 0, true),
],
),
),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(
padding: EdgeInsets.all(15.0),
child: FloatingActionButton(
onPressed: null,
backgroundColor: Theme.of(context).accentColor,
child: Center(
child: Icon(
Icons.add_call,
color: Colors.white,
),
),
),
),
],
),
],
),
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib
|
mirrored_repositories/flutter-ui-clone-whatsapp/lib/pages/home.dart
|
import 'package:flutter/material.dart';
import 'package:whatsapp_layout/TabsViews/calls.dart';
import 'package:whatsapp_layout/TabsViews/camera.dart';
import 'package:whatsapp_layout/TabsViews/chats.dart';
import 'package:whatsapp_layout/TabsViews/status.dart';
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home> with SingleTickerProviderStateMixin {
TabController _tabController;
@override
void initState() {
super.initState();
_tabController = TabController(vsync: this, initialIndex: 1, length: 4);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('WhatsApp'),
elevation: 0.7,
actions: <Widget>[
Container(
margin: EdgeInsets.only(left: 20.0),
child: Icon(Icons.search),
),
Container(
margin: EdgeInsets.only(left: 20.0),
child: Icon(Icons.more_vert),
),
],
bottom: TabBar(
controller: _tabController,
indicatorColor: Colors.white,
tabs: <Widget>[
Tab(icon: Icon(Icons.camera_alt), ),
Tab(
child: Container(
child: Text(
'CHATS',
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.bold
),
),
),
),
Tab(
child: Container(
child: Text(
'STATUS',
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.bold
),
),
),
),
Tab(
child: Container(
child: Text(
'CALLS',
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.bold
),
),
),
),
],
),
),
body: Container(
child: TabBarView(
controller: _tabController,
children: <Widget>[
Camera(),
Chats(),
Status(),
Calls(),
],
),
),
);
}
}
| 0
|
mirrored_repositories/flutter-ui-clone-whatsapp
|
mirrored_repositories/flutter-ui-clone-whatsapp/test/widget_test.dart
|
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:whatsapp_layout/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
| 0
|
mirrored_repositories/Acente
|
mirrored_repositories/Acente/lib/main.dart
|
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Enter_Info.dart';
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Request_Successful.dart';
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Sigortasi.dart';
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_View_Offers.dart';
import 'package:acente/presentation/Screens/After_Login/Saglik.dart';
import 'package:acente/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Enter_Info.dart';
import 'package:acente/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Request_Successful.dart';
import 'package:acente/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Enter_Info.dart';
import 'package:acente/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Request_Successful.dart';
import 'package:acente/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Sigortasi.dart';
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Enter_Info.dart';
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Payment_Process.dart';
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Request_Successful.dart';
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Sigortasi.dart';
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_View_Offers.dart';
import 'package:acente/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Enter_Info.dart';
import 'package:acente/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Request_Successful.dart';
import 'package:acente/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Sigortasi.dart';
import 'package:acente/presentation/Screens/Hesabim/Ayarlar.dart';
import 'package:acente/presentation/Screens/Hesabim/Dil_Sec.dart';
import 'package:acente/presentation/Screens/Hesabim/Hesabim.dart';
import 'package:acente/presentation/Screens/Hesabim/Sifre_Degistir.dart';
import 'package:acente/presentation/Screens/Home/Anasayfa_No_Login.dart';
import 'package:acente/presentation/Screens/Home/Home_Bottom_Tabs.dart';
import 'package:acente/presentation/Screens/If_Not_Logged_In/Policelerim_Not_Logged_In.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Enter_Info.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Request_Successful.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart';
import 'package:acente/presentation/Screens/Konut_Sigortasi/Konut_Enter_Info.dart';
import 'package:acente/presentation/Screens/Konut_Sigortasi/Konut_Sigortasi.dart';
import 'package:acente/presentation/Screens/Konut_Sigortasi/Konut_View_Offers.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Sifremi_Unuttum.dart';
import 'package:acente/presentation/Screens/Policelerim/Policelerim.dart';
import 'package:acente/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_Enter_Info.dart';
import 'package:acente/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_View_Offers.dart';
import 'package:acente/presentation/Screens/Start_Screens/Splash_Screens.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Enter_Info.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Request_Successful.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_View_Offers.dart';
import 'package:acente/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_Enter_Info.dart';
import 'package:acente/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_View_Offers.dart';
import 'package:flutter/material.dart';
import 'presentation/Screens/After_Login/Anasayfa_Logged_In.dart';
import 'presentation/Screens/After_Login/Uretim.dart';
import 'presentation/Screens/Destek/Destek.dart';
import 'presentation/Screens/Destek/Hasar_Talebi_Gonder.dart';
import 'presentation/Screens/Destek/Kasko_Degeri_Sorgula.dart';
import 'presentation/Screens/Destek/Sikca_Sorulan_Sorular.dart';
import 'presentation/Screens/Destek/Subelerimiz.dart';
import 'presentation/Screens/Destek/QR_ile_tanımla.dart';
import 'presentation/Screens/Home/Acente365_Detay.dart';
import 'presentation/Screens/If_Not_Logged_In/Hesabim_Not_Logged_In.dart';
import 'presentation/Screens/Kasko_Sigortasi/Kasko_Sigortasi.dart';
import 'presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'presentation/Screens/Start_Screens/Dil_Secimi.dart';
import 'presentation/Screens/Start_Screens/acente_loading_screen.dart';
import 'presentation/Screens/After_Login/Yenilemelerim.dart';
import 'presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'presentation/Screens/Zorunlu_Trafik_Sigortası/Trafik_Enter_Info.dart';
import 'presentation/Screens/Zorunlu_Trafik_Sigortası/Trafik_Sigortası.dart';
import 'presentation/Screens/Zorunlu_Trafik_Sigortası/Trafik_View_Offers.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
fontFamily: 'BAHNSCHRIFT',
primarySwatch: Colors.blue,
),
initialRoute: AcenteLoadingScreen.routeName,
routes: <String, Widget Function(BuildContext context)>{
AcenteLoadingScreen.routeName: (_) => AcenteLoadingScreen(),
DilSecimi.routname: (_) => DilSecimi(),
SplashScreens.routeName: (_) => SplashScreens(),
AnasayfaNoLogin.routname: (_) => AnasayfaNoLogin(),
HomeBottomTabs.routname: (_) => HomeBottomTabs(),
Acente365Detay.routname: (_) => Acente365Detay(),
HesabimNotLoggedIn.routname: (_) => HesabimNotLoggedIn(),
PolicelerimNotLoggedIn.routname: (_) => PolicelerimNotLoggedIn(),
SifremiUnuttum.routname: (_) => SifremiUnuttum(),
GirisYap.routname: (_) => GirisYap(),
UyeOI.routname: (_) => UyeOI(),
AnasayfaLoggedIn.routname: (_) => AnasayfaLoggedIn(),
Yenilemelerim.routname: (_) => Yenilemelerim(),
Saglik.routname: (_) => Saglik(),
Uretim.routname: (_) => Uretim(),
Destek.routname: (_) => Destek(),
Subelerimiz.routname: (_) => Subelerimiz(),
HasarTalebiGonder.routname: (_) => HasarTalebiGonder(),
QRIleTanimla.routname: (_) => QRIleTanimla(),
KaskoDegeriSorgula.routname: (_) => KaskoDegeriSorgula(),
SikcaSorulanSorular.routname: (_) => SikcaSorulanSorular(),
TeklifAI.routname: (_) => TeklifAI(),
KaskoSigortasi.routname: (_) => KaskoSigortasi(),
KaskoEnterInfo.routname: (_) => KaskoEnterInfo(),
KaskoRequestSuccessful.routname: (_) => KaskoRequestSuccessful(),
KaskoViewOffers.routname: (_) => KaskoViewOffers(),
TrafikSigortasi.routname: (_) => TrafikSigortasi(),
TrafikEnterInfo.routname: (_) => TrafikEnterInfo(),
TrafikViewOffers.routname: (_) => TrafikViewOffers(),
DaskSigortasi.routname: (_) => DaskSigortasi(),
DaskEnterInfo.routname: (_) => DaskEnterInfo(),
DaskViewOffers.routname: (_) => DaskViewOffers(),
DaskRequestSuccessful.routname: (_) => DaskRequestSuccessful(),
TamamlayiciSaglikSigortasi.routname: (_) =>TamamlayiciSaglikSigortasi(),
TamamlayiciEnterInfo.routname: (_) => TamamlayiciEnterInfo(),
TamamlayiciRequestSuccessful.routname: (_) =>TamamlayiciRequestSuccessful(),
TamamlayiciViewOffers.routname: (_) => TamamlayiciViewOffers(),
YabanciSaglikSigortasi.routname: (_) => YabanciSaglikSigortasi(),
YabanciEnterInfo.routname: (_) => YabanciEnterInfo(),
YabanciViewOffers.routname: (_) => YabanciViewOffers(),
SeyahatSaglikSigortasi.routname: (_) => SeyahatSaglikSigortasi(),
SeyahatEnterInfo.routname: (_) => SeyahatEnterInfo(),
SeyahatViewOffers.routname: (_) => SeyahatViewOffers(),
TwoElAracSigortasi.routname: (_) => TwoElAracSigortasi(),
TwoElAracEnterInfo.routname: (_) => TwoElAracEnterInfo(),
TwoElAracViewOffers.routname: (_) => TwoElAracViewOffers(),
TwoElAracRequestSuccessful.routname: (_) =>TwoElAracRequestSuccessful(),
KonutSigortasi.routname: (_) => KonutSigortasi(),
KonutEnterInfo.routname: (_) => KonutEnterInfo(),
KonutViewOffers.routname: (_) => KonutViewOffers(),
BireyselSaglikSigortasi.routname: (_) => BireyselSaglikSigortasi(),
BireyselEnterInfo.routname: (_) => BireyselEnterInfo(),
BireyselRequestSuccessful.routname: (_) =>BireyselRequestSuccessful(),
CepTelefonuSigortasi.routname: (_) => CepTelefonuSigortasi(),
CepTelefonuEnterInfo.routname: (_) => CepTelefonuEnterInfo(),
CepTelefonuRequestSuccessful.routname: (_) =>CepTelefonuRequestSuccessful(),
EvcilHayvanSigortasi.routname: (_) => EvcilHayvanSigortasi(),
EvcilHayvanEnterInfo.routname: (_) => EvcilHayvanEnterInfo(),
EvcilHayvanRequestSuccessful.routname: (_) =>EvcilHayvanRequestSuccessful(),
Policelerim.routname: (_) => Policelerim(),
Hesabim.routname: (_) => Hesabim(),
DilSec.routname: (_) => DilSec(),
SifreDegistir.routname: (_) => SifreDegistir(),
Ayarlar.routname: (_) => Ayarlar(),
DaskPaymentProcess.routname: (_) => DaskPaymentProcess(),
},
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Teklif_Al/Teklif_Al.dart
|
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Sigortasi.dart';
import 'package:acente/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Sigortasi.dart';
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Sigortasi.dart';
import 'package:acente/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Sigortasi.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Sigortasi.dart';
import 'package:acente/presentation/Screens/Konut_Sigortasi/Konut_Sigortasi.dart';
import 'package:acente/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_Saglik_Sigortasi.dart';
import 'package:acente/presentation/Screens/Zorunlu_Trafik_Sigortas%C4%B1/Trafik_Sigortas%C4%B1.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class TeklifAI extends StatefulWidget {
static const String routname = '/teklif_ai';
@override
_TeklifAIState createState() => _TeklifAIState();
}
class _TeklifAIState extends State<TeklifAI> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 20),
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: Column(
children: [
Row(
children: [
Text('Teklif Al', style: V40R),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 7),
fontSize: 12,
),
],
),
SizedBox(height: 35),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
TeklifListContent(
title: 'Kasko',
image: 'kasko.png',
onTap: () {Navigator.of(context).pushNamed(KaskoSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Z. Trafik Sigortası',
image: 'z_trafik_sigortasi.png',
onTap: () {Navigator.of(context).pushNamed(TrafikSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'DASK',
image: 'dask.png',
onTap: () {Navigator.of(context).pushNamed(DaskSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Konut Sigortası',
image: 'konut_sigortasi.png',
onTap: () {Navigator.of(context).pushNamed(KonutSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'T. Sağlık Sigortası',
image: 't_saglik_sigortasi.png',
onTap: () {Navigator.of(context).pushNamed(TamamlayiciSaglikSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Bireysel Sağlık Sig.',
image: 'bireysel_saglik_sig.png',
onTap: () {Navigator.of(context).pushNamed(BireyselSaglikSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Yabancı Sağlık Sig.',
image: 'yabanci_saglik_sig.png',
onTap: () {Navigator.of(context).pushNamed(YabanciSaglikSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Seyahat Sağlık Sig.',
image: 'seyahat_saglik_sig.png',
onTap: () {Navigator.of(context).pushNamed(SeyahatSaglikSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Evcil Hayvan Sig.',
image: 'evcil_hayvan_sig.png',
onTap: () {Navigator.of(context).pushNamed(EvcilHayvanSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: '2. El Garanti Sig.',
image: '2_el_garanti_sig.png',
onTap: () {Navigator.of(context).pushNamed(TwoElAracSigortasi.routname);}),
SizedBox(height: 25),
TeklifListContent(
title: 'Cep Telefon Sigortası',
image: 'cep_telefon_sigortasi.png',
onTap: () {Navigator.of(context).pushNamed(CepTelefonuSigortasi.routname);}),
SizedBox(height: 80),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Dask_Sigortasi/Dask_View_Offers.dart
|
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Request_Successful.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class DaskViewOffers extends StatefulWidget {
static const String routname = '/dask_view_offers';
@override
_DaskViewOffersState createState() => _DaskViewOffersState();
}
class _DaskViewOffersState extends State<DaskViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Dask Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {Navigator.of(context)
.pushNamed(DaskRequestSuccessful.routname);},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {Navigator.of(context)
.pushNamed(DaskRequestSuccessful.routname);},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Dask_Sigortasi/Dask_Request_Successful.dart
|
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Payment_Process.dart';
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class DaskRequestSuccessful extends StatefulWidget {
static const String routname = '/dask_request_successful';
@override
_DaskRequestSuccessfulState createState() => _DaskRequestSuccessfulState();
}
class _DaskRequestSuccessfulState extends State<DaskRequestSuccessful> {
int count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 20),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: true),
SizedBox(height: 15),
Text('Ödeme Tamamla', style: B18R),
SizedBox(height: 55),
BigRightTick(),
SizedBox(height: 40),
Text(
'Talebiniz Başarıyla Alınmıştır',
style: V28R,
textAlign: TextAlign.center,
),
SizedBox(height: 25),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididunt ut labore et dolore.',
style: V16L,
textAlign: TextAlign.center),
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('E-Posta adresi: ', style: V16R),
Text('sinan_soylu@live.nl',
style: B16R, textAlign: TextAlign.center),
],
),
Spacer(),
SolidButton(
text: 'Anasayfaya Dön',
onPress: () {
Navigator.of(context).pushNamed(DaskPaymentProcess.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Dask_Sigortasi/Dask_Payment_Process.dart
|
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Request_Successful.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Request_Successful.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class DaskPaymentProcess extends StatefulWidget {
static const String routname = '/dask_payment_process';
@override
_DaskPaymentProcessState createState() => _DaskPaymentProcessState();
}
class _DaskPaymentProcessState extends State<DaskPaymentProcess> {
bool switchValue = false;
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Dask Sigortası', style: V28R),
],
),
),
SizedBox(height: 40),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: ThreeStep(step1: true, step2: true, step3: false),
),
SizedBox(height: 15),
Center(child: Text('Ödeme İşlemi', style: B18R)),
SizedBox(height: 35),
Expanded(
child: SingleChildScrollView(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.only(
left: 12, right: 12, top: 20, bottom: 10),
margin: EdgeInsets.only(top: 17),
decoration: BoxDecoration(
boxShadow: Green_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(15),
border: Border.all(
color: Blue,
width: 2,
),
),
child: Column(
children: [
SizedBox(height: 17),
Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Common/logo.png',
width: 115,
height: 57,
),
SizedBox(width: 12),
Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
Text(
'Dask Sigortası',
style: V16Sb,
),
SizedBox(height: 6),
Text(
'Standart Teminatlı Ürün',
style: V14R,
),
],
),
],
),
SizedBox(height: 15),
Row(
children: [
Text(
'2.380,80 TL',
style: B28R,
),
SizedBox(width: 12),
Text(
'Peşin Fiyat',
style: V14L,
),
],
),
SizedBox(height: 15),
],
),
),
SizedBox(height: 25),
Text('Kredi Kartı Bilgileri', style: V20Sb),
SizedBox(height: 25),
Text('Kart Üzerindeki İsim', style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'İsim Girin',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Text('Kart Numarası', style: V16L),
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'XXXX',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'XXXX',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'XXXX',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'XXXX',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
],
),
SizedBox(height: 25),
Text('Son Kullanma Tarihi', style: V16L),
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Ay',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Yıl',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Text('Güvenlik Kodu', style: V16L),
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'XXX',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 18),
Expanded(
child: Image.asset(
'lib/presentation/Assets/Assets_Dask_Sigortasi/card.jpg',
width: 200,
height: 70,
)),
],
),
SizedBox(height: 25),
Text('Taksit Seçenekleri', style: B16Sb),
SizedBox(height: 15),
CustomTextInput(
label:
'Peşin - Aylık: 2.380,80 TL - Toplam: 2380,80 TL',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 15),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) => setState(() =>
checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Mesafeli Satış Sözleşmesi',
text2: '’ni okudum.',
onChange: (currentValue) => setState(() =>
checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
SizedBox(height: 15),
SolidButton(
text: 'Ödemeyi Tamamla',
onPress: () {
//Navigator.of(context).pushNamed();
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
Container(
padding: EdgeInsets.all(20),
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Referans Kodu', style: B16Sb),
SizedBox(height: 15),
TextInputWithLeading(
label: 'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
],
),
),
SizedBox(height: 30),
],
),
),
),
),
Container(
margin: EdgeInsets.zero,
padding: EdgeInsets.all(20),
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
boxShadow: Green_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16)),
),
child: Column(
children: [
Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Common/logo.png',
width: 115,
height: 57,
),
SizedBox(width: 25),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Dask Sigortası',
style: V16Sb,
),
SizedBox(height: 6),
Text(
'Standart Teminatlı Ürün',
style: V14R,
),
],
),
],
),
SizedBox(height: 15),
Row(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'412,15 TL X 3 Taksit',
style: V14L,
),
SizedBox(height: 8),
Text(
'2.380,80 TL',
style: B18R,
),
],
),
Spacer(),
SolidButton(
text: 'ÖDEMEYI TAMAMLA',
onPress: () {},
shadow: Green_High_Shadow,
gradient: Green_Gradient,
fontSize: 14,
)
],
),
],
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Dask_Sigortasi/Dask_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class DaskEnterInfo extends StatefulWidget {
static const String routname = '/dask_enter_info';
@override
_DaskEnterInfoState createState() => _DaskEnterInfoState();
}
class _DaskEnterInfoState extends State<DaskEnterInfo> {
bool? radioValue1;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Dask Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
Column(
children: [
SizedBox(height: 10),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text:
'Yeni poliçe yaptırmak istiyorum'),
],
),
Row(
children: [
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text:
'Mevcut poliçemi yenilemek istiyorum'),
],
),
],
),
if (radioValue1 == true)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
if (radioValue1 == false)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 15),
Text('Eski Dask Poliçe Numaranız',
style: V16R),
SizedBox(height: 25),
CustomTextInput(
label: '8 haneli dask poliçe numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Text('Eski Dask Poliçe Numaranız',
style: B18R),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'03. Adres Seçimi',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 3)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 3)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
InfoBox(
text:
'Ulusal Adres Veri Tabanında kayıt adresiniz',
height: 76),
SizedBox(height: 35),
Text('Bu******* Mh. Me****** Sk. No. 12 Da.7\nÜ******* İstanbul',style: V16Sb),
SizedBox(height: 25),
Column(
children: [
SizedBox(height: 10),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text:
'İkamet adresim ile devam et'),
],
),
Row(
children: [
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text:
'Adres Seçimi Yaparak ( il, ilçe, belde vb.)'),
],
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Belde'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Mahalle'),
),
],
),
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Cadde/Sokak'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
//getAvenuestreet();
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Bina No'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kapı No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
isEdit = false;
currentpage = 4;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----4-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'04. Konut Bilgileri',
style: V20Sb,
),
],
),
if (currentpage == 4)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Dairenin brüt m2',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Binanın Yapı Tarzı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Dairenin Kullanım Şekli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'İnşaat Yılı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Binadaki Top. Kat Say.',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Bulunduğu Kat',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Text('Rehinli Alacak Var mı?',style: V16L),
SizedBox(height: 15),
Column(
children: [
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'Evet Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'Hayır Yok'),
],
),
],
),
if (radioValue3 == true)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Kurum Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Şube Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
],
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context)
.pushNamed(DaskViewOffers.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
)
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Dask_Sigortasi/Dask_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Dask_Sigortasi/Dask_Enter_Info.dart';
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class DaskSigortasi extends StatefulWidget {
static const String routname = '/dask_sigortasi';
@override
_DaskSigortasiState createState() => _DaskSigortasiState();
}
class _DaskSigortasiState extends State<DaskSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Dask_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/dask.png',
width: 48),
SizedBox(width: 20),
Text('Dask Sigortası', style: V28R),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: DefaultTabController(
length: 2,
child: Column(
children: [
SizedBox(height: 20),
TabBar(
labelStyle: B20Sb,
unselectedLabelStyle: B20Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Yeni Poliçe'),
Tab(text: 'Mevcut Poliçe'),
],
),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
TabBarView(
children: [
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
DaskEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
CustomTextInput(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
icon:
Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
DaskEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
],
),
],
),
),
],
),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Saglik_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Enter_Info.dart';
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class BireyselSaglikSigortasi extends StatefulWidget {
static const String routname = '/bireysel_saglik_sigortasi';
@override
_BireyselSaglikSigortasiState createState() =>
_BireyselSaglikSigortasiState();
}
class _BireyselSaglikSigortasiState extends State<BireyselSaglikSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Bireysel_Saglik_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Teklif_AI/bireysel_saglik_sig.png',
width: 48),
SizedBox(width: 20),
Flexible(
child: Text('Bireysel Sağlık Sigortası', style: V28R)),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: Column(
children: [
SizedBox(height: 20),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 20),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) => setState(
() => checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) => setState(
() => checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) => setState(
() => checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
BireyselEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
],
),
),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Request_Successful.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class BireyselRequestSuccessful extends StatefulWidget {
static const String routname = '/bireysel_request_successful';
@override
_BireyselRequestSuccessfulState createState() =>
_BireyselRequestSuccessfulState();
}
class _BireyselRequestSuccessfulState extends State<BireyselRequestSuccessful> {
int count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 20),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: true),
SizedBox(height: 15),
Text('Ödeme Tamamla', style: B18R),
SizedBox(height: 55),
BigRightTick(),
SizedBox(height: 40),
Text(
'Talebiniz Başarıyla Alınmıştır',
style: V28R,
textAlign: TextAlign.center,
),
SizedBox(height: 25),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididunt ut labore et dolore.',
style: V16L,
textAlign: TextAlign.center),
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('E-Posta adresi: ', style: V16R),
Text('sinan_soylu@live.nl',
style: B16R, textAlign: TextAlign.center),
],
),
Spacer(),
SolidButton(
text: 'Anasayfaya Dön',
onPress: () {
Navigator.of(context).popUntil((_) => count++ >= 4);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Bireysel_Saglik_Sigortasi/Bireysel_Request_Successful.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class BireyselEnterInfo extends StatefulWidget {
static const String routname = '/bireysel_enter_info';
@override
_BireyselEnterInfoState createState() => _BireyselEnterInfoState();
}
class _BireyselEnterInfoState extends State<BireyselEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Bireysel Sağ. Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
//getTown();
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'03. Poliçe Bilgileri',
style: V20Sb,
),
],
),
if (currentpage == 3)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'Boy',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'CM',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Kilo',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'KG',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
Text('Mevcut Sağlık Sigortanız var mı?',
style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Hangi Plan Tipi İstersiniz?', style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text(
'Sağlık teklifinizde Amerikan Hastanesi İsteniyor mu?',
style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text(
'Acıbadem, Florence Nightangle gibi hastaneleri dahil edelim mi?',
style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text(
'Ayakta tedaviyi kişi başı limitli mi limitsiz mi çalışalım?',
style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Doğum teminatı isteniyor mu?', style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Yurtdışı tedavi teminatı isteniyor mu?',
style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context).pushNamed(
BireyselRequestSuccessful.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_View_Offers.dart
|
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Request_Successful.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
class TwoElAracViewOffers extends StatefulWidget {
static const String routname = '/two_el_arac_view_offers';
@override
_TwoElAracViewOffersState createState() => _TwoElAracViewOffersState();
}
class _TwoElAracViewOffersState extends State<TwoElAracViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('2. El Araç Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {
Navigator.of(context)
.pushNamed(TwoElAracRequestSuccessful.routname);
},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {
Navigator.of(context)
.pushNamed(TwoElAracRequestSuccessful.routname);
},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Enter_Info.dart
|
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TwoElAracEnterInfo extends StatefulWidget {
static const String routname = '/two_el_arac_enter_info';
@override
_TwoElAracEnterInfoState createState() => _TwoElAracEnterInfoState();
}
class _TwoElAracEnterInfoState extends State<TwoElAracEnterInfo> {
bool? radioValue1 = true;
bool? checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('2. El Araç Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'2. El Araç Sigortası',
style: V20Sb,
),
SizedBox(height: 15),
Column(
children: [
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Hususi Otomobil'),
],
),
Row(
children: [
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Kapalı Kasa Kamyonet'),
],
),
],
),
SizedBox(height: 15),
Text(
'SATICI BİLGİLERİ',
style: G10R,
),
SizedBox(height: 35),
TextInputWithLeading(
label: 'Satıcı TC Kimlik No',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Satıcı E-posta',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '@',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'TR',
LeadingTextColor: Colors.white,
LeadingColor: Blue),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Ruhsat',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'RST',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: TextInputWithLeading(
label: 'Kilometre',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'KM',
LeadingTextColor: Colors.white,
LeadingColor: Quaternary),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Silindir Hacmi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 35),
Text(
'ALICI BİLGİLERİ',
style: G10R,
),
SizedBox(height: 35),
TextInputWithLeading(
label: 'Alıcı TC Kimlik No',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Alıcı Cep Telefonu',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
CustomTextInput(
label: 'Satış Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 35),
Text(
'ALICI BİLGİLERİ',
style: G10R,
),
SizedBox(height: 35),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Araç Model Yılı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Araç Markası',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Araç Modeli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'Araç Sorgula',
onPress: () {},
shadow: Low_Shadow,
gradient: Red_Gradient,
padding: EdgeInsets.symmetric(vertical: 12),
),
SizedBox(height: 35),
Text(
'ARAÇ BİLGİLERİ',
style: G10R,
),
SizedBox(height: 35),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Başlangıç Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Poliçe Süresi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'TSE Belge No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Ekspertiz Rapor No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Ekspertiz Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Yakıt Tipi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Text(
'Ekspertiz Raporu Yükle',
style: RB16R,
),
SizedBox(height: 15),
Row(
children: [
IconTextButton(
text: 'Yükle',
buttonColor: Colors.white,
onPress: () {},
shadow: Blue_Low_Shadow,
color: Raisin_Black,
icon: Icons.drive_folder_upload_outlined,
padding: EdgeInsets.symmetric(
horizontal: 15, vertical: 12),
)
],
),
SizedBox(height: 25),
Text(
'Not',
style: RB16R,
),
SizedBox(height: 15),
CustomTextInput(
label: 'Not Yazınız',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Vites Tipi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Çekiş Tipi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Checkbox(
value: checkboxValue,
activeColor: Melachite,
onChanged: (currentValue) {
setState(() {
checkboxValue = currentValue;
});
},
),
SizedBox(width: 12),
Flexible(
child: Text(
'Gizlilik Politikası ve kullanıcı sözleşmesi aydınlatma metni, Yenilikler ve kampanyala hakkında e-bülten ve sms almak istiyorum',
style: V12R),
),
],
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context)
.pushNamed(TwoElAracViewOffers.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Request_Successful.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TwoElAracRequestSuccessful extends StatefulWidget {
static const String routname = '/two_el_arac_request_successful';
@override
_TwoElAracRequestSuccessfulState createState() =>
_TwoElAracRequestSuccessfulState();
}
class _TwoElAracRequestSuccessfulState
extends State<TwoElAracRequestSuccessful> {
int count = 0;
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('2. El Araç Sig.', style: V28R),
],
),
SizedBox(height: 40),
Image.asset('lib/presentation/Assets/Assets_2_El_Arac_Sigortasi/logo.png'),
SizedBox(height: 25),
Text(
'Sigortalı & Sigorta Ettiren Bilgileri: 12392393****',
style: V16Sb,
textAlign: TextAlign.center,
),
SizedBox(height: 20),
Text('1.311,25 TL', style: B20Sb),
SizedBox(height: 10),
Text('412,15 TL X 3 Taksit', style: Q16R),
SizedBox(height: 25),
CheckboxText(
text1: 'Poliçe Bilgilendirme formu',
text2: '’nu okudum',
onChange: (currentValue) => setState(
() => checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) => setState(
() => checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context).popUntil((_) => count++ >= 4);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Sigortasi.dart
|
import 'package:acente/presentation/Screens/2_El_Arac_Sigortasi/2_El_Arac_Enter_Info.dart';
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TwoElAracSigortasi extends StatefulWidget {
static const String routname = '/two_el_arac_sigortasi';
@override
_TwoElAracSigortasiState createState() => _TwoElAracSigortasiState();
}
class _TwoElAracSigortasiState extends State<TwoElAracSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_2_El_Arac_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Teklif_AI/2_el_garanti_sig.png',
width: 48),
SizedBox(width: 20),
Text('2. El Araç Sigortası', style: V28R),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: Column(
children: [
SizedBox(height: 20),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 20),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) => setState(
() => checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) => setState(
() => checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) => setState(
() => checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
TwoElAracEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
],
),
),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/If_Not_Logged_In/Hesabim_Not_Logged_In.dart
|
import 'package:acente/presentation/Screens/Home/Acente365_Detay.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class HesabimNotLoggedIn extends StatefulWidget {
static const String routname = '/hesabim_not_logged_in';
@override
_HesabimNotLoggedInState createState() => _HesabimNotLoggedInState();
}
class _HesabimNotLoggedInState extends State<HesabimNotLoggedIn> {
PageController controller = PageController();
double currentPage = 0;
@override
void initState() {
super.initState();
controller.addListener(() {
setState(() {
currentPage = controller.page ?? 0;
});
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: SafeArea(
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(
bottom: 55, top: 17, right: 25, left: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
Spacer(),
BorderButton(
text: 'Giriş yap',
color: Ternary,
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 7, horizontal: 8)),
SizedBox(width: 15),
SolidButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context).pushNamed(UyeOI.routname);
},
shadow: Red_High_Shadow,
gradient: Red_Gradient,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
),
Expanded(
child: HomePageSliderItem(
heading: 'Giris Yapınız',
subHeading:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',
),
),
SizedBox(height: 75),
],
),
),
),
);
}
}
class HomePageSliderItem extends StatelessWidget {
final String heading;
final String subHeading;
HomePageSliderItem({
required this.heading,
required this.subHeading,
});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(heading, style: V40Sb),
SizedBox(height: 25),
Text(subHeading, style: V16L),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: SolidButton(
text: 'Giriş yap',
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Blue_High_Shadow,
gradient: Blue_Gradient_2)),
SizedBox(width: 25),
Expanded(
child: BorderButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context)
.pushNamed(Acente365Detay.routname);
},
shadow: Blue_High_Shadow,
color: Blue)),
],
),
Expanded(
child: Padding(
padding: EdgeInsets.all(50),
child: Image.asset(
'lib/presentation/Assets/Assets_If_Not_Logged_In/background_icon.png'),
),
),
],
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/If_Not_Logged_In/Policelerim_Not_Logged_In.dart
|
import 'package:acente/presentation/Screens/Home/Acente365_Detay.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class PolicelerimNotLoggedIn extends StatefulWidget {
static const String routname = '/policelerim_not_logged_in';
@override
_PolicelerimNotLoggedInState createState() => _PolicelerimNotLoggedInState();
}
class _PolicelerimNotLoggedInState extends State<PolicelerimNotLoggedIn> {
PageController controller = PageController();
double currentPage = 0;
@override
void initState() {
super.initState();
controller.addListener(() {
setState(() {
currentPage = controller.page ?? 0;
});
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: SafeArea(
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(
bottom: 55, top: 17, right: 25, left: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
Spacer(),
BorderButton(
text: 'Giriş yap',
color: Ternary,
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 7, horizontal: 8)),
SizedBox(width: 15),
SolidButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context).pushNamed(UyeOI.routname);
},
shadow: Red_High_Shadow,
gradient: Red_Gradient,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
),
Expanded(
child: HomePageSliderItem(
heading: 'Giris Yapınız',
subHeading:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',
),
),
SizedBox(height: 75),
],
),
),
),
);
}
}
class HomePageSliderItem extends StatelessWidget {
final String heading;
final String subHeading;
HomePageSliderItem({
required this.heading,
required this.subHeading,
});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(heading, style: V40Sb),
SizedBox(height: 25),
Text(subHeading, style: V16L),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: SolidButton(
text: 'Giriş yap',
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Blue_High_Shadow,
gradient: Blue_Gradient_2)),
SizedBox(width: 25),
Expanded(
child: BorderButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context)
.pushNamed(Acente365Detay.routname);
},
shadow: Blue_High_Shadow,
color: Blue)),
],
),
Expanded(
child: Padding(
padding: EdgeInsets.all(50),
child: Image.asset(
'lib/presentation/Assets/Assets_If_Not_Logged_In/background_icon.png'),
),
),
],
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Enter_Info.dart';
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CepTelefonuSigortasi extends StatefulWidget {
static const String routname = '/cep_telefonu_sigortasi';
@override
_CepTelefonuSigortasiState createState() => _CepTelefonuSigortasiState();
}
class _CepTelefonuSigortasiState extends State<CepTelefonuSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Cep_Telefonu_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/cep_telefon_sigortasi.png',
width: 48),
SizedBox(width: 20),
Text('Cep Telefonu Sigortası ', style: V28R),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: Column(
children: [
SizedBox(height: 20),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 20),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
CepTelefonuEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
],
),
),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Request_Successful.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CepTelefonuEnterInfo extends StatefulWidget {
static const String routname = '/cep_telefonu_enter_info';
@override
_CepTelefonuEnterInfoState createState() => _CepTelefonuEnterInfoState();
}
class _CepTelefonuEnterInfoState extends State<CepTelefonuEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Cep Tel. Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'E-Posta',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '@',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 21;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
//getTown();
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'03. Ruhsat & Araç Bilgileri',
style: V20Sb,
),
],
),
if (currentpage == 3)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
CustomTextInput(
label: 'IMEI No',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Garantisi Var mı?',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Telefon Markası ',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Telefon Modeli',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context).pushNamed(CepTelefonuRequestSuccessful.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Cep_Telefonu_Sigortasi/Cep_Telefonu_Request_Successful.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CepTelefonuRequestSuccessful extends StatefulWidget {
static const String routname = '/cep_telefonu_request_successful';
@override
_CepTelefonuRequestSuccessfulState createState() => _CepTelefonuRequestSuccessfulState();
}
class _CepTelefonuRequestSuccessfulState extends State<CepTelefonuRequestSuccessful> {
int count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 20),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: true),
SizedBox(height: 15),
Text('Ödeme Tamamla', style: B18R),
SizedBox(height: 55),
BigRightTick(),
SizedBox(height: 40),
Text(
'Talebiniz Başarıyla Alınmıştır',
style: V28R,
textAlign: TextAlign.center,
),
SizedBox(height: 25),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididunt ut labore et dolore.',
style: V16L,
textAlign: TextAlign.center),
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('E-Posta adresi: ', style: V16R),
Text('sinan_soylu@live.nl',
style: B16R, textAlign: TextAlign.center),
],
),
Spacer(),
SolidButton(
text: 'Anasayfaya Dön',
onPress: () {
Navigator.of(context).popUntil((_) => count++ >= 4);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/After_Login/Yenilemelerim.dart
|
import 'package:acente/presentation/Screens/After_Login/Saglik.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Yenilemelerim extends StatefulWidget {
static const String routname = '/yenilemelerim';
@override
_YenilemelerimState createState() => _YenilemelerimState();
}
class _YenilemelerimState extends State<Yenilemelerim> {
int _toggleValue = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 20),
child: SafeArea(
child: Column(
children: [
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Yenilemelerim', style: V28R)
],
),
SizedBox(height: 45),
AnimatedToggle(
values: ['Tüm Branşlar', 'Brans Bazında Detay'],
onToggleCallback: (value) {
setState(() {
_toggleValue = value;
});
},
buttonColor: Violet,
backgroundColor: Unseleted,
textColor: Colors.white,
),
SizedBox(height: 25),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTabController(
length: 5,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 200,
child: Stack(
alignment: Alignment.bottomLeft,
children: [
SizedBox(
height: 130,
width: 192,
child: Image(
image: AssetImage(
'lib/presentation/Assets/Assets_After_Login/background_path.png'),
)),
Column(
children: [
TabBar(
labelStyle: B16Sb,
unselectedLabelStyle: B16Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Günluk'),
Tab(text: 'Aylık'),
Tab(text: 'Bu Çey…'),
Tab(text: 'Sağlık'),
Tab(text: 'Günluk'),
],
),
Expanded(
child: TabBarView(
children: [
InfoTabContent(),
InfoTabContent(),
InfoTabContent(),
InfoTabContent(),
InfoTabContent(),
],
),
),
],
),
],
),
),
),
],
),
SizedBox(height: 25),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 175,
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: 20, vertical: 20),
child: Column(
children: [
FourText(
text1: 'Brans',
text2: 'Bu Yıl',
text3: 'Geçen Yıl',
text4: 'Degisim',
style: V16Sb),
Divider(),
InkWell(
onTap: () {
Navigator.of(context)
.pushNamed(Saglik.routname);
},
child: FourText(
text1: 'Trafik',
text2: '23.480',
text3: '-2649',
text4: '%-16',
style: V16R),
),
SizedBox(height: 20),
InkWell(
onTap: () {
Navigator.of(context)
.pushNamed(Saglik.routname);
},
child: FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
),
Divider(),
FourText(
text1: 'Toplam',
text2: '250.184',
text3: '-2649',
text4: '%-60',
style: V16Sb),
],
),
),
),
),
],
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/After_Login/Uretim.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Uretim extends StatefulWidget {
static const String routname = '/uretim';
@override
_UretimState createState() => _UretimState();
}
class _UretimState extends State<Uretim> {
int _toggleValue = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 20),
child: SafeArea(
child: Column(
children: [
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Üretim', style: V28R)
],
),
SizedBox(height: 45),
AnimatedToggle(
values: ['Tüm Branşlar', 'Branş Bazında Detay'],
onToggleCallback: (value) {
setState(() {
_toggleValue = value;
});
},
buttonColor: Violet,
backgroundColor: Unseleted,
textColor: Colors.white,
),
SizedBox(height: 25),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTabController(
length: 5,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16)),
),
width: MediaQuery.of(context).size.width,
height: 48,
child: Column(
children: [
TabBar(
labelStyle: B16Sb,
unselectedLabelStyle: B16Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Günluk'),
Tab(text: 'Aylık'),
Tab(text: 'Bu Çey…'),
Tab(text: 'Sağlık'),
Tab(text: 'Günluk'),
],
),
],
),
),
),
],
),
SizedBox(height: 25),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 76,
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: 20, vertical: 20),
child: Row(
children: [
Icon(Icons.info_outline, color: Primary),
SizedBox(width: 15),
Flexible(
child: Text(
'Günlük ve Aylık periyotta poliçe detaylarını görmek için branşlara dokunun.'),
)
],
),
),
),
),
],
),
SizedBox(height: 25),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 335,
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: 20, vertical: 20),
child: Column(
children: [
FourText(
text1: 'Brans',
text2: 'Bu Yıl',
text3: 'Geçen Yıl',
text4: 'Degisim',
style: V16Sb),
Divider(),
FourText(
text1: 'Trafik',
text2: '23.480',
text3: '-2649',
text4: '%-16',
style: V16R),
SizedBox(height: 15),
FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
SizedBox(height: 15),
FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
SizedBox(height: 15),
FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
SizedBox(height: 15),
FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
SizedBox(height: 15),
FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
SizedBox(height: 15),
FourText(
text1: 'Konut',
text2: '2.078',
text3: '-2649',
text4: '%73',
style: V16R),
Divider(),
FourText(
text1: 'Toplam',
text2: '250.184',
text3: '-2649',
text4: '%-60',
style: V16Sb),
],
),
),
),
),
],
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/After_Login/Saglik.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Saglik extends StatefulWidget {
static const String routname = '/saglik';
@override
_SaglikState createState() => _SaglikState();
}
class _SaglikState extends State<Saglik> {
int _toggleValue = 0;
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 20),
child: Column(
children: [
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Sağlık', style: V28R)
],
),
SizedBox(height: 45),
AnimatedToggle(
values: ['Yenilenen', 'Yenilenmeyen'],
onToggleCallback: (value) {
setState(() {
_toggleValue = value;
});
},
buttonColor: Violet,
backgroundColor: Unseleted,
textColor: Colors.white,
),
SizedBox(height: 25),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
RenewedInfo(),
SizedBox(height: 25),
RenewedInfo(),
SizedBox(height: 25),
RenewedInfo(),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/After_Login/Anasayfa_Logged_In.dart
|
import 'package:acente/presentation/Screens/After_Login/Uretim.dart';
import 'package:acente/presentation/Screens/After_Login/Yenilemelerim.dart';
import 'package:acente/presentation/Screens/After_Login/Saglik.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class AnasayfaLoggedIn extends StatefulWidget {
static const String routname = '/anasayfa_logged_In';
@override
_AnasayfaLoggedInState createState() => _AnasayfaLoggedInState();
}
class _AnasayfaLoggedInState extends State<AnasayfaLoggedIn> {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_After_Login/logo.png',
width: 160),
Spacer(),
CircleIconButton(
buttonColor: Colors.white,
onPress: () {
// _scaffoldKey.currentState?.openEndDrawer();
Scaffold.of(context).openEndDrawer();
},
shadow: Red_Low_Shadow,
icon: Icons.menu,
iconColor: Dark_Purple)
],
),
),
SizedBox(height: 50),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InfoTabBar(
color: Blue,
shadow: Blue_High_Shadow,
label: 'Üretim',
onTap: () {
Navigator.of(context).pushNamed(Uretim.routname);
}),
SizedBox(height: 33),
Divider(),
SizedBox(height: 33),
InfoTabBar(
color: Ternary,
shadow: Red_High_Shadow,
label: 'Yenilemelerim',
onTap: () {
Navigator.of(context).pushNamed(Yenilemelerim.routname);
}),
SizedBox(height: 33),
Divider(),
SizedBox(height: 33),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
InkWell(
onTap: () {
Navigator.of(context)
.pushNamed(Yenilemelerim.routname);
},
child: Text('Yenilemelerim', style: V22R),
),
SizedBox(height: 10),
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 200,
child: Stack(
alignment: Alignment.bottomLeft,
children: [
SizedBox(
height: 130,
width: 192,
child: Image(
image: AssetImage(
'lib/presentation/Assets/Assets_After_Login/background_path.png'),
)),
Column(
children: [
TabBar(
labelStyle: B16Sb,
unselectedLabelStyle: B16Sb,
unselectedLabelColor:
Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Kasko'),
Tab(text: 'Sağlık'),
],
),
Expanded(
child: TabBarView(
children: [
InfoTabContent(),
InfoTabContent(),
],
),
),
],
),
],
),
),
),
],
),
),
SizedBox(height: 33),
Divider(),
SizedBox(height: 33),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Hasar', style: V22R),
SizedBox(height: 10),
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 175,
child: Stack(
alignment: Alignment.bottomLeft,
children: [
SizedBox(
height: 130,
width: 192,
child: Image(
image: AssetImage(
'lib/presentation/Assets/Assets_After_Login/background_path.png'),
),
),
Padding(
padding: EdgeInsets.only(
left: 25,
right: 37,
),
child: Row(
children: [
CustumProgressIndicator(
shadow: Blue_High_Shadow,
color: Unprogressed,
value: 0),
Spacer(),
Padding(
padding: const EdgeInsets.only(top: 20),
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
DualTextColumn(
text1: 'Ödenen Hasar',
text2: '0 TL',
style1: V14L,
style2: V16R),
SizedBox(height: 8),
DualTextColumn(
text1: 'Muallak Hasar',
text2: '0 TL',
style1: V14L,
style2: V16R),
SizedBox(height: 8),
DualTextColumn(
text1: 'Açılan Hasar Dosyası',
text2: '0 TL',
style1: V14L,
style2: V16R),
],
),
),
],
),
)
],
),
),
),
],
),
),
SizedBox(height: 33),
Divider(),
SizedBox(height: 33),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Sıralama', style: V22R),
SizedBox(height: 10),
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 98,
child: Stack(
alignment: Alignment.bottomLeft,
children: [
SizedBox(
height: 70,
width: 300,
child: Image(
image: AssetImage(
'lib/presentation/Assets/Assets_After_Login/background_path1.png'),
),
),
Padding(
padding: const EdgeInsets.only(
top: 9, left: 50, right: 50),
child: Row(
children: [
TextAndBox(heading: 'Şirket', value: '1'),
Spacer(),
TextAndBox(heading: 'Bölge', value: '1'),
Spacer(),
TextAndBox(heading: 'İl', value: '1'),
],
),
)
],
),
),
),
],
),
),
SizedBox(height: 100),
],
),
),
),
],
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart
|
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Request_Successful.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class KaskoViewOffers extends StatefulWidget {
static const String routname = '/kasko_view_offers';
@override
_KaskoViewOffersState createState() => _KaskoViewOffersState();
}
class _KaskoViewOffersState extends State<KaskoViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Kasko Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {Navigator.of(context)
.pushNamed(KaskoRequestSuccessful.routname);},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {Navigator.of(context)
.pushNamed(KaskoRequestSuccessful.routname);},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Kasko_Sigortasi/Kasko_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class KaskoSigortasi extends StatefulWidget {
static const String routname = '/kasko_sigortasi';
@override
_KaskoSigortasiState createState() => _KaskoSigortasiState();
}
class _KaskoSigortasiState extends State<KaskoSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Kasko_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/kasko.png',
width: 48),
SizedBox(width: 20),
Text('Kasko Sigortası', style: V28R),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: DefaultTabController(
length: 2,
child: Column(
children: [
SizedBox(height: 20),
TabBar(
labelStyle: B20Sb,
unselectedLabelStyle: B20Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Plakam Var'),
Tab(text: 'Plakam Yok'),
],
),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
TabBarView(
children: [
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
SolidButton(
text: 'QR İLE TANIMLA',
onPress: () {
Navigator.of(context).pushNamed(
QRIleTanimla.routname);
},
shadow: Low_Shadow,
color: Violet,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'TR',
LeadingTextColor: Colors.white,
LeadingColor: Blue),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
KaskoEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
CustomTextInput(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
icon:
Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
KaskoEnterInfo
.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
],
),
],
),
),
],
),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Kasko_Sigortasi/Kasko_Request_Successful.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class KaskoRequestSuccessful extends StatefulWidget {
static const String routname = '/kasko_request_successful';
@override
_KaskoRequestSuccessfulState createState() => _KaskoRequestSuccessfulState();
}
class _KaskoRequestSuccessfulState extends State<KaskoRequestSuccessful> {
int count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 20),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: true),
SizedBox(height: 15),
Text('Ödeme Tamamla', style: B18R),
SizedBox(height: 55),
BigRightTick(),
SizedBox(height: 40),
Text(
'Talebiniz Başarıyla Alınmıştır',
style: V28R,
textAlign: TextAlign.center,
),
SizedBox(height: 25),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididunt ut labore et dolore.',
style: V16L,
textAlign: TextAlign.center),
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('E-Posta adresi: ', style: V16R),
Text('sinan_soylu@live.nl',
style: B16R, textAlign: TextAlign.center),
],
),
Spacer(),
SolidButton(
text: 'Anasayfaya Dön',
onPress: () {
Navigator.of(context).popUntil((_) => count++ >= 4);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Kasko_Sigortasi/Kasko_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Kasko_Sigortasi/Kasko_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class KaskoEnterInfo extends StatefulWidget {
static const String routname = '/kasko_enter_info';
@override
_KaskoEnterInfoState createState() => _KaskoEnterInfoState();
}
class _KaskoEnterInfoState extends State<KaskoEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Kasko Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Plaka, Kimlik ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(() => radioValue1 = currentValue),
text: 'Plakam Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(() => radioValue1 = currentValue),
text: 'Plakam Yok'),
],
),
if (radioValue1 == true)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'TR',
LeadingTextColor: Colors.white,
LeadingColor: Blue),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 21;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
if (radioValue1 == false)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
CustomTextInput(
label: 'Aracınızın Plaka İli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 22;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 21;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 21)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe')
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
if (currentpage == 22)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Text('Sıfır Aracın Alındığı Tarih', style: V16Sb),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Gün Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Ay Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Yıl Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kullanım Tarzı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kullanım Şekli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Marka',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Model Yılı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Model',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
//----3-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'03. Ruhsat & Araç Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 3)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 3)
Column(
children: [
SizedBox(height: 15),
Text('Ruhsat Belge Seri Numaranızı Biliyor musunuz?', style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(() => radioValue3 = currentValue),
text: 'Evet Biliyorum'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(() => radioValue3 = currentValue),
text: 'Hayır Bilmiyorum'),
],
),
if (radioValue3 == true)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Belge Seri',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Belge No',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
],
),
SizedBox(height: 25),
if (isEdit == false)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
InfoBox(
text:
'Emniyet Genel Müdürlüğü’nde kayıtlı araç bilgileriniz, aşağıdadır, lütfen doğruluğunu kontrol edin',
height: 97),
SizedBox(height: 35),
DualTextColumn(text1: 'Ruhsat Tescil Tarihi', text2: '21.01.2021'),
SizedBox(height: 25),
DualTextColumn(text1: 'Kullanım Tarzı Tescil Tarihi', text2: 'Otomobil'),
SizedBox(height: 25),
DualTextColumn(text1: 'Marka', text2: 'Peugeot'),
SizedBox(height: 25),
DualTextColumn(text1: 'Plaka', text2: '34 BFP 555'),
SizedBox(height: 25),
DualTextColumn(text1: 'Model Yılı', text2: '2018'),
SizedBox(height: 25),
DualTextColumn(text1: 'Model', text2: '308 Allure Sport 1.2 Puretech 130 S&S EAT8'),
SizedBox(height: 25),
Row(
children: [
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
isEdit = true;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
),
SizedBox(width: 15),
InkWell(
onTap: () {
setState(() {
isEdit = true;
});
},
child: Text('Düzenle', style: B18Sb)),
],
),
],
),
//Edit
if (isEdit == true)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
InfoBox(text: 'Araç bilgisi bulunamadı, lütfen araç bilgisini giriniz.', height: 97),
SizedBox(height: 35),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Gün Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Ay Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Yıl Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kullanım Tarzı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kullanım Şekli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Marka',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Model Yılı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Model',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
],
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
isEdit = false;
currentpage = 4;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----4-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'04. Diğer Özellikler',
style: V20Sb,
),
],
),
if (currentpage == 4)
Column(
children: [
SizedBox(height: 15),
Text('Sigortalamak İstediğiniz Araç Aksesuarı var mı?', style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(() => radioValue3 = currentValue),
text: 'Evet'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(() => radioValue3 = currentValue),
text: 'Hayır'),
],
),
if (radioValue3 == true)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Aracınız Engeli Aracı mı?', style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue31,
onChange: (currentValue) => setState(() => radioValue31 = currentValue),
text: 'Evet'),
RadioText<bool>(
value: false,
groupvalue: radioValue31,
onChange: (currentValue) => setState(() => radioValue31 = currentValue),
text: 'Hayır'),
],
),
SizedBox(height: 25),
Text('Sigortalamak İstediğiniz Araç Aksesuarı var mı?', style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue32,
onChange: (currentValue) => setState(() => radioValue32 = currentValue),
text: 'Evet'),
RadioText<bool>(
value: false,
groupvalue: radioValue32,
onChange: (currentValue) => setState(() => radioValue32 = currentValue),
text: 'Hayır'),
],
),
SizedBox(height: 25),
Text(
'Araç Aksesuarları',
style: V18Sb,
),
SizedBox(height: 20),
VehicleAccessories(title: 'LPG', text: 'Örnek: 1000 TL'),
SizedBox(height: 10),
VehicleAccessories(title: 'Radyo Teyp / CD Çalar', text: 'Örnek: 1000 TL'),
SizedBox(height: 10),
VehicleAccessories(title: 'Navigasyon', text: 'Örnek: 1000 TL'),
SizedBox(height: 10),
VehicleAccessories(title: 'Çelik Jant / Lastik', text: 'Örnek: 1000 TL'),
SizedBox(height: 10),
VehicleAccessories(title: 'Televizyon', text: 'Örnek: 1000 TL'),
SizedBox(height: 10),
VehicleAccessories(title: 'Diğer', text: 'Örnek: 1000 TL'),
],
),
SizedBox(height: 25),
SolidButton(
text: 'Kaydet ve Devam Et',
onPress: () {
Navigator.of(context).pushNamed(KaskoViewOffers.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
)
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Policelerim/Policelerim.dart
|
import 'package:acente/presentation/Screens/Policelerim/Policelerim_Detail.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class Policelerim extends StatefulWidget {
static const String routname = '/policelerim';
@override
_PolicelerimState createState() => _PolicelerimState();
}
class _PolicelerimState extends State<Policelerim> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: SafeArea(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 17),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
SizedBox(height: 55),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Poliçelerim', style: V40R),
SizedBox(height: 35),
InnerShadowDropdown(title: 'Nakliyat'),
SizedBox(height: 30),
CheckboxText(
text1: 'Vadesi bitmek üzere ',
text2: 'olanları göster',
onChange: (currentValue) => setState(
() => checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
SizedBox(height: 30),
MyPoliciesListView(text1: '12303203203232', text2: 'Sinan Soylu',text3: 'Akbank Neasürans Hizmetleri A.Ş',text4: 'Kalan Gün: 365',onTap: (){showDialog(context: context, builder: (context)=>PolicelerimDetail(),);},),
SizedBox(height: 25),
MyPoliciesListView(text1: '12303203203232', text2: 'Sinan Soylu',text3: 'Akbank Neasürans Hizmetleri A.Ş',text4: 'Kalan Gün: 365',onTap: (){showDialog(context: context, builder: (context)=>PolicelerimDetail(),);},),
SizedBox(height: 25),
MyPoliciesListView(text1: '12303203203232', text2: 'Sinan Soylu',text3: 'Akbank Neasürans Hizmetleri A.Ş',text4: 'Kalan Gün: 365',onTap: (){showDialog(context: context, builder: (context)=>PolicelerimDetail(),);},),
],
),
),
),
],
),
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Policelerim/Policelerim_Detail.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class PolicelerimDetail extends StatefulWidget {
@override
_PolicelerimDetailState createState() => _PolicelerimDetailState();
}
class _PolicelerimDetailState extends State<PolicelerimDetail> {
@override
Widget build(BuildContext context) {
return Dialog(
insetPadding: EdgeInsets.symmetric(horizontal: 23, vertical: 30),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 25, vertical: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Common/logo.png',
width: 115,
height: 57,
),
SizedBox(width: 12),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Zorunlu trafik Sigortası',
style: V16Sb,
),
SizedBox(height: 6),
Text(
'AK Sigorta',
style: V16L,
),
],
),
],
),
SizedBox(height: 24),
Container(
height: 78,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: Red_High_Shadow,
borderRadius: BorderRadius.circular(16),
),
padding: EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
RichText(text: TextSpan(children: [
TextSpan(text: 'Poliçe bedelim: ',style: V16L),
TextSpan(text: '3.700 TL',style: V16B),
],style: B16R),),
RichText(text: TextSpan(children: [
TextSpan(text: 'Yenileme tarihim: ',style: V16L),
TextSpan(text: '27.08.2022',style: V16B),
],style: B16R),),
],
),
),
SizedBox(height: 35),
Text('Ana teminatlar',style: V12Sb),
SizedBox(height: 12),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
Divider(),
SizedBox(height: 15),
DualTextRow(text1: 'Maddi Hasar Araç Başına',text2: '41.000 TL',style1: V16L,style2: V16Sb),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
DualTextRow(text1: 'Maddi Hasar Kaza Başına',text2: '82.000 TL',style1: V16L,style2: V16Sb),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
DualTextRow(text1: 'Ölüm ve Sakatlanma\nKişi Başına',text2: '410.000 TL',style1: V16L,style2: V16Sb),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
DualTextRow(text1: 'Ölüm ve Sakatlanma\nKaza Başına',text2: '2.050.000 TL',style1: V16L,style2: V16Sb),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
DualTextRow(text1: 'Sağlık Gideri Kişi Başına',text2: '410.000 TL',style1: V16L,style2: V16Sb),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
DualTextRow(text1: 'Sağlık Gideri Kaza Başına',text2: '2.050.000 TL',style1: V16L,style2: V16Sb),
SizedBox(height: 15),
Divider(),
],
),
),),
SizedBox(height: 25),
SolidButton(text: 'KAPAT', onPress: (){Navigator.of(context).pop();}, shadow: Red_High_Shadow,gradient: Red_Gradient),
],
),
));
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class YabanciEnterInfo extends StatefulWidget {
static const String routname = '/yabanci_enter_info';
@override
_YabanciEnterInfoState createState() => _YabanciEnterInfoState();
}
class _YabanciEnterInfoState extends State<YabanciEnterInfo> {
int currentpage = 1;
bool isSelected = true;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Yabancı Sağlık Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kişisel Bilgiler',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Aracınızın Plaka İli',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Aracınızın Plaka İli',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Pasaport / kimlik No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Poliçe Başlangıç Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Anne Adı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Baba Adı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Doğum Tarihiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Cinsiyetiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Uyruk',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
InfoBox(
text:
'18 yaşından küçüksünüz, lütfen ebeveyn bilgilerinizi girip öyle devam edin.',
height: 76),
SizedBox(height: 35),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Pasaport / kimlik No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Poliçe Başlangıç Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Anne Adı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Baba Adı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Doğum Tarihiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Cinsiyetiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Uyruk',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'03. Ruhsat & Araç Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 3)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 3)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Belde'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Mahalle'),
),
],
),
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Cadde/Sokak'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child:DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Bina No'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kapi No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context)
.pushNamed(YabanciViewOffers.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_Saglik_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class YabanciSaglikSigortasi extends StatefulWidget {
static const String routname = '/yabanci_saglik_sigortasi';
@override
_YabanciSaglikSigortasiState createState() => _YabanciSaglikSigortasiState();
}
class _YabanciSaglikSigortasiState extends State<YabanciSaglikSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Yabanci_Saglik_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/yabanci_saglik_sig.png',
width: 48),
SizedBox(width: 20),
Flexible(child: Text('Yabancı Sağlık Sigortası', style: V28R)),
],
),
),
SizedBox(height: 30),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: Column(
children: [
SizedBox(height: 20),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 15),
SolidButton(
text: 'PASAPORT TARAYICI KULLAN',
onPress: () {
Navigator.of(context).pushNamed(
QRIleTanimla.routname);
},
shadow: Low_Shadow,
color: Violet,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
YabanciEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
],
),
),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Yabanci_Saglik_Sigortasi/Yabanci_View_Offers.dart
|
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class YabanciViewOffers extends StatefulWidget {
static const String routname = '/yabanci_view_offers';
@override
_YabanciViewOffersState createState() => _YabanciViewOffersState();
}
class _YabanciViewOffersState extends State<YabanciViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Yabancı Sağlık Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Konut_Sigortasi/Konut_View_Offers.dart
|
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class KonutViewOffers extends StatefulWidget {
static const String routname = '/konut_view_offers';
@override
_KonutViewOffersState createState() => _KonutViewOffersState();
}
class _KonutViewOffersState extends State<KonutViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Konut Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Konut_Sigortasi/Konut_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Konut_Sigortasi/Konut_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class KonutEnterInfo extends StatefulWidget {
static const String routname = '/konut_enter_info';
@override
_KonutEnterInfoState createState() => _KonutEnterInfoState();
}
class _KonutEnterInfoState extends State<KonutEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = true;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Konut Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Text(
'Ruhsat Belge Seri Numaranızı Biliyor musunuz?',
style: V16L),
SizedBox(height: 7),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Ev Sahibiyim'),
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Kiracıyım'),
],
),
if (radioValue1 == true)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Text('Vadesi Dolmuş Poliçeniz var mı?',
style: V16L),
SizedBox(height: 7),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Evet, var'),
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Hayır, yok'),
],
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
if (radioValue1 == false)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
CustomTextInput(
label: 'Şirket Ünvanı (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'E-Posta',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '@',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'İl',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'İlçe',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'03. Adres Seçimi',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 3)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 3)
Column(
children: [
SizedBox(height: 15),
InfoBox(
text:
'Ulusal Adres Veri Tabanında kayıt adresiniz',
height: 76),
SizedBox(height: 25),
Text(
'Bu******* Mh. Me****** Sk. No. 12 Da.7 Ü******* İstanbul',
style: V16Sb),
SizedBox(height: 15),
Column(
children: [
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'İkamet adresim ile devam et'),
],
),
Row(
children: [
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text:
'Adres Seçimi Yaparak ( il, ilçe, belde vb.)'),
],
),
],
),
if (radioValue3 == false)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Belde'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Mahalle'),
),
],
),
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Cadde/Sokak'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('Bina No'),
),
],
),
),
),
],
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
isEdit = false;
currentpage = 4;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----4-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'04. Konut Bilgileri',
style: V20Sb,
),
],
),
if (currentpage == 4)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Dairenin brüt m2',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Binanın Yapı Tarzı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Dairenin Kullanım Şekli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'İnşaat Yılı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Binadaki Top. Kat Say.',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Bulunduğu Kat',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Text(
'Rehinli Alacak Var mı?',
style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'Evet Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'Hayır Yok'),
],
),
SizedBox(height: 15),
if (radioValue3 == true)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Kurum Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Şube Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Text('Dask Var mı?', style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue31,
onChange: (currentValue) => setState(
() =>
radioValue31 = currentValue),
text: 'Evet Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue31,
onChange: (currentValue) => setState(
() =>
radioValue31 = currentValue),
text: 'Hayır Yok'),
],
),
SizedBox(height: 25),
Text('Konut 3 aydan fazla boş kalıyor mu?',
style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue32,
onChange: (currentValue) => setState(
() =>
radioValue32 = currentValue),
text: 'Evet Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue32,
onChange: (currentValue) => setState(
() =>
radioValue32 = currentValue),
text: 'Hayır Yok'),
],
),
SizedBox(height: 25),
VehicleAccessories(
title: 'Cam Teminatı', text: 'Örnek: 1000 TL'),
SizedBox(height: 10),
VehicleAccessories(
title: 'Dekorasyon Teminatı',
text: 'Örnek: 1000 TL'),
],
),
SizedBox(height: 25),
SolidButton(
text: 'Kaydet ve Devam Et',
onPress: () {
Navigator.of(context)
.pushNamed(KonutViewOffers.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
)
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Konut_Sigortasi/Konut_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Konut_Sigortasi/Konut_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class KonutSigortasi extends StatefulWidget {
static const String routname = '/konut_sigortasi';
@override
_KonutSigortasiState createState() => _KonutSigortasiState();
}
class _KonutSigortasiState extends State<KonutSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Konut_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/konut_sigortasi.png',
width: 48),
SizedBox(width: 20),
Text('Konut Sigortası', style: V28R),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: DefaultTabController(
length: 2,
child: Column(
children: [
SizedBox(height: 20),
TabBar(
labelStyle: B20Sb,
unselectedLabelStyle: B20Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Ev Sahibiyim'),
Tab(text: 'Kiracıyım'),
],
),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
TabBarView(
children: [
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
KonutEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
CustomTextInput(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
icon:
Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
KonutEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
],
),
],
),
),
],
),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Home/Anasayfa_No_Login.dart
|
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:dots_indicator/dots_indicator.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'Acente365_Detay.dart';
class AnasayfaNoLogin extends StatefulWidget {
static const String routname = '/anasayfa_no_login';
@override
_AnasayfaNoLoginState createState() => _AnasayfaNoLoginState();
}
class _AnasayfaNoLoginState extends State<AnasayfaNoLogin> {
PageController controller = PageController();
double currentPage = 0;
@override
void initState() {
super.initState();
controller.addListener(() {
setState(() {
currentPage = controller.page?? 0;
});
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('lib/presentation/Assets/Assets_Home/background${currentPage.round()}.png'),
fit: BoxFit.fill),
),
child: SafeArea(
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(bottom: 55,top: 17,right: 25,left: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png',width: 160),
Spacer(),
BorderButton(text: 'Giriş yap', color: Ternary, onPress: (){Navigator.of(context).pushNamed(GirisYap.routname);}, shadow: Red_High_Shadow,fontSize: 12,padding: EdgeInsets.symmetric(vertical: 7,horizontal: 8)),
SizedBox(width: 15),
SolidButton(text: 'ÜYE OL', onPress: (){Navigator.of(context).pushNamed(UyeOI.routname);}, shadow: Red_High_Shadow, gradient: Red_Gradient,fontSize: 12,padding: EdgeInsets.symmetric(vertical: 9,horizontal: 10)),
],
),
),
Expanded(
child: PageView(
controller: controller,
children: [
HomePageSliderItem(heading: 'Aradığın sigorta, Acente365’da',subHeading: 'Kasko’dan Dask’a, Tamamlayıcı Sağlık Sigortasından Seyahat Sigortasına kadar aradığın her teklifi bul, karşılaştır, satın al.',buttonVisible: false,),
HomePageSliderItem(heading: 'Kasko Sigortası',subHeading: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',),
HomePageSliderItem(heading: 'Trafik Sigortası',subHeading: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',),
HomePageSliderItem(heading: 'Dask Sigortası',subHeading: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',),
HomePageSliderItem(heading: 'Tamamlayıcı Sağlık Sigortası',subHeading: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ',),
],
),
),
DotsIndicator(
dotsCount: 5,
position: currentPage,
decorator: DotsDecorator(
size: const Size.square(9.0),
activeSize: const Size(18.0, 18.0),
activeColor: Violet,
activeShape: CircleBorder(side: BorderSide(color: Color(0xFFc5bec7),width: 4),),
),
),
SizedBox(height: 75),
],
),
),
),
);
}
}
class HomePageSliderItem extends StatelessWidget {
final String heading;
final String subHeading;
final bool buttonVisible;
HomePageSliderItem({required this.heading, required this.subHeading, this.buttonVisible = true});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(heading,style: V40Sb),
SizedBox(height: 25),
Text(subHeading,style: V16L),
SizedBox(height: 25),
Row(
children: [
Expanded(child: SolidButton(text: 'TEKLIF AL', onPress: (){}, shadow: Blue_High_Shadow,gradient: Blue_Gradient_2)),
if(buttonVisible)
SizedBox(width: 25),
if(buttonVisible)
Expanded(child: BorderButton(text: 'BILGI AL', onPress: (){Navigator.of(context).pushNamed(Acente365Detay.routname);}, shadow: Blue_High_Shadow,color: Blue)),
],
),
Spacer(),
Row(
children: [
ContainerText(title: 'Aninda Teklif', image: 'lib/presentation/Assets/Assets_Home/hand.png', shadow: Blue_High_Shadow),
SizedBox(width: 32),
ContainerText(title: '24/7 Destek', image: 'lib/presentation/Assets/Assets_Home/handfree.png', shadow: Red_High_Shadow),
],
),
Spacer(),
Row(
children: [
ContainerText(title: 'Kolay Erisim', image: 'lib/presentation/Assets/Assets_Home/path.png', shadow: Blue_High_Shadow),
SizedBox(width: 32),
ContainerText(title: 'Full Destek', image: 'lib/presentation/Assets/Assets_Home/shield.png', shadow: Red_High_Shadow),
],
),
SizedBox(height: 30),
],
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Home/Anasayfa.dart
|
import 'package:acente/presentation/Screens/After_Login/Anasayfa_Logged_In.dart';
import 'package:flutter/material.dart';
class Anasayfa extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AnasayfaLoggedIn();
}
}
// AnasayfaLoggedIn();
// AnasayfaNoLogin();
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Home/Hesabi.dart
|
import 'package:acente/presentation/Screens/Hesabim/Hesabim.dart';
import 'package:flutter/material.dart';
class Hesabi extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Hesabim();
}
}
//HesabimNotLoggedIn();
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Home/Acente365_Detay.dart
|
import 'dart:ui';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class Acente365Detay extends StatefulWidget {
static const String routname = '/acente_365_detay';
@override
_Acente365DetayState createState() => _Acente365DetayState();
}
class _Acente365DetayState extends State<Acente365Detay> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
child: Padding(
padding: const EdgeInsets.all(25),
child: Column(
children: [
Row(
children: [
Flexible(child: Text('Trafik Sigortası nasıl yenilenir?',style: V28R)),
CircleIconButton(buttonColor: Colors.white, onPress: (){Navigator.pop(context);}, shadow: Red_Low_Shadow, icon: Icons.close, iconColor: Violet)
],
),
SizedBox(height: 25),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
Text(''' Zorunlu Trafik Sigortası her sürücünün aracı için yaptırmakla yükümlü olduğu bir sigorta türüdür. Olası bir kazada karşı tarafın zararını ve 3.kişilere verilen zararları karşılamaktadır. Trafik Sigortası yaptırılmaması durumunda, sigortası bulunmayan aracın kanunen trafiğe çıkması yasaktır. Sigortası bulunmayan araç birimlerce tespit edilirse araç bağlanır ayrıca para cezası alır ve hasarsızlık indirimleri de yok olur.
Trafik Sigortası poliçesinde de diğer sigorta türlerinde olduğu için kapsam alanı bulunmaktadır. Poliçenin kapsamına giren ve girmeyen durumlar mevcuttur. Trafik Sigortasının genel şartları her sigorta şirketinde aynıdır. Aşağıda Zorunlu Trafik Sigortası kapsamına girmeyen durumları bulabilirsiniz.
1. Araç park halindeyse yani kullanılmıyorsa trafik sigortası kapsamında değildir. Yani; bir aracın zararın Trafik Sigortası kapsamında sayılması için trafiğe çıkmış olmadı ve seyir halinde olmalıdır.
2. Kazaya neden olan sigortalı aracın sürücüsünün ailesi (eş, çocuk, kardeş) aynı araçta yolculuk yapıyor olsa dahi maddi ve manevi tazminat talepleri karşılanmamaktadır.
3. Kaza sonucunda zarar gören kişilerin yanında bulunan bagaj, eşya vs. malların zararları poliçe kapsamında değildir.
4. Yarış amaçlı yapılan antrenmanlar sonucunda oluşabilecek zararlar (aracın yarış yapması veya gösteride kullanılması)
5. Manevi tazminat talepleri
6. Patlayıcı be parlayıcı madde taşınması sebebiyle oluşan zararlar
7. Sigortalının kendisinin uğrayacağı zararlar
8. Aracın bakım, onarım, alım-satım gibi işlemler nedeniyle faaliyette bulunacak yerlere bırakılması sonucunda meydana gelen zararlar. (bu zararlar faaliyet alanına aittir.)
9. Gasp veya çalınan araçların sebep olduğu zararlar'''),
],
),
),
)
],
),
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Home/Policele.dart
|
import 'package:acente/presentation/Screens/Policelerim/Policelerim.dart';
import 'package:flutter/material.dart';
class Policele extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Policelerim();
}
}
//PolicelerimNotLoggedIn();
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Home/Home_Bottom_Tabs.dart
|
import 'package:acente/presentation/Screens/Destek/Destek.dart';
import 'package:acente/presentation/Screens/Home/Anasayfa.dart';
import 'package:acente/presentation/Screens/Home/Hesabi.dart';
import 'package:acente/presentation/Screens/Home/Policele.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class HomeBottomTabs extends StatefulWidget {
static const String routname = '/home_bottom_tabs';
@override
State<StatefulWidget> createState() {
return _BottomTab();
}
}
class _BottomTab extends State<HomeBottomTabs> {
int _selectedTabIndex = 0;
List _pages = [
Anasayfa(),
Policele(),
TeklifAI(),
Hesabi(),
Destek(),
];
_changeIndex(int index) {
setState(() {
_selectedTabIndex = index;
print("index..." + index.toString());
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
endDrawer: Drawer(
child: Container(
color: Dark_Purple,
child: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: ListView(
physics: ClampingScrollPhysics(),
padding: EdgeInsets.zero,
children: [
Row(
children: [
Text('MENU', style: V50L),
Spacer(),
RoundedRectangeButton(icon: Icons.close),
],
),
SizedBox(height: 31),
IconTextButton(
text: 'Dashboard',
buttonColor: Blue,
onPress: () {},
shadow: Blue_High_Shadow,
color: Colors.white,
image: AssetImage('lib/presentation/Assets/Assets_Home/house.png'),
),
SizedBox(height: 15),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
title: const Text('Poliçelerim', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
title: const Text('Teklif Al', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
trailing: Icon(Icons.keyboard_arrow_down_sharp,
color: Colors.white),
title: const Text('Üretim', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
trailing: Icon(Icons.keyboard_arrow_down_sharp,
color: Colors.white),
title: const Text('Satislar', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
trailing: Icon(Icons.keyboard_arrow_down_sharp,
color: Colors.white),
title: const Text('Hasarlar', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
title: const Text('Bildirimler', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
title: const Text('Hesabim', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
title: const Text('Ayarlar', style: W16R),
onTap: () {},
),
ListTile(
leading: Image.asset(
'lib/presentation/Assets/Assets_Home/umbrella.png',
width: 24),
title: const Text('Acente365 Support', style: W16R),
onTap: () {},
),
SizedBox(height: 55),
Row(
children: [
Container(
width: 64,
height: 64,
decoration: BoxDecoration(
color: Melachite,
borderRadius: BorderRadius.circular(16),
),
),
SizedBox(width: 15),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Howdy,', style: W12L),
SizedBox(height: 5),
Text('Sinan Soylu', style: W16R),
SizedBox(height: 8),
Text('Log Out', style: R14L),
],
),
SizedBox(width: 23),
Container(
width: 32,
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.5),
shape: BoxShape.circle,
),
padding: EdgeInsets.all(7),
child: Icon(Icons.arrow_forward_ios_sharp,
color: Violet),
),
],
)
],
),
),
)),
),
body: Stack(
alignment: Alignment.bottomCenter,
children: [
SizedBox(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: _pages[_selectedTabIndex],
),
Positioned(
child: bottomNavigationBar,
),
],
),
// bottomNavigationBar: bottomNavigationBar,
);
}
Widget get bottomNavigationBar {
return Container(
decoration: BoxDecoration(
gradient: Red_Gradient_Rev,
boxShadow: Red_High_Shadow_Rev,
borderRadius: BorderRadius.only(
topRight: Radius.circular(30), topLeft: Radius.circular(30)),
),
child: ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(30.0),
topRight: Radius.circular(30.0),
),
child: BottomNavigationBar(
showSelectedLabels: false,
showUnselectedLabels: false,
backgroundColor: Colors.transparent,
currentIndex: _selectedTabIndex,
elevation: 0,
onTap: _changeIndex,
type: BottomNavigationBarType.fixed,
selectedItemColor: Colors.white,
unselectedItemColor: Colors.grey[500],
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage(
'lib/presentation/Assets/Assets_Home/house.png',
),
),
label: '',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage(
'lib/presentation/Assets/Assets_Home/umbrella.png',
),
),
label: '',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage(
'lib/presentation/Assets/Assets_Home/logo_icon.png',
),
),
label: '',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage(
'lib/presentation/Assets/Assets_Home/user.png',
),
),
label: '',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('lib/presentation/Assets/Assets_Home/headphones.png'),
),
label: '',
),
],
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Destek/Kasko_Degeri_Sorgula.dart
|
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class KaskoDegeriSorgula extends StatefulWidget {
static const String routname = '/kasko_degeri_sorgula';
@override
_KaskoDegeriSorgulaState createState() => _KaskoDegeriSorgulaState();
}
class _KaskoDegeriSorgulaState extends State<KaskoDegeriSorgula> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 7),
),
Spacer(),
BorderButton(
text: 'Giriş yap',
color: Ternary,
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 7, horizontal: 8)),
SizedBox(width: 15),
SolidButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context).pushNamed(UyeOI.routname);
},
shadow: Red_High_Shadow,
gradient: Red_Gradient,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
SizedBox(height: 50),
Text('Kasko Değeri sorgula', style: V40R),
SizedBox(height: 35),
CustomTextInput(
label: 'Model yılı',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'Marka', TextColor: Violet, labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'Model', TextColor: Violet, labelColor: Raisin_Black),
Spacer(),
Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text('Kasko Değeri', style: V20R),
SizedBox(height: 14),
Text('Toyota Corolla 1.4 Advanced 2021', style: V14R),
SizedBox(height: 18),
Text('250.000 Tl', style: B34Sb),
],
),
Spacer(),
SolidButton(
text: 'TAMAMLA',
onPress: () {},
shadow: Low_Shadow,
gradient: Blue_Gradient_2),
SizedBox(height: 50)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Destek/Sikca_Sorulan_Sorular.dart
|
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:bubble_tab_indicator/bubble_tab_indicator.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class SikcaSorulanSorular extends StatefulWidget {
static const String routname = '/sikca_sorulan_sorular';
@override
_SikcaSorulanSorularState createState() => _SikcaSorulanSorularState();
}
class _SikcaSorulanSorularState extends State<SikcaSorulanSorular> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 7),
),
Spacer(),
BorderButton(
text: 'Giriş yap',
color: Ternary,
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 7, horizontal: 8)),
SizedBox(width: 15),
SolidButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context).pushNamed(UyeOI.routname);
},
shadow: Red_High_Shadow,
gradient: Red_Gradient,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
SizedBox(height: 50),
Text('Sıkça Sorulan Sorular', style: V40R),
SizedBox(height: 20),
Neumorphic(
style: NeumorphicStyle(
intensity: 0.70,
shape: NeumorphicShape.flat,
boxShape:
NeumorphicBoxShape.roundRect(BorderRadius.circular(25)),
depth: -10,
lightSource: LightSource.top,
color: Colors.grey),
child: Container(
height: 60,
color: Colors.white,
child: Row(
children: [
SizedBox(width: 20),
Icon(Icons.search),
SizedBox(width: 10),
Text('Arama Yap'),
SizedBox(width: 20),
],
),
),
),
SizedBox(height: 20),
Expanded(
child: DefaultTabController(
length: 5,
child: Column(
children: [
TabBar(
isScrollable: true,
indicatorSize: TabBarIndicatorSize.tab,
indicator: BubbleTabIndicator(
indicatorHeight: 25.0,
indicatorColor: Ternary,
tabBarIndicatorSize: TabBarIndicatorSize.tab,
// Other flags
// indicatorRadius: 1,
// insets: EdgeInsets.all(1),
// padding: EdgeInsets.all(10)
),
// labelStyle: B16Sb,
// unselectedLabelStyle: B16Sb,
// unselectedLabelColor: Blue.withOpacity(0.5),
// labelColor: Blue,
tabs: [
Tab(
child: Text(
'Genel',
style: V16L,
),
),
Tab(
child: Text(
'Ödeme',
style: V16L,
),
),
Tab(
child: Text(
'Hizmetler',
style: V16L,
),
),
Tab(
child: Text(
'Kasko',
style: V16L,
),
),
Tab(
child: Text(
'Bire',
style: V16L,
),
),
]),
Expanded(
child: TabBarView(
children: List.generate(
5,
(index) => SingleChildScrollView(
child: Column(
children: [
Container(
width: MediaQuery.of(context).size.width,
height: 164,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(16),
boxShadow: Blue_High_Shadow,
),
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25),
child: Column(
children: [
SizedBox(height: 25),
Row(
children: [
Text(
'Lorem İpsum Sit Dolor Met',
style: V16Sb,
),
Spacer(),
Icon(Icons.keyboard_arrow_down),
],
),
SizedBox(height: 15),
Text(
'Ullamco incididunt minim nostrud in nulla deserunt mollit nisi. Nisi ullamco id ex amet anim sunt sint. Voluptate est enim esse ex sit nisi id cillum nulla est.',
style: V16L),
],
),
),
),
SizedBox(height: 30),
Container(
width: MediaQuery.of(context).size.width,
height: 88,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(16),
boxShadow: Blue_High_Shadow,
),
child: Row(
children: [
SizedBox(width: 25),
Flexible(
child: Text(
'Ullamco incididunt minim nostrud in nulla deserunt mollit nisi.',
style: V16Sb,
)),
Icon(Icons.keyboard_arrow_down),
SizedBox(width: 20),
],
),
),
SizedBox(height: 30),
Container(
width: MediaQuery.of(context).size.width,
height: 88,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(16),
boxShadow: Blue_High_Shadow,
),
child: Row(
children: [
SizedBox(width: 25),
Flexible(
child: Text(
'Ullamco incididunt minim nostrud in nulla deserunt mollit nisi.',
style: V16Sb,
)),
Icon(Icons.keyboard_arrow_down),
SizedBox(width: 20),
],
),
),
SizedBox(height: 30),
BorderButton(
text: 'Daha Fazla Yükle',
color: Blue,
onPress: () {},
shadow: Blue_Low_Shadow),
],
),
),
),
),
),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Destek/Subelerimiz.dart
|
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class Subelerimiz extends StatefulWidget {
static const String routname = '/subelerimiz';
@override
_SubelerimizState createState() => _SubelerimizState();
}
class _SubelerimizState extends State<Subelerimiz> {
int _toggleValue = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(
bottom: 45, top: 17, right: 25, left: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 7),
),
Spacer(),
BorderButton(
text: 'Giriş yap',
color: Ternary,
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 7, horizontal: 8)),
SizedBox(width: 15),
SolidButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context).pushNamed(UyeOI.routname);
},
shadow: Red_High_Shadow,
gradient: Red_Gradient,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(
left: 25, right: 25, bottom: 25),
child: Text('Şubelerimiz', style: V40R),
),
Image.asset('lib/presentation/Assets/Assets_Destek/map.png'),
Padding(
padding: const EdgeInsets.only(
left: 25, right: 37, top: 25, bottom: 35),
child: Row(
children: [
Text('Bana En Yakın Şubeleri Göster', style: V16Sb),
Spacer(),
CircleIconButton(
buttonColor: Colors.white,
onPress: () {},
shadow: Red_Low_Shadow,
icon: Icons.my_location,
iconColor: Violet)
],
),
),
Row(
children: [
SizedBox(width: 25),
RotatedBox(
quarterTurns: 1,
child: RichText(
text: TextSpan(
text: 'Hello World ',
style: V16L,
children: [
WidgetSpan(
child: Icon(Icons.arrow_forward),
)
],
),
),
),
SizedBox(width: 23),
Expanded(
child: Padding(
padding: const EdgeInsets.only(right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
AnimatedToggle(
values: ['Yurtiçi', 'Yurtdışı'],
onToggleCallback: (value) {
setState(() {
_toggleValue = value;
});
},
buttonColor: Violet,
backgroundColor: Unseleted,
textColor: Colors.white,
width:
MediaQuery.of(context).size.width - 100,
height: 59,
),
SizedBox(height: 25),
Neumorphic(
style: NeumorphicStyle(
intensity: 0.70,
shape: NeumorphicShape.flat,
boxShape: NeumorphicBoxShape.roundRect(
BorderRadius.circular(25)),
depth: -10,
lightSource: LightSource.top,
color: Colors.grey),
child: Container(
height: 60,
color: Colors.white,
child: Row(
children: [
SizedBox(width: 20),
Text('Tüm İller'),
Spacer(),
Icon(Icons.keyboard_arrow_down),
SizedBox(width: 20),
],
),
),
),
],
),
),
)
],
),
Padding(
padding: EdgeInsets.only(
top: 15, bottom: 15, left: 25, right: 25),
child: Text(
'a',
style: V60Sb,
),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
BranchItem(),
BranchItem(),
BranchItem(),
BranchItem(),
BranchItem(),
BranchItem(),
],
),
),
Padding(
padding: EdgeInsets.only(
top: 15, bottom: 15, left: 25, right: 25),
child: Text(
'b',
style: V60Sb,
),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
BranchItem(),
BranchItem(),
BranchItem(),
BranchItem(),
BranchItem(),
BranchItem(),
],
),
),
SizedBox(height: 50),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Destek/QR_ile_tanımla.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class QRIleTanimla extends StatefulWidget {
static const String routname = '/QR_ile_tanimla';
@override
_QRIleTanimlaState createState() => _QRIleTanimlaState();
}
class _QRIleTanimlaState extends State<QRIleTanimla> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(
top: 19, bottom: 34, left: 25, right: 25),
child: Row(
children: [
Text('QR İle tanımla', style: V40R),
Spacer(),
CircleIconButton(
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Red_Low_Shadow,
icon: Icons.close,
iconColor: Violet),
],
),
),
Expanded(
child: Container(
width: MediaQuery.of(context).size.width,
// height: MediaQuery.of(context).size.height - 188,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('lib/presentation/Assets/Assets_Destek/qr.png'),
fit: BoxFit.fill),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Destek/Destek.dart
|
import 'package:acente/presentation/Screens/Destek/Hasar_Talebi_Gonder.dart';
import 'package:acente/presentation/Screens/Destek/Kasko_Degeri_Sorgula.dart';
import 'package:acente/presentation/Screens/Destek/Sikca_Sorulan_Sorular.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
import 'Subelerimiz.dart';
class Destek extends StatefulWidget {
static const String routname = '/destek';
@override
_DestekState createState() => _DestekState();
}
class _DestekState extends State<Destek> {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: Column(
children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: 25,vertical: 17),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Destek/Logo.png',width: 160),
Spacer(),
BorderButton(text: 'S.SOYLU', color: Ternary, onPress: (){}, shadow: Red_High_Shadow,padding: EdgeInsets.symmetric(horizontal: 10,vertical: 7),fontSize: 12,),
],
),
),
SizedBox(height: 40),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Text('Destek',style: V40R),
Spacer(),
IconTextButton(text: 'ARA', buttonColor: Violet, onPress: (){}, shadow: Low_Shadow, color: Colors.white,icon: Icons.phone,padding: EdgeInsets.symmetric(horizontal: 15,vertical: 14),)
],
),
),
SizedBox(height: 25),
Container(
height: 175,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
image: DecorationImage(image: AssetImage('lib/presentation/Assets/Assets_Destek/hands.png'),
fit: BoxFit.fill
),
),
child: Stack(
alignment: Alignment.bottomCenter,
children: [
Column(
children: [
SizedBox(height: 28),
Text('7/24 Uzmanından Destek',style: W12R),
SizedBox(height: 10),
Text('850 433 0850',style: W18R),
SizedBox(height: 22),
Container(
height: 47,
width: MediaQuery.of(context).size.width-40,
decoration: BoxDecoration(
color: Quaternary.withOpacity(0.70),
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(16),bottomRight: Radius.circular(16))
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.phone,color: Colors.white,),
SizedBox(width: 10),
Text('BIZ SIZI ARAYALIM',style: W12L),
],
),
),
],
),
],
),
),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
TextAndIcon(title: 'Sözleşmeler', icon: Icons.add),
TextAndIcon(title: 'KVKK Hakkında Bilgilendirme', icon: Icons.arrow_forward),
TextAndIcon(title: 'Açık Rıza Metni', icon: Icons.arrow_forward),
TextAndIcon(title: 'Gizlilik, Kullanım Koşulları ve\nKullanıcı Sözleşmesi', icon: Icons.arrow_forward),
TextAndIcon(title: 'Şubelerimiz', icon: Icons.arrow_forward, onTap: (){Navigator.of(context).pushNamed(Subelerimiz.routname);},),
TextAndIcon(title: 'Hasar Talebi Gönder', icon: Icons.arrow_forward,onTap: (){Navigator.of(context).pushNamed(HasarTalebiGonder.routname);},),
TextAndIcon(title: 'Mobil kaza tutanağı', icon: Icons.arrow_forward),
TextAndIcon(title: 'Kasko Değeri sorgula', icon: Icons.arrow_forward,onTap: (){Navigator.of(context).pushNamed(KaskoDegeriSorgula.routname);}),
TextAndIcon(title: 'Sıkça Sorulan Sorular', icon: Icons.arrow_forward,onTap: (){Navigator.of(context).pushNamed(SikcaSorulanSorular.routname);}),
],
),
),
),
SizedBox(height: 50),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Destek/Hasar_Talebi_Gonder.dart
|
import 'package:acente/presentation/Screens/Login_and_Register/Giris_Yap.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'QR_ile_tanımla.dart';
class HasarTalebiGonder extends StatefulWidget {
static const String routname = '/hasar_talebi_gonder';
@override
_HasarTalebiGonderState createState() => _HasarTalebiGonderState();
}
class _HasarTalebiGonderState extends State<HasarTalebiGonder> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 7),
),
Spacer(),
BorderButton(
text: 'Giriş yap',
color: Ternary,
onPress: () {
Navigator.of(context).pushNamed(GirisYap.routname);
},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 7, horizontal: 8)),
SizedBox(width: 15),
SolidButton(
text: 'ÜYE OL',
onPress: () {
Navigator.of(context).pushNamed(UyeOI.routname);
},
shadow: Red_High_Shadow,
gradient: Red_Gradient,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical: 9, horizontal: 10)),
],
),
SizedBox(height: 50),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
Text('Hasar Talebi Gönder', style: V40R),
SizedBox(height: 35),
SolidButton(
text: 'QR İLE TANIMLA',
onPress: () {
Navigator.of(context)
.pushNamed(QRIleTanimla.routname);
},
shadow: Low_Shadow,
color: Violet),
SizedBox(height: 25),
Column(
children: [
CustomTextInput(
label: 'Kategori',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'TC kimlik / Vergi no',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Plaka',
TextColor: Violet,
labelColor: Raisin_Black),
),
SizedBox(width: 25),
Expanded(
child: CustomTextInput(
label: 'Belge Seri No',
TextColor: Violet,
labelColor: Raisin_Black),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Telefon Numaranız',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'E-posta Adresi',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'Poliçe Numarası',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
],
),
Container(
height: 94,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(16),
boxShadow: Low_Shadow),
child: Column(
children: [
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.upload_file, color: Violet),
SizedBox(width: 10),
Text('Kaza Tutanağı Ekle', style: V16R),
],
),
SizedBox(height: 15),
Text('jpg, pdf, png, xls, xlsx, word, wordx',
style: V14R),
],
),
),
SizedBox(height: 25),
DualTextRow(text1: 'Hasar_talebi.ppt', text2: 'Sil'),
SizedBox(height: 25),
DualTextRow(text1: 'kaza_tutanagi.zip', text2: 'Sil'),
SizedBox(height: 25),
SolidButton(
text: 'QR İLE TANIMLA',
onPress: () {},
shadow: Low_Shadow,
gradient: Blue_Gradient_2),
SizedBox(height: 50),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Start_Screens/Dil_Secimi.dart
|
import 'package:acente/presentation/Screens/Start_Screens/Splash_Screens.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class DilSecimi extends StatefulWidget {
static const String routname = '/dil_secimi';
@override
_DilSecimiState createState() => _DilSecimiState();
}
class _DilSecimiState extends State<DilSecimi> {
int? selectedLang;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: Column(
children: [
SizedBox(height: 70),
Row(
children: [
SizedBox(width: 25),
Text('Merhaba,', style: V34L),
Text('Dil Seçiniz', style: V34Sb),
],
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25,vertical: 30),
child: TextInputWithIcon(label: 'Dil bulunuz', textColor: Color(0xFF000000), iconColor: Violet, icon: Icons.search),
),
Expanded(
child: Container(
color: Azure,
child: Column(
children: [
SelectLanguage(image: 'turkey_flag',text: 'Türkçe',onTap: (){
setState(() {
selectedLang = 0;
});
},isSelected: selectedLang == 0),
SelectLanguage(image: 'russia_flag',text: 'Rusça',onTap: (){
setState(() {
selectedLang = 1;
});
},isSelected: selectedLang == 1),
SelectLanguage(image: 'iran_flag',text: 'Farsi' ,onTap: (){
setState(() {
selectedLang = 2;
});
},isSelected: selectedLang == 2),
Spacer(),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: SolidButton(text: 'DEVAM ET', onPress: (){Navigator.of(context).pushNamed(SplashScreens.routeName);}, shadow: Blue_High_Shadow,gradient: Blue_Gradient_2),
),
],
),
),
),
SizedBox(height: 25),
],
),
),
);
}
}
class SelectLanguage extends StatelessWidget {
final String text;
final String image;
final void Function() onTap;
final bool isSelected;
SelectLanguage({required this.image, required this.text, required this.onTap, required this.isSelected});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25,vertical: 30),
child: InkWell(
onTap: onTap,
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
Image.asset('lib/presentation/Assets/Assets_Start_Screens/${image}.png',width: 40),
SizedBox(width: 25),
Text(text),
Spacer(),
if (isSelected)
Image.asset('lib/presentation/Assets/Assets_Start_Screens/right_tick.png',width: 20),
Divider(),
],
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Start_Screens/acente_loading_screen.dart
|
import 'dart:async';
import 'package:acente/presentation/Screens/Start_Screens/Dil_Secimi.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter/material.dart';
class AcenteLoadingScreen extends StatefulWidget {
static const String routeName = '/accente_loading_screen';
@override
_AcenteLoadingScreenState createState() => _AcenteLoadingScreenState();
}
class _AcenteLoadingScreenState extends State<AcenteLoadingScreen> {
@override
void initState() {
Timer(
Duration(
seconds: 1,
),
(){
Navigator.of(context).pushReplacementNamed(DilSecimi.routname);
}
);
super.initState();
}
@override
Widget build(BuildContext context) {
return Container(
color: Primary,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 70),
child: Image.asset('lib/presentation/Assets/Assets_Start_Screens/logo.png'),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Start_Screens/Splash_Screens.dart
|
import 'package:acente/presentation/Screens/Home/Anasayfa_No_Login.dart';
import 'package:acente/presentation/Screens/Home/Home_Bottom_Tabs.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:dots_indicator/dots_indicator.dart';
import 'package:flutter/material.dart';
class SplashScreens extends StatefulWidget {
static const String routeName = '/splash_screen';
@override
_SplashScreensState createState() => _SplashScreensState();
}
class _SplashScreensState extends State<SplashScreens> {
PageController controller = PageController();
double currentPage = 0;
List<Color> color = [Violet,Dark_Purple,Raisin_Black,Ternary,Quaternary];
List<String> heading = ['Anında Teklif Al, Karşılaştır, Satın Al!',
'Geçmiş poliçelerini kolayca Takip et!',
'QR Kod Kolaylığı BilgilerinAnında Gelsin!',
'24 Banka ile Anlaşmalı Peşin, Taksitli Ödeme Kolaylığı!',
'29 Farklı Sigorta Şirketi Tek bir uygulamada'
];
@override
void initState() {
super.initState();
controller.addListener(() {
setState(() {
currentPage = controller.page?? 0;
});
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: Column(
children: [
ClipPath(
clipper: DownCircle(MediaQuery.of(context).size.width,MediaQuery.of(context).size.height),
child: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height/1.5,
color: color[currentPage.round()],
child: Column(
children: [
Expanded(
child: PageView(
controller: controller,
children: [
ImageOverllay(image: 'shoping_trolly.png'),
ImageOverllay(image: 'plus1.png'),
ImageOverllay(image: 'qr_scan.png'),
ImageOverllay(image: 'card.png'),
ImageOverllay(image: 'logo.png',width: 260),
],
),
),
DotsIndicator(
dotsCount: 5,
position: currentPage,
decorator: DotsDecorator(
size: const Size.square(9.0),
activeSize: const Size(18.0, 18.0),
activeColor: Colors.white,
activeShape: CircleBorder(side: BorderSide(color: Color(0xFF706d81),width: 4),),
),
),
SizedBox(height: 25),
Text(heading[currentPage.round()],style: W28Sb,textAlign: TextAlign.center),
SizedBox(height: 40),
],
),
),
),
Spacer(),
Padding(
padding: const EdgeInsets.all(25),
child: Text('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',textAlign: TextAlign.center,style: V16L),
),
Spacer(),
Row(
children: [
SizedBox(width: 25),
Flexible(flex: 3, child: SolidButton(text: (currentPage == 4)?'HEMEN BASLA':'DEVAM ET', onPress: (){Navigator.of(context).pushNamed(HomeBottomTabs.routname); }, shadow: Blue_High_Shadow , gradient: Blue_Gradient_2)),
SizedBox(width: 25),
if (currentPage <= 3)
Flexible(flex: 1,child: BorderButton(text: 'ATLA', color: Violet, onPress: (){}, shadow: Violet_Low_Shadow)),
if (currentPage <= 3)
SizedBox(width: 25),
],
),
Spacer(),
SizedBox(height: 25)
],
),
),
);
}
}
class ImageOverllay extends StatelessWidget {
final String image;
final double? width;
ImageOverllay({required this.image,this.width});
@override
Widget build(BuildContext context) {
return Stack(
alignment: Alignment.center,
children: [
Image.asset('lib/presentation/Assets/Assets_Start_Screens/logo_icon.png',width: 260),
Image.asset('lib/presentation/Assets/Assets_Start_Screens/$image',width: width ?? 160),
],
);
}
}
class DownCircle extends CustomClipper<Path>{
final double width;
final double height;
DownCircle(this.width,this.height);
@override
Path getClip(Size size) {
Path path = _getRandomPath();
return path;
}
Path _getRandomPath(){
var path = Path();
path.addOval(Rect.fromCircle(
center: Offset(width/2, 100),
radius: (height/1.5)-100,
));
return path;
}
@override
bool shouldReclip(covariant CustomClipper<Path> oldClipper)=>true;
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Login_and_Register/Sifremi_Unuttum.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class SifremiUnuttum extends StatefulWidget {
static const String routname = '/sifremi_unuttum';
@override
_SifremiUnuttumState createState() => _SifremiUnuttumState();
}
class _SifremiUnuttumState extends State<SifremiUnuttum> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 17),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Blue_Low_Shadow,
icon: Icons.arrow_back_sharp,
color: Violet),
Spacer(),
CircleIconButton(
buttonColor: Colors.white,
onPress: () {},
shadow: Red_Low_Shadow,
icon: Icons.close,
iconColor: Violet),
],
),
SizedBox(height: 55),
Text('Şifremi Unuttum', style: V40R),
SizedBox(height: 35),
Text(
'Dijipol.com’a üye olurken kullandığınız telefon numarasını girin, yeni şifre oluşturmak için bağlantı adresinize gelsin.',
style: V16L),
SizedBox(height: 25),
CustomTextInput(
label: 'Tel No Giriniz',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
SolidButton(
text: 'ŞIFRE GÖNDER',
onPress: () {},
shadow: Blue_High_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 35),
],
),
),
SizedBox(height: 17),
Expanded(
child: Image.asset(
'lib/presentation/Assets/Assets_Login_and_Register/bottomImage.png',
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Login_and_Register/Giris_Yap.dart
|
import 'package:acente/presentation/Screens/Login_and_Register/Sifremi_Unuttum.dart';
import 'package:acente/presentation/Screens/Login_and_Register/Uye_Ol.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class GirisYap extends StatefulWidget {
static const String routname = '/giris_yap';
@override
_GirisYapState createState() => _GirisYapState();
}
class _GirisYapState extends State<GirisYap> {
final TextEditingController username = TextEditingController();
final TextEditingController password = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Stack(
children : [
Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 17),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Login_and_Register/logo.png',
width: 160),
Spacer(),
CircleIconButton(
buttonColor: Colors.white,
onPress: () {
Navigator.pop(context);
},
shadow: Red_Low_Shadow,
icon: Icons.close,
iconColor: Violet),
],
),
SizedBox(height: 55),
Text('Giriş Yap', style: V40R),
SizedBox(height: 35),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
CustomTextInput(
label: 'Kullanıcı Adı / Telefon',
TextColor: Violet,
labelColor: Raisin_Black,
controller: username),
SizedBox(height: 25),
CustomTextInput(
label: 'Şifre giriniz',
TextColor: Violet,
labelColor: Raisin_Black,
controller: password),
SizedBox(height: 25),
SolidButton(
text: 'GIRIŞ YAP',
onPress: () {
},
shadow: Blue_High_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 35),
Row(
children: [
GestureDetector(
onTap: () {
Navigator.of(context)
.pushNamed(SifremiUnuttum.routname);
},
child: Text(
'Şifremi Unuttum',
style: LB16R,
),
),
Spacer(),
Text('Üye Değilseniz ', style: V16R),
GestureDetector(
onTap: () {
Navigator.of(context)
.pushNamed(UyeOI.routname);
},
child: Text('Üye Olun', style: LB16R)),
],
),
],
),
),
),
SizedBox(height: 17),
],
),
),
Positioned(
bottom: 0-MediaQuery.of(context).viewInsets.bottom,
height: 250,
child: Image.asset(
'lib/presentation/Assets/Assets_Login_and_Register/bottomImage.png',
),
),
]
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Login_and_Register/Uye_Ol.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class UyeOI extends StatefulWidget {
static const String routname = '/uye_oi';
@override
_UyeOIState createState() => _UyeOIState();
}
class _UyeOIState extends State<UyeOI> {
bool? radioValue = true;
bool checkboxValue = false;
final TextEditingController name = TextEditingController();
final TextEditingController surname = TextEditingController();
final TextEditingController identityNumber = TextEditingController();
final TextEditingController eMail = TextEditingController();
final TextEditingController telephoneNumber = TextEditingController();
final TextEditingController password = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 17),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Login_and_Register/logo.png',
width: 160),
Spacer(),
CircleIconButton(
buttonColor: Colors.white,
onPress: () {Navigator.pop(context);},
shadow: Red_Low_Shadow,
icon: Icons.close,
iconColor: Violet),
],
),
SizedBox(height: 55),
Text('Üye Ol', style: V40R),
SizedBox(height: 35),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue,
onChange: (currentValue) =>
setState(() => radioValue = currentValue),
text: 'Şahıs'),
RadioText<bool>(
value: false,
groupvalue: radioValue,
onChange: (currentValue) =>
setState(() => radioValue = currentValue),
text: 'Kurumsal'),
],
),
SizedBox(height: 35),
if(radioValue == true)
Column(
children: [
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Adınız',
TextColor: Violet,
labelColor: Raisin_Black,
controller: name,
),
),
SizedBox(width: 25),
Expanded(
child: CustomTextInput(
label: 'SoyAdınız',
TextColor: Violet,
labelColor: Raisin_Black,
controller: surname),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'T.C. Yazınız',
TextColor: Violet,
labelColor: Raisin_Black,
controller: identityNumber),
SizedBox(height: 25),
CustomTextInput(
label: 'E-Postanız',
TextColor: Violet,
labelColor: Raisin_Black,
controller: eMail),
SizedBox(height: 25),
CustomTextInput(
label: 'Tel No Giriniz',
TextColor: Violet,
labelColor: Raisin_Black,
controller: telephoneNumber),
SizedBox(height: 25),
CustomTextInput(
label: 'Şifrenizi Yazın',
TextColor: Violet,
labelColor: Raisin_Black,
controller: password),
SizedBox(height: 15),
CustomTextInput(
label: 'Şifrenizi Tekrar Yazın',
TextColor: Violet,
labelColor: Raisin_Black),
],
),
if(radioValue == false)
Column(
children: [
CustomTextInput(
label: 'Firma Ünvanı',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'Vergi Kimlik No',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'Tel No Giriniz',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'E-Postanız',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Seçiniz',
TextColor: Violet,
labelColor: Raisin_Black),
),
SizedBox(width: 25),
Expanded(
child: CustomTextInput(
label: 'Seçiniz',
TextColor: Violet,
labelColor: Raisin_Black),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Şifrenizi Yazın',
TextColor: Violet,
labelColor: Raisin_Black),
SizedBox(height: 25),
CustomTextInput(
label: 'Şifrenizi Tekrar Yazın',
TextColor: Violet,
labelColor: Raisin_Black),
],
),
SizedBox(height: 25),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() => checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() => checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() => checkboxValue = currentValue ?? !checkboxValue),
checkboxValue: checkboxValue),
SizedBox(height: 10),
SolidButton(
text: 'ÜYE OL',
onPress: () {},
shadow: Blue_High_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 25),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Zorunlu_Trafik_Sigortası/Trafik_View_Offers.dart
|
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class TrafikViewOffers extends StatefulWidget {
static const String routname = '/trafik_view_offers';
@override
_TrafikViewOffersState createState() => _TrafikViewOffersState();
}
class _TrafikViewOffersState extends State<TrafikViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Zorunlu Trafik Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Zorunlu_Trafik_Sigortası/Trafik_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Zorunlu_Trafik_Sigortas%C4%B1/Trafik_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TrafikEnterInfo extends StatefulWidget {
static const String routname = '/trafik_enter_info';
@override
_TrafikEnterInfoState createState() => _TrafikEnterInfoState();
}
class _TrafikEnterInfoState extends State<TrafikEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Zorunlu Trafik Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Plaka, Kimlik ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Plakam Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Plakam Yok'),
],
),
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'TR',
LeadingTextColor: Colors.white,
LeadingColor: Blue),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if (currentpage > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
isEdit = false;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'03. Ruhsat & Araç Bilgileri',
style: V20Sb,
),
],
),
if (currentpage == 3)
Column(
children: [
SizedBox(height: 15),
Text(
'Ruhsat Belge Seri Numaranızı Biliyor musunuz?',
style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'Evet Biliyorum'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(
() => radioValue3 = currentValue),
text: 'Hayır Bilmiyorum'),
],
),
if (radioValue3 == true)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Belge Seri',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Belge No',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
],
),
SizedBox(height: 25),
if (isEdit == false)
Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
InfoBox(
text:
'Emniyet Genel Müdürlüğü’nde kayıtlı araç bilgileriniz, aşağıdadır, lütfen doğruluğunu kontrol edin',
height: 94),
SizedBox(height: 35),
DualTextColumn(
text1: 'Ruhsat Tescil Tarihi',
text2: '21.01.2021'),
SizedBox(height: 25),
DualTextColumn(
text1:
'Kullanım Tarzı Tescil Tarihi',
text2: 'Otomobil'),
SizedBox(height: 25),
DualTextColumn(
text1: 'Marka', text2: 'Peugeot'),
SizedBox(height: 25),
DualTextColumn(
text1: 'Plaka',
text2: '34 BFP 555'),
SizedBox(height: 25),
DualTextColumn(
text1: 'Model Yılı', text2: '2018'),
SizedBox(height: 25),
DualTextColumn(
text1: 'Model',
text2:
'308 Allure Sport 1.2 Puretech 130 S&S EAT8'),
SizedBox(height: 25),
Row(
children: [
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
isEdit = true;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
),
SizedBox(width: 15),
InkWell(
onTap: () {
setState(() {
isEdit = true;
});
},
child: Text('Düzenle',
style: B18Sb)),
],
),
],
),
//Edit
if (isEdit == true)
Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
InfoBox(
text:
'Araç bilgisi bulunamadı, lütfen araç bilgisini giriniz.',
height: 76),
SizedBox(height: 35),
Text('Ruhsat Tescil Tarihi',
style: V16Sb),
SizedBox(height: 35),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Gün Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Ay Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Yıl Seç',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kullanım Tarzı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kullanım Şekli',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Marka',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Model Yılı',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Model',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
],
),
],
),
if (radioValue3 == false)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'E-Posta',
TextColor: Raisin_Black,
labelColor: Grey,
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
isEdit = false;
Navigator.of(context)
.pushNamed(TrafikViewOffers.routname);
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Zorunlu_Trafik_Sigortası/Trafik_Sigortası.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Zorunlu_Trafik_Sigortas%C4%B1/Trafik_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TrafikSigortasi extends StatefulWidget {
static const String routname = '/trafik_sigortasi';
@override
_TrafikSigortasiState createState() => _TrafikSigortasiState();
}
class _TrafikSigortasiState extends State<TrafikSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Trafik_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/z_trafik_sigortasi.png',
width: 48),
SizedBox(width: 20),
Flexible(child: Text('Zorunlu Trafik Sigortası', style: V28R)),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: DefaultTabController(
length: 2,
child: Column(
children: [
SizedBox(height: 20),
TabBar(
labelStyle: B20Sb,
unselectedLabelStyle: B20Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Plakam Var'),
Tab(text: 'Plakam Yok'),
],
),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
TabBarView(
children: [
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
SolidButton(
text: 'QR İLE TANIMLA',
onPress: () {
Navigator.of(context).pushNamed(
QRIleTanimla.routname);
},
shadow: Low_Shadow,
color: Violet,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'TR',
LeadingTextColor: Colors.white,
LeadingColor: Blue),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
TrafikEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
CustomTextInput(
label: 'Aracınızın Plaka İli',
TextColor: Raisin_Black,
labelColor: Grey,
icon:
Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
TrafikEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
],
),
],
),
),
],
),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class SeyahatEnterInfo extends StatefulWidget {
static const String routname = '/seyahat_enter_info';
@override
_SeyahatEnterInfoState createState() => _SeyahatEnterInfoState();
}
class _SeyahatEnterInfoState extends State<SeyahatEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Seyahat Sağlık Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue1,
onChange: (currentValue) => setState(() => radioValue1 = currentValue),
text: 'Kimlik No'),
RadioText<bool>(
value: false,
groupvalue: radioValue1,
onChange: (currentValue) => setState(() => radioValue1 = currentValue),
text: 'Pasaport/Yabancı Kimlik No'),
],
),
if (radioValue1 == true)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
if (radioValue1 == false)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Pasaport/Yabancı Kimlik No',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (radioValue1 == true && currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
if (radioValue1 == false && currentpage == 2)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
CustomTextInput(
label: 'Pasaport No / Kimlik No',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Poliçe Başlangıç Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Anne Adı',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Baba Adı',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Doğum Tarihiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Cinsiyetiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'İl',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'İlçe',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Uyruk',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
//----3-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'03. Ruhsat & Araç Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 3 && radioValue1 == true)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
image: AssetImage('lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 3)
Column(
children: [
SizedBox(height: 15),
Text('Ruhsat Belge Seri Numaranızı Biliyor musunuz?', style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) => setState(() => radioValue3 = currentValue),
text: 'Evet'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) => setState(() => radioValue3 = currentValue),
text: 'Hayır'),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Belge Seri',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Belge No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Belge Seri',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Belge No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
if (radioValue1 == true)
Navigator.of(context).pushNamed(SeyahatViewOffers.routname);
currentpage = 4;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----4-----
if (radioValue1 == false)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'04. Diğer Özellikler',
style: V20Sb,
),
],
),
if (currentpage == 4 && radioValue1 == false)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'İl',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'İlçe',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Belde',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Mahalle',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Cadde/Sokak',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Bina No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kapı No',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 25),
],
)
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_Saglik_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class SeyahatSaglikSigortasi extends StatefulWidget {
static const String routname = '/seyahat_saglik_sigortasi';
@override
_SeyahatSaglikSigortasiState createState() => _SeyahatSaglikSigortasiState();
}
class _SeyahatSaglikSigortasiState extends State<SeyahatSaglikSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Seyahat_Saglik_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/seyahat_saglik_sig.png',
width: 48),
SizedBox(width: 20),
Flexible(child: Text('Seyahat Sağlık Sigortası', style: V28R)),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: DefaultTabController(
length: 2,
child: Column(
children: [
SizedBox(height: 20),
TabBar(
labelStyle: B20Sb,
unselectedLabelStyle: B20Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'TC Kimlik No ile'),
Tab(text: 'Pasaport No ile'),
],
),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
TabBarView(
children: [
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
SeyahatEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 40),
SolidButton(
text: 'PASAPORT TARAYICI KULLAN',
onPress: () {
Navigator.of(context).pushNamed(
QRIleTanimla.routname);
},
shadow: Low_Shadow,
color: Violet,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
CustomTextInput(
label: 'Pasaport Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
SeyahatEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
],
),
],
),
),
],
),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Seyahat_Saglik_Sigortasi/Seyahat_View_Offers.dart
|
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class SeyahatViewOffers extends StatefulWidget {
static const String routname = '/seyahat_view_offers';
@override
_SeyahatViewOffersState createState() => _SeyahatViewOffersState();
}
class _SeyahatViewOffersState extends State<SeyahatViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Seyahat Sağlık Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_View_Offers.dart
|
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class TamamlayiciViewOffers extends StatefulWidget {
static const String routname = '/tamamlayici_view_offers';
@override
_TamamlayiciViewOffersState createState() => _TamamlayiciViewOffersState();
}
class _TamamlayiciViewOffersState extends State<TamamlayiciViewOffers> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('T. Sağlık Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: false),
SizedBox(height: 15),
Center(child: Text('Teklifleri incele', style: B18R)),
SizedBox(height: 40),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
InsuranceQuotes(),
SizedBox(height: 25),
InnerShadowDropdown(title: 'Tüm Paketler (18)'),
SizedBox(height: 25),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Blue,
headerVisible: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
ViewOffersItem(
title: 'Kasko Sigortası',
subtitle: 'Standart Teminatlı Ürün',
insurance: 'AXA Sigorta',
installment: '412,15 TL X 3 Taksit',
subinstallment: 'S1.311,25 TL',
onButtonTap: () {},
onChange: (val) {
setState(() {
switchValue = val;
});
},
switchvalue: this.switchValue,
bordercolor: Color(0xFFe4e7ec),
isBorder: true,
shadow: Green_Low_Shadow,
),
SizedBox(height: 35),
InsuranceInformation(),
SizedBox(height: 35),
],
),
),
),
],
)),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Saglik_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TamamlayiciSaglikSigortasi extends StatefulWidget {
static const String routname = '/tamamlayici_saglik_sigortasi';
@override
_TamamlayiciSaglikSigortasiState createState() => _TamamlayiciSaglikSigortasiState();
}
class _TamamlayiciSaglikSigortasiState extends State<TamamlayiciSaglikSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Tamamlayici_Saglik_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/t_saglik_sigortasi.png',
width: 48),
SizedBox(width: 20),
Flexible(child: Text('Tamamlayıcı Sağlık Sigortası', style: V28R)),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: DefaultTabController(
length: 3,
child: Column(
children: [
SizedBox(height: 20),
TabBar(
labelStyle: B20Sb,
unselectedLabelStyle: B20Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Kendim'),
Tab(text: 'Çocuğum'),
Tab(text: 'Ailem'),
],
),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
TabBarView(
children: [
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
TamamlayiciEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
CustomTextInput(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
icon:
Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
TamamlayiciEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 30),
CustomTextInput(
label: 'Plaka',
TextColor: Raisin_Black,
labelColor: Grey,
icon:
Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor:
Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1:
'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue:
checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context)
.pushNamed(
TamamlayiciEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30)
],
),
),
),
),
),
),
],
),
],
),
),
],
),
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Request_Successful.dart';
import 'package:acente/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_View_Offers.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TamamlayiciEnterInfo extends StatefulWidget {
static const String routname = '/tamamlayici_enter_info';
@override
_TamamlayiciEnterInfoState createState() => _TamamlayiciEnterInfoState();
}
class _TamamlayiciEnterInfoState extends State<TamamlayiciEnterInfo> {
int radioValue1 = 0;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('T. Sağlık Sigortası', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
RadioText<int>(
value: 0,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Kendim'),
RadioText<int>(
value: 1,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Ailem'),
RadioText<int>(
value: 2,
groupvalue: radioValue1,
onChange: (currentValue) => setState(
() => radioValue1 = currentValue),
text: 'Çocuğum'),
],
),
if (radioValue1 == 0)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
if (radioValue1 == 1)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
if (radioValue1 == 2)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
],
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Sigortalı Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'03. Poliçe Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 3)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 3)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (radioValue1 == 0)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Text('Vadesi biten poliçeniz var mı?',
style: V16L),
SizedBox(height: 15),
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) =>
setState(() => radioValue3 =
currentValue),
text: 'Evet, Var'),
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) =>
setState(() => radioValue3 =
currentValue),
text: 'Hayır, Yok'),
],
),
SizedBox(height: 15),
Text('Mevcut Sağlık Poliçeniz var mı?',
style: V16L),
SizedBox(height: 15),
Column(
children: [
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) =>
setState(() => radioValue3 =
currentValue),
text: 'İlk kez yaptıracağım'),
],
),
Row(
children: [
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) =>
setState(() => radioValue3 =
currentValue),
text: 'Daha önceden poliçem var'),
],
),
],
),
SizedBox(height: 15),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Boyunuz',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Kilonuz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
if (radioValue1 == 1)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Text('Mevcut Sağlık Poliçeniz var mı?',
style: V16L),
SizedBox(height: 15),
Column(
children: [
Row(
children: [
RadioText<bool>(
value: true,
groupvalue: radioValue3,
onChange: (currentValue) =>
setState(() => radioValue3 =
currentValue),
text: 'İlk kez yaptıracağım'),
],
),
Row(
children: [
RadioText<bool>(
value: false,
groupvalue: radioValue3,
onChange: (currentValue) =>
setState(() => radioValue3 =
currentValue),
text: 'Daha önceden poliçem var'),
],
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Boyunuz',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Kilonuz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 4;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
if (radioValue1 == 2)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'E-Posta',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '@',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Boyunuz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Kilonuz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
],
),
SizedBox(height: 25),
CustomTextInput(
label: 'Doğum Tarihi',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Kilonuz',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context).pushNamed(TamamlayiciRequestSuccessful.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
],
),
//----4-----
if (radioValue1 == 1)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'04. Diğer Özellikler',
style: V20Sb,
),
],
),
if (currentpage == 4 && radioValue1 == 1)
Column(
children: [
SizedBox(height: 15),
Row(
children: [
Expanded(
flex: 1,
child: CustomTextInput(
label: 'Birey',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
),
SizedBox(width: 15),
Expanded(
flex: 2,
child: TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
),
],
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: CustomTextInput(
label: 'Boyunuz',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
SizedBox(width: 15),
Expanded(
child: CustomTextInput(
label: 'Kilonuz',
TextColor: Raisin_Black,
labelColor: Grey,
),
),
],
),
SizedBox(height: 25),
DualTextRow(
text1: 'Eşiniz • T.C. 25224566108 • 177CM • 89KG',
text2: 'Sil',
style1: RB16R,
style2: Q16B,
),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
Row(
children: [
IconTextButton(
text: 'YENI BIREY EKLE',
buttonColor: Colors.white,
onPress: () {},
shadow: Blue_Low_Shadow,
color: Violet,
icon: Icons.add_circle_outline,
padding: EdgeInsets.all(10),
),
],
),
SizedBox(height: 35),
SolidButton(
text: 'Kaydet ve Devam Et',
onPress: () {
Navigator.of(context)
.pushNamed(TamamlayiciViewOffers.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
)
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Tamamlayici_Saglik_Sigortasi/Tamamlayici_Request_Successful.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TamamlayiciRequestSuccessful extends StatefulWidget {
static const String routname = '/tamamlayici_request_successful';
@override
_TamamlayiciRequestSuccessfulState createState() => _TamamlayiciRequestSuccessfulState();
}
class _TamamlayiciRequestSuccessfulState extends State<TamamlayiciRequestSuccessful> {
int count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 20),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: true),
SizedBox(height: 15),
Text('Ödeme Tamamla', style: B18R),
SizedBox(height: 55),
BigRightTick(),
SizedBox(height: 40),
Text(
'Talebiniz Başarıyla Alınmıştır',
style: V28R,
textAlign: TextAlign.center,
),
SizedBox(height: 25),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididunt ut labore et dolore.',
style: V16L,
textAlign: TextAlign.center),
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('E-Posta adresi: ', style: V16R),
Text('sinan_soylu@live.nl',
style: B16R, textAlign: TextAlign.center),
],
),
Spacer(),
SolidButton(
text: 'Anasayfaya Dön',
onPress: () {
Navigator.of(context).popUntil((_) => count++ >= 4);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Enter_Info.dart
|
import 'package:acente/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Request_Successful.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class EvcilHayvanEnterInfo extends StatefulWidget {
static const String routname = '/evcil_hayvan_enter_info';
@override
_EvcilHayvanEnterInfoState createState() => _EvcilHayvanEnterInfoState();
}
class _EvcilHayvanEnterInfoState extends State<EvcilHayvanEnterInfo> {
bool? radioValue1 = true;
bool? radioValue3 = null;
bool? radioValue31 = null;
bool? radioValue32 = null;
int currentpage = 1;
bool isSelected = true;
bool isEdit = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
Text('Evcil Hayvan Sig.', style: V28R),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: false, step3: false),
SizedBox(height: 15),
Center(child: Text('Bilgileri Gir', style: B18R)),
Expanded(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
//----1-----
Column(
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Row(
children: [
Text(
'01. Kimlik No ve Cep Telefonu',
style: V20Sb,
),
Spacer(),
if (currentpage > 1)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 1;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 1)
Column(
children: [
SizedBox(height: 15),
TextInputWithLeading(
label: 'TC Kimlik Numara',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 15),
CustomTextInput(
label: 'Adınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Soyadınız (Opsiyonel)',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
Row(
children: [
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İl'),
),
],
),
),
),
SizedBox(width: 15),
Expanded(
child: Container(
margin: EdgeInsets.only(
top: 10,
),
padding: EdgeInsets.symmetric(
horizontal: 8, vertical: 5),
width: MediaQuery.of(context).size.width *
0.35,
decoration: BoxDecoration(
color: Azure,
),
child: DropdownButton<String>(
underline: SizedBox(),
isExpanded: true,
icon:
Icon(Icons.keyboard_arrow_down),
iconSize: 24,
elevation: 16,
style: const TextStyle(
color: Color(0XFF0f0d1a)),
onChanged: (String? newValue) {
setState(() {
});
//getTown();
},
items: [
DropdownMenuItem<String>(
value: 'select',
child: Text('İlçe'),
),
],
),
),
),
],
),
SizedBox(height: 25),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label: 'E-Posta',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '@',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----2-----
Column(
children: [
SizedBox(height: 15),
Divider(),
SizedBox(height: 25),
Row(
children: [
Text(
'02. Evcil Hayvan Bilgileri',
style: V20Sb,
),
Spacer(),
if ((currentpage % 10) > 2)
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {
setState(() {
currentpage = 2;
});
},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
)
],
),
],
),
if (currentpage == 2)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Text('Evcil Hayvanınızın Adı',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Evcil Hayvanınızın Doğum Tarihi',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Evcil Hayvanınızın Cinsi',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Evcil Hayvanınızın Cinsiyeti',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Evcil Hayvanınızın Irkı',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Evcil Hayvanınızın Rengi',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 25),
Text('Çip Var mı? ',style: V16L),
SizedBox(height: 15),
CustomTextInput(
label: 'Seçiniz',
TextColor: Raisin_Black,
labelColor: Grey,
icon: Icons.keyboard_arrow_down,
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
setState(() {
currentpage = 3;
});
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
//----3-----
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 15),
Divider(
indent: 0,
endIndent: 0,
),
SizedBox(height: 25),
Text(
'03. Ruhsat & Araç Bilgileri',
style: V20Sb,
),
],
),
if (currentpage == 3)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
CustomTextInput(
label: 'IMEI No',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Garantisi Var mı?',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Telefon Markası ',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 25),
CustomTextInput(
label: 'Telefon Modeli',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
SolidButton(
text: 'DEVAM ET',
onPress: () {
Navigator.of(context).pushNamed(
EvcilHayvanRequestSuccessful.routname);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 15),
],
),
],
),
),
),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Sigortasi.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Enter_Info.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class EvcilHayvanSigortasi extends StatefulWidget {
static const String routname = '/evcil_hayvan_sigortasi';
@override
_EvcilHayvanSigortasiState createState() => _EvcilHayvanSigortasiState();
}
class _EvcilHayvanSigortasiState extends State<EvcilHayvanSigortasi> {
bool checkboxValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/presentation/Assets/Assets_Evcil_Hayvan_Sigortasi/backgroundImage.png'),
fit: BoxFit.fill),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 50),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/evcil_hayvan_sig.png',
width: 48),
SizedBox(width: 20),
Text('Evcil Hayvan Sig.', style: V28R),
],
),
),
SizedBox(height: 35),
Expanded(
child: Container(
decoration: BoxDecoration(
boxShadow: Red_High_Shadow_Rev,
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40)),
),
child: Column(
children: [
SizedBox(height: 20),
Expanded(
child: Stack(
children: [
Positioned(
child: Image.asset(
'lib/presentation/Assets/Assets_Common/path.png'),
right: 0,
bottom: 0,
height: 150,
width: 150,
),
Padding(
padding:
EdgeInsets.symmetric(horizontal: 25),
child: Expanded(
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 10),
TextInputWithLeading(
label: 'Telefon Numaranız',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: '+90',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
SizedBox(height: 25),
TextInputWithLeading(
label:
'Ruhsat sahibi TC kimlik numarası',
TextColor: Raisin_Black,
labelColor: Grey,
Leadinglabel: 'T.C.',
LeadingTextColor: Raisin_Black,
LeadingColor: Unseleted),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Poliçe Bilgilendirme ',
text2: 'formu’nu okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
CheckboxText(
text1: 'Aydınlatma Metni',
text2: '’ni okudum.',
onChange: (currentValue) =>
setState(() =>
checkboxValue =
currentValue ??
!checkboxValue),
checkboxValue: checkboxValue),
SolidButton(
text: 'TEKLIF AL',
onPress: () {
Navigator.of(context).pushNamed(
EvcilHayvanEnterInfo.routname);
},
shadow: Low_Shadow,
gradient: Green_Gradient,
),
SizedBox(height: 30),
],
),
),
),
),
],
),
),
],
),
),
)
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Evcil_Hayvan_Sigortasi/Evcil_Hayvan_Request_Successful.dart
|
import 'package:acente/presentation/Screens/Destek/QR_ile_tan%C4%B1mla.dart';
import 'package:acente/presentation/Screens/Teklif_Al/Teklif_Al.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class EvcilHayvanRequestSuccessful extends StatefulWidget {
static const String routname = '/evcil_hayvan_request_successful';
@override
_EvcilHayvanRequestSuccessfulState createState() => _EvcilHayvanRequestSuccessfulState();
}
class _EvcilHayvanRequestSuccessfulState extends State<EvcilHayvanRequestSuccessful> {
int count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
padding: EdgeInsets.symmetric(horizontal: 25),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(height: 20),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
],
),
SizedBox(height: 40),
ThreeStep(step1: true, step2: true, step3: true),
SizedBox(height: 15),
Text('Ödeme Tamamla', style: B18R),
SizedBox(height: 55),
BigRightTick(),
SizedBox(height: 40),
Text(
'Talebiniz Başarıyla Alınmıştır',
style: V28R,
textAlign: TextAlign.center,
),
SizedBox(height: 25),
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed doeiusmod tempor incididunt ut labore et dolore.',
style: V16L,
textAlign: TextAlign.center),
SizedBox(height: 25),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('E-Posta adresi: ', style: V16R),
Text('sinan_soylu@live.nl',
style: B16R, textAlign: TextAlign.center),
],
),
Spacer(),
SolidButton(
text: 'Anasayfaya Dön',
onPress: () {
Navigator.of(context).popUntil((_) => count++ >= 4);
},
shadow: Low_Shadow,
gradient: Blue_Gradient_2,
),
SizedBox(height: 30),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Hesabim/Ayarlar.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Ayarlar extends StatefulWidget {
static const String routname = '/ayarlar';
@override
_AyarlarState createState() => _AyarlarState();
}
class _AyarlarState extends State<Ayarlar> {
bool switchValue = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: SafeArea(
bottom: false,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
SizedBox(height: 57),
Text('Ayarlar',style: V40R),
SizedBox(height: 30),
Divider(),
SizedBox(height: 15),
Row(children: [
Switch(value: switchValue, onChanged: (currentValue){
setState(() {
switchValue = currentValue;
});}),
SizedBox(width: 20),
Flexible(child: Text('SMS ile indirim ve kampanyalardan haberdar olmak istiyorum.',style: V16L)),
],),
SizedBox(height: 15),
Divider(),
SizedBox(height: 15),
Row(children: [
Switch(value: switchValue, onChanged: (currentValue){
setState(() {
switchValue = currentValue;
});}),
SizedBox(width: 20),
Flexible(child: Text('E-Posta ile indirim ve kampanyalardan haberdar olmak istiyorum',style: V16L)),
],),
],
),
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Hesabim/Hesabim.dart
|
import 'package:acente/presentation/Screens/Hesabim/Ayarlar.dart';
import 'package:acente/presentation/Screens/Hesabim/Dil_Sec.dart';
import 'package:acente/presentation/Screens/Hesabim/Sifre_Degistir.dart';
import 'package:acente/presentation/Screens/Start_Screens/acente_loading_screen.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/material.dart';
class Hesabim extends StatefulWidget {
static const String routname = '/hesabim';
@override
_HesabimState createState() => _HesabimState();
}
class _HesabimState extends State<Hesabim> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: SafeArea(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 17),
Row(
children: [
Image.asset('lib/presentation/Assets/Assets_Home/logo.png', width: 160),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding:
EdgeInsets.symmetric(vertical:9, horizontal: 10)),
],
),
SizedBox(height: 55),
Text('Hesabım',style: V40R),
SizedBox(height: 35),
PolicelerimListContent(title: 'Şifre Değiştir', image: 'password.png', onTap: (){Navigator.of(context).pushNamed(SifreDegistir.routname);}),
SizedBox(height: 25),
PolicelerimListContent(title: 'Dil Seçimi', image: 'translate.png', onTap: (){Navigator.of(context).pushNamed(DilSec.routname);}),
SizedBox(height: 25),
PolicelerimListContent(title: 'Ayarlar', image: 'manage.png', onTap: (){Navigator.of(context).pushNamed(Ayarlar.routname);}),
SizedBox(height: 25),
PolicelerimListContent(title: 'Çikiş', image: 'exit.png', onTap: (){Navigator.of(context).pushNamed(AcenteLoadingScreen.routeName);}),
],
),
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Hesabim/Sifre_Degistir.dart
|
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class SifreDegistir extends StatefulWidget {
static const String routname = '/sifre_degistir';
@override
_SifreDegistirState createState() => _SifreDegistirState();
}
class _SifreDegistirState extends State<SifreDegistir> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: Grey_Gradient_Rev,
),
child: SafeArea(
bottom: false,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
SizedBox(height: 57),
Text('Şifre Değiştir', style: V40R),
SizedBox(height: 35),
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
CustomTextInput(
label: 'Kullanıcı adı / Telefon',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
CustomTextInput(
label: 'Şifreniz',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
CustomTextInput(
label: 'Yeni Şifre',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
CustomTextInput(
label: 'Yeni Şifre Tekrar',
TextColor: Raisin_Black,
labelColor: Grey,
),
SizedBox(height: 35),
SolidButton(
text: 'Değiştir',
onPress: () {},
shadow: Blue_High_Shadow,
gradient: Blue_Gradient_2),
SizedBox(height: 25),
],
),
),
),
],
),
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation/Screens
|
mirrored_repositories/Acente/lib/presentation/Screens/Hesabim/Dil_Sec.dart
|
import 'package:acente/presentation/Screens/Start_Screens/Dil_Secimi.dart';
import 'package:acente/presentation/utils/constants.dart';
import 'package:acente/presentation/utils/custom_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class DilSec extends StatefulWidget {
static const String routname = '/dil_sec';
@override
_DilSecState createState() => _DilSecState();
}
class _DilSecState extends State<DilSec> {
int? selectedLang;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: SafeArea(
bottom: false,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 25),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Row(
children: [
IconTextButton(
text: 'GERI',
buttonColor: Colors.white,
onPress: () {
Navigator.of(context).pop();
},
shadow: Blue_Low_Shadow,
color: Violet,
icon: CupertinoIcons.arrow_left_circle,
padding:
EdgeInsets.symmetric(horizontal: 12, vertical: 7),
),
Spacer(),
BorderButton(
text: 'S.SOYLU',
color: Ternary,
onPress: () {},
shadow: Red_High_Shadow,
fontSize: 12,
padding: EdgeInsets.symmetric(vertical: 7, horizontal: 8),
),
],
),
),
SizedBox(height: 57),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: Text('Dil Seçimi',style: V40R),
),
SizedBox(height: 50),
Expanded(
child: Container(
color: Azure,
child: Column(
children: [
SelectLanguage(image: 'turkey_flag',text: 'Türkçe',onTap: (){
setState(() {
selectedLang = 0;
});
},isSelected: selectedLang == 0),
SelectLanguage(image: 'russia_flag',text: 'Rusça',onTap: (){
setState(() {
selectedLang = 1;
});
},isSelected: selectedLang == 1),
SelectLanguage(image: 'iran_flag',text: 'Farsi' ,onTap: (){
setState(() {
selectedLang = 2;
});
},isSelected: selectedLang == 2),
Spacer(),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: SolidButton(text: 'Değiştir', onPress: (){}, shadow: Blue_High_Shadow,gradient: Blue_Gradient_2),
),
],
),
),
),
SizedBox(height: 25),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation
|
mirrored_repositories/Acente/lib/presentation/utils/custom_widget.dart
|
import 'dart:ui';
import 'package:acente/presentation/utils/constants.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class SolidButton extends StatelessWidget {
SolidButton({
required this.text,
this.color,
this.gradient,
required this.onPress,
required this.shadow,
this.padding,
this.fontSize,
}) : assert(color != null || gradient != null);
final String text;
final Color? color;
final Gradient? gradient;
final List<BoxShadow> shadow;
final void Function() onPress;
final EdgeInsetsGeometry? padding;
final double? fontSize;
@override
Widget build(BuildContext context) {
return Center(
child: Container(
decoration: BoxDecoration(
boxShadow: shadow,
color: color,
gradient: gradient,
borderRadius: BorderRadius.circular(100)),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(100),
onTap: onPress,
child: Container(
alignment: Alignment.center,
padding:
padding ?? EdgeInsets.symmetric(vertical: 22, horizontal: 16),
child: Text(
text,
style: TextStyle(
color: Colors.white,
fontSize: fontSize ?? 16,
fontWeight: FontWeight.w600,
),
),
),
),
),
),
);
}
}
class BorderButton extends StatelessWidget {
BorderButton({
required this.text,
required this.color,
required this.onPress,
required this.shadow,
this.padding,
this.fontSize,
});
final String text;
final Color color;
final List<BoxShadow> shadow;
final void Function() onPress;
final EdgeInsetsGeometry? padding;
final double? fontSize;
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
border: Border.all(color: color, width: 2),
boxShadow: shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(100)),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(100),
onTap: onPress,
child: Container(
alignment: Alignment.center,
padding:
padding ?? EdgeInsets.symmetric(vertical: 22, horizontal: 16),
child: Text(
text,
style: TextStyle(
color: color,
fontSize: fontSize ?? 16,
fontWeight: FontWeight.w600,
),
),
),
),
),
);
}
}
class IconTextBorderButton extends StatelessWidget {
IconTextBorderButton(
{required this.text,
this.padding,
required this.buttonColor,
required this.onPress,
this.shadow,
this.icon,
required this.color,
this.image})
: assert(icon != null || image != null);
final String text;
final Color buttonColor;
final EdgeInsetsGeometry? padding;
final List<BoxShadow>? shadow;
final void Function() onPress;
final IconData? icon;
final Color color;
final ImageProvider? image;
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
border: Border.all(color: color, width: 2),
boxShadow: shadow,
color: buttonColor,
borderRadius: BorderRadius.circular(100)),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(100),
onTap: onPress,
child: Container(
alignment: Alignment.center,
padding:
padding ?? EdgeInsets.symmetric(vertical: 17, horizontal: 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
text,
style: TextStyle(
color: color,
fontSize: 12,
fontWeight: FontWeight.w600,
),
),
SizedBox(width: 5),
if (icon != null)
Icon(
icon,
color: color,
),
if (image != null) Image(image: image!, width: 24),
],
),
),
),
),
);
}
}
class IconTextButton extends StatelessWidget {
IconTextButton(
{required this.text,
this.padding,
required this.buttonColor,
required this.onPress,
required this.shadow,
this.icon,
required this.color,
this.image})
: assert(icon != null || image != null);
final String text;
final Color buttonColor;
final EdgeInsetsGeometry? padding;
final List<BoxShadow> shadow;
final void Function() onPress;
final IconData? icon;
final Color color;
final ImageProvider? image;
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
boxShadow: shadow,
color: buttonColor,
borderRadius: BorderRadius.circular(100)),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(100),
onTap: onPress,
child: Container(
alignment: Alignment.center,
padding:
padding ?? EdgeInsets.symmetric(vertical: 17, horizontal: 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
if (icon != null)
Icon(
icon,
color: color,
),
if (image != null) Image(image: image!, width: 24),
SizedBox(width: 10),
Text(
text,
style: TextStyle(
color: color,
fontSize: 16,
fontWeight: FontWeight.w600,
),
),
SizedBox(width: 5),
],
),
),
),
),
);
}
}
class CircleIconButton extends StatelessWidget {
CircleIconButton(
{required this.buttonColor,
required this.onPress,
required this.shadow,
required this.icon,
required this.iconColor});
final Color buttonColor;
final List<BoxShadow> shadow;
final void Function() onPress;
final IconData icon;
final Color iconColor;
@override
Widget build(BuildContext context) {
return Row(
children: [
Container(
decoration: BoxDecoration(
boxShadow: shadow,
color: buttonColor,
shape: BoxShape.circle,
),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(100),
onTap: onPress,
child: Container(
alignment: Alignment.center,
padding: EdgeInsets.symmetric(vertical: 8, horizontal: 8),
child: Icon(icon, color: iconColor),
),
),
),
),
],
);
}
}
class IconButtonRoundedRactangle extends StatelessWidget {
IconButtonRoundedRactangle(
{required this.buttonColor,
required this.onPress,
required this.shadow,
this.icon,
this.iconColor,
this.image})
: assert(icon != null || image != null);
final Color buttonColor;
final List<BoxShadow> shadow;
final void Function() onPress;
final IconData? icon;
final Color? iconColor;
final ImageProvider? image;
@override
Widget build(BuildContext context) {
return Row(
children: [
Container(
decoration: BoxDecoration(
boxShadow: shadow,
color: buttonColor,
borderRadius: BorderRadius.circular(16),
),
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: onPress,
child: Container(
alignment: Alignment.center,
padding: EdgeInsets.symmetric(vertical: 8, horizontal: 8),
child: icon != null
? Icon(
icon,
color: iconColor,
)
: Image(image: image!, width: 18),
),
),
),
),
],
);
}
}
class TextInputWithLeading extends StatelessWidget {
final String label;
final Color TextColor;
final Color labelColor;
final String Leadinglabel;
final Color LeadingTextColor;
final Color LeadingColor;
TextInputWithLeading(
{required this.label,
required this.TextColor,
required this.labelColor,
required this.Leadinglabel,
required this.LeadingTextColor,
required this.LeadingColor});
@override
Widget build(BuildContext context) {
return Row(
children: [
Container(
width: 60,
height: 60,
color: LeadingColor,
alignment: Alignment.center,
child: Text(
Leadinglabel,
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
color: LeadingTextColor,
),
),
),
Expanded(
child: TextField(
style: TextStyle(
color: TextColor,
),
decoration: InputDecoration(
fillColor: Azure,
labelStyle: TextStyle(
color: labelColor,
),
labelText: label,
filled: true,
),
),
),
],
);
}
}
class CustomTextInput extends StatelessWidget {
final bool disabled;
final String label;
final Color TextColor;
final Color labelColor;
final IconData? icon;
final TextEditingController? controller;
CustomTextInput({
required this.label,
required this.TextColor,
required this.labelColor,
this.icon,
this.disabled = false,
this.controller,
});
@override
Widget build(BuildContext context) {
return TextField(
enabled: !disabled,
style: TextStyle(
color: TextColor,
),
decoration: InputDecoration(
suffixIcon: icon != null ? Icon(icon) : null,
fillColor: disabled ? Unseleted : Azure,
labelStyle: TextStyle(
color: labelColor,
),
labelText: label,
filled: true,
),
controller: controller,
);
}
}
class TextInputWithIcon extends StatelessWidget {
final String label;
final Color textColor;
final Color iconColor;
final IconData icon;
TextInputWithIcon(
{required this.label,
required this.textColor,
required this.iconColor,
required this.icon});
@override
Widget build(BuildContext context) {
return TextField(
style: TextStyle(
color: textColor,
),
decoration: InputDecoration(
border: InputBorder.none,
suffixIcon: Icon(icon, color: iconColor),
contentPadding: EdgeInsets.symmetric(vertical: 20, horizontal: 25),
hintText: label,
fillColor: Azure,
filled: true,
),
);
}
}
class ContainerText extends StatelessWidget {
ContainerText(
{required this.title, required this.image, required this.shadow});
final String title;
final String image;
final List<BoxShadow> shadow;
@override
Widget build(BuildContext context) {
return Row(
children: [
Container(
padding: EdgeInsets.all(18),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: Colors.white,
boxShadow: shadow,
),
width: 71,
height: 71,
child: Image(
image: AssetImage(image),
),
),
SizedBox(width: 8),
Text(title, style: V12R),
],
);
}
}
class RadioText<T> extends StatelessWidget {
RadioText(
{required this.value,
required this.groupvalue,
required this.onChange,
required this.text});
final T value;
final void Function(T) onChange;
final T? groupvalue;
final String text;
@override
Widget build(BuildContext context) {
return Expanded(
child: Row(
children: [
Radio<T>(
value: value,
groupValue: groupvalue,
onChanged: (T? currentValue) {
if (currentValue != null) onChange(currentValue);
},
),
Flexible(
child: GestureDetector(
onTap: () => onChange(value),
child: Text(text, style: V16R),
),
),
],
),
);
}
}
class CheckboxText extends StatelessWidget {
final String text1;
final String text2;
final void Function(bool?) onChange;
final bool? checkboxValue;
CheckboxText(
{required this.text1,
required this.text2,
required this.onChange,
required this.checkboxValue});
@override
Widget build(BuildContext context) {
return Row(
children: [
Checkbox(
value: checkboxValue,
activeColor: Melachite,
onChanged: (currentValue) {
if (currentValue != null) onChange(currentValue);
},
),
SizedBox(width: 12),
Row(
children: [
Text(text1, style: V12R),
Text(text2, style: V12L),
],
),
],
);
}
}
class CustumProgressIndicator extends StatelessWidget {
const CustumProgressIndicator({
required this.shadow,
required this.color,
required this.value,
});
final int value;
final List<BoxShadow> shadow;
final Color color;
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
color: Colors.white,
boxShadow: shadow,
shape: BoxShape.circle,
),
child: Stack(
alignment: Alignment.center,
children: [
Center(
child: Text(
'%$value',
style: TextStyle(
color: color,
fontSize: 23,
fontWeight: FontWeight.w400,
),
),
),
Center(
child: SizedBox(
width: MediaQuery.of(context).size.width / 5,
height: MediaQuery.of(context).size.width / 5,
child: CircularProgressIndicator(
strokeWidth: 7,
backgroundColor: Unprogressed,
color: color,
value: value / 100,
),
),
),
],
),
);
}
}
class TextAndBox extends StatelessWidget {
final String heading;
final String value;
TextAndBox({required this.heading, required this.value});
@override
Widget build(BuildContext context) {
return Column(
children: [
Text(heading, style: V16Sb),
SizedBox(height: 10),
Container(
width: 45,
height: 45,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: Low_Shadow,
borderRadius: BorderRadius.circular(16),
),
child: Center(
child: Text(
value,
style: V28R,
),
))
],
);
}
}
class DotText extends StatelessWidget {
final String text1;
final String text2;
final List<BoxShadow> shadow;
final Color color;
DotText(
{required this.text1,
required this.text2,
required this.color,
required this.shadow});
@override
Widget build(BuildContext context) {
return Row(
children: [
Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: color,
boxShadow: shadow,
),
width: MediaQuery.of(context).size.width / 12,
height: MediaQuery.of(context).size.width / 12,
),
SizedBox(width: 14),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(text1, style: V14R),
Text(text2, style: V14R),
],
)
],
);
}
}
class InfoTabBar extends StatelessWidget {
final Color color;
final List<BoxShadow> shadow;
final String label;
final void Function() onTap;
InfoTabBar(
{required this.color,
required this.shadow,
required this.label,
required this.onTap});
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: 25),
child: InkWell(onTap: onTap, child: Text(label, style: V22R)),
),
SizedBox(height: 10),
DefaultTabController(
length: 4,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
margin: EdgeInsets.symmetric(horizontal: 25),
width: MediaQuery.of(context).size.width,
height: 200,
child: Stack(
alignment: Alignment.bottomLeft,
children: [
SizedBox(
height: 130,
width: 192,
child: Image(
image: AssetImage(
'lib/presentation/Assets/Assets_After_Login/background_path.png'),
)),
Column(
children: [
TabBar(
labelStyle: B16Sb,
unselectedLabelStyle: B16Sb,
unselectedLabelColor: Blue.withOpacity(0.5),
labelColor: Blue,
tabs: [
Tab(text: 'Günlük'),
Tab(text: 'Aylık'),
Tab(
child: FittedBox(child: Text('Bu Çeyrek')),
),
Tab(text: 'Yıllık'),
],
),
Expanded(
child: TabBarView(
children: [
TabBarContant(shadow: shadow, color: color),
TabBarContant(shadow: shadow, color: color),
TabBarContant(shadow: shadow, color: color),
TabBarContant(shadow: shadow, color: color),
],
),
),
],
),
],
),
),
),
],
);
}
}
class InfoTabContent extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(
left: 25,
right: 37,
),
child: Row(
children: [
CustumProgressIndicator(
shadow: Blue_High_Shadow, color: Blue, value: 75),
Spacer(),
Padding(
padding: const EdgeInsets.only(top: 37),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DotText(
text1: 'Yenilenenler',
text2: '%75 | 0',
color: Blue,
shadow: Blue_High_Shadow),
SizedBox(height: 14),
DotText(
text1: 'Yenilenecekler',
text2: '%75 | 0',
color: Violet,
shadow: High_Shadow),
],
),
),
],
),
);
}
}
class TabBarContant extends StatelessWidget {
const TabBarContant({
Key? key,
required this.shadow,
required this.color,
}) : super(key: key);
final List<BoxShadow> shadow;
final Color color;
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.only(left: 37, right: 28, bottom: 23),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text('0'),
Container(color: Ternary, width: 67, height: 5),
Text('2021')
],
),
SizedBox(width: 20),
Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text('1750'),
Container(
decoration: BoxDecoration(
gradient: Blue_Gradient_2,
),
width: 67,
height: 42),
Text('2020')
],
),
Spacer(),
CustumProgressIndicator(shadow: shadow, color: color, value: 75),
],
),
);
}
}
class RoundedRectangeButton extends StatelessWidget {
final IconData icon;
RoundedRectangeButton({required this.icon});
@override
Widget build(BuildContext context) {
return Container(
width: 45,
height: 45,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
child: Center(
child: Icon(icon, color: Violet),
));
}
}
class AnimatedToggle extends StatefulWidget {
final List<String> values;
final ValueChanged onToggleCallback;
final Color backgroundColor;
final Color buttonColor;
final Color textColor;
final double? width;
final double? height;
AnimatedToggle(
{required this.values,
required this.onToggleCallback,
this.backgroundColor = const Color(0xFFe7e7e8),
this.buttonColor = const Color(0xFFFFFFFF),
this.textColor = const Color(0xFF000000),
this.width,
this.height});
@override
_AnimatedToggleState createState() => _AnimatedToggleState();
}
class _AnimatedToggleState extends State<AnimatedToggle> {
bool initialPosition = true;
@override
Widget build(BuildContext context) {
return Container(
width: widget.width ?? MediaQuery.of(context).size.width,
// height: MediaQuery.of(context).size.width * 0.13,
height: widget.height ?? 37,
// margin: EdgeInsets.all(20),
child: Stack(
children: <Widget>[
GestureDetector(
onTap: () {
initialPosition = !initialPosition;
var index = 0;
if (!initialPosition) {
index = 1;
}
widget.onToggleCallback(index);
setState(() {});
},
child: Neumorphic(
style: NeumorphicStyle(
intensity: 0.70,
shape: NeumorphicShape.flat,
boxShape: NeumorphicBoxShape.roundRect(BorderRadius.circular(
MediaQuery.of(context).size.width * 0.1)),
depth: -10,
lightSource: LightSource.top,
color: Colors.grey),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 25),
width: widget.width ?? MediaQuery.of(context).size.width,
// height: MediaQuery.of(context).size.width * 0.13,
height: widget.height ?? 37,
decoration: ShapeDecoration(
shadows: Medium_Shadow_inner,
color: widget.backgroundColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
MediaQuery.of(context).size.width * 0.1),
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: List.generate(
widget.values.length,
(index) => Text(
widget.values[index],
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w600,
color: Color(0xFF4F4F4F),
),
),
),
),
),
),
),
AnimatedAlign(
duration: const Duration(milliseconds: 250),
curve: Curves.decelerate,
alignment:
initialPosition ? Alignment.centerLeft : Alignment.centerRight,
child: Container(
width: widget.width != null
? (widget.width! / 1.75)
: (MediaQuery.of(context).size.width / 2) - 20,
height: widget.height ?? 37,
decoration: ShapeDecoration(
color: widget.buttonColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
MediaQuery.of(context).size.width * 0.1),
),
),
child: Text(
initialPosition ? widget.values[0] : widget.values[1],
style: TextStyle(
fontSize: 16,
color: widget.textColor,
fontWeight: FontWeight.w600,
),
),
alignment: Alignment.center,
),
),
],
),
);
}
}
class FourText extends StatelessWidget {
FourText(
{required this.text1,
required this.text2,
required this.text3,
required this.text4,
required this.style});
final String text1;
final String text2;
final String text3;
final String text4;
final TextStyle style;
@override
Widget build(BuildContext context) {
return Row(
children: [
Text(text1, style: style),
Spacer(),
Text(text2, style: style),
Spacer(),
Text(text3, style: style),
Spacer(),
Text(text4, style: style),
],
);
}
}
class RenewedInfo extends StatelessWidget {
const RenewedInfo({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
DefaultTabController(
length: 2,
child: Container(
decoration: BoxDecoration(
boxShadow: Blue_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
width: MediaQuery.of(context).size.width,
height: 190,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 20),
child: Column(
children: [
Row(
children: [
Container(
width: 35,
height: 35,
decoration: BoxDecoration(
color: Violet,
shape: BoxShape.circle,
),
),
SizedBox(width: 15),
Text('BURCU YILDIRIM', style: V16Sb),
Spacer(),
Icon(Icons.keyboard_arrow_down_sharp)
],
),
SizedBox(height: 25),
DualTextRow(text1: 'Yeni Poliçe No', text2: '42454641'),
Divider(),
DualTextRow(text1: 'Eski Poliçe No', text2: '30361354'),
Divider(),
DualTextRow(text1: 'Vade Tarihi', text2: '02.11.2021'),
],
),
),
),
),
],
);
}
}
class DualTextRow extends StatelessWidget {
const DualTextRow(
{required this.text1, required this.text2, this.style1, this.style2});
final String text1;
final String text2;
final TextStyle? style1;
final TextStyle? style2;
@override
Widget build(BuildContext context) {
return Row(
children: [
Text(text1, style: style1 ?? V16Sb),
Spacer(),
Text(text2, style: style2 ?? V16L),
],
);
}
}
class DualTextColumn extends StatelessWidget {
const DualTextColumn(
{required this.text1, required this.text2, this.style1, this.style2});
final String text1;
final String text2;
final TextStyle? style1;
final TextStyle? style2;
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(text1, style: style1 ?? V16Sb),
SizedBox(height: 5),
Text(text2, style: style2 ?? V16L),
],
);
}
}
class CustomDualText extends StatelessWidget {
final String text1;
final String text2;
final Color color;
final FontWeight fontWeight;
final double fontSize;
CustomDualText(
{required this.text1,
required this.text2,
required this.color,
required this.fontWeight,
required this.fontSize});
@override
Widget build(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
text1,
style: TextStyle(
color: color,
fontSize: fontSize,
fontWeight: fontWeight,
),
),
Spacer(),
Text(
text2,
style: TextStyle(
color: color,
fontSize: fontSize,
fontWeight: fontWeight,
),
),
],
);
}
}
class TextAndIcon extends StatelessWidget {
final String title;
final IconData icon;
final void Function()? onTap;
TextAndIcon({required this.title, required this.icon, this.onTap});
@override
Widget build(BuildContext context) {
return Material(
child: InkWell(
onTap: onTap,
child: Padding(
padding: EdgeInsets.only(left: 25, right: 25, bottom: 25),
child: Container(
height: 54,
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(
gradient: Grey_Gradient,
borderRadius: BorderRadius.circular(16)),
child: Row(
children: [
SizedBox(width: 15),
FittedBox(child: Text(title)),
Spacer(),
Icon(icon),
SizedBox(width: 15),
],
),
),
),
),
);
}
}
class BranchItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 10),
Container(
decoration: BoxDecoration(
boxShadow: Red_Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(16),
),
margin: EdgeInsets.symmetric(horizontal: 25, vertical: 3),
width: 260,
height: 212,
child: Stack(
alignment: Alignment.bottomLeft,
children: [
Positioned(
top: 0,
left: 0,
child: SizedBox(
height: 106,
width: 110,
child: Image(
image:
AssetImage('lib/presentation/Assets/Assets_Destek/background.png'),
),
),
),
Positioned(
bottom: 0,
right: 0,
child: SizedBox(
height: 78,
width: 78,
child: Image(
image:
AssetImage('lib/presentation/Assets/Assets_Destek/backgroundUp.png'),
),
),
),
Padding(
padding: const EdgeInsets.only(left: 15),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 17),
Text('Adiyaman Zey Şube', style: V16B),
SizedBox(height: 20),
Text('Turgut Reis Zey C. No:7 A/A', style: G14L),
Spacer(),
Padding(
padding: const EdgeInsets.only(right: 50),
child: CustomDualText(
text1: 'Telefon',
text2: 'Dahili',
color: Gray,
fontSize: 14,
fontWeight: FontWeight.w300,
),
),
Padding(
padding: const EdgeInsets.only(right: 50),
child: CustomDualText(
text1: '0 850 433 0850',
text2: '2215',
color: Gray,
fontSize: 14,
fontWeight: FontWeight.w400,
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(right: 70, bottom: 17),
child: BorderButton(
text: 'Haritada Gör',
color: Blue,
onPress: () {},
shadow: Blue_Low_Shadow),
),
],
),
)
],
),
),
],
);
}
}
class TeklifListContent extends StatelessWidget {
final String title;
final String image;
final void Function() onTap;
TeklifListContent(
{required this.title, required this.image, required this.onTap});
@override
Widget build(BuildContext context) {
return Material(
child: InkWell(
onTap: onTap,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: Colors.white,
boxShadow: Low_Shadow,
),
width: MediaQuery.of(context).size.width,
height: 75,
child: Row(
children: [
SizedBox(width: 15),
Image.asset('lib/presentation/Assets/Assets_Teklif_AI/$image', width: 48),
SizedBox(width: 15),
Text(title, style: V16R),
Spacer(),
Text('Teklif Al', style: B16R),
SizedBox(width: 10),
Icon(Icons.arrow_forward, color: Blue),
SizedBox(width: 15),
],
),
),
),
);
}
}
class PolicelerimListContent extends StatelessWidget {
final String title;
final String image;
final void Function() onTap;
PolicelerimListContent(
{required this.title, required this.image, required this.onTap});
@override
Widget build(BuildContext context) {
return Material(
child: InkWell(
onTap: onTap,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
gradient: Grey_Gradient,
),
width: MediaQuery.of(context).size.width,
height: 54,
child: Row(
children: [
SizedBox(width: 15),
Image.asset('lib/presentation/Assets/Assets_Hesabim/$image', width: 30),
SizedBox(width: 15),
Text(title, style: RB16R),
Spacer(),
Icon(Icons.arrow_forward, color: Violet),
SizedBox(width: 15),
],
),
),
),
);
}
}
class AppTextInput extends StatelessWidget {
const AppTextInput({
this.label,
this.floatingLabel,
this.disabled = false,
this.enabled = true,
this.color,
this.labelColor,
this.fontSize,
this.labelFontWeight,
this.placeholder,
this.backgroundColor,
this.obscureText = false,
this.displayBorder = false,
this.customBorder,
this.prefixIcon,
this.suffixIcon,
this.leading,
this.trailing,
this.contentPadding,
this.keyboardType,
this.readOnly = false,
this.initialValue,
this.textColor,
});
final String? label;
final String? floatingLabel;
final bool disabled; // changes background to grey
final bool enabled; // Just disables click
final Color? color;
final Color? labelColor;
final Color? textColor;
final double? fontSize;
final FontWeight? labelFontWeight;
final String? placeholder;
final Color? backgroundColor;
final bool obscureText;
final bool displayBorder;
final Border? customBorder;
final Widget? prefixIcon;
final Widget? suffixIcon;
final Widget? leading;
final Widget? trailing;
final EdgeInsetsGeometry? contentPadding;
final TextInputType? keyboardType;
final bool readOnly;
final String? initialValue;
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
if (label != null)
Text(
label!,
style: TextStyle(
color: labelColor ?? Theme.of(context).primaryColorDark,
fontWeight: labelFontWeight ?? FontWeight.w500,
fontSize: fontSize ?? 16,
),
),
if (label != null) const SizedBox(height: 10),
Container(
decoration: displayBorder
? BoxDecoration(
border: customBorder ??
Border.all(
width: 1,
color: const Color(0xFFe4e7ec),
),
color: Azure,
)
: const BoxDecoration(
color: Color(0xfff1f3f5),
),
child: Row(
children: <Widget>[
if (leading != null) leading!,
Expanded(
child: TextFormField(
obscureText: obscureText,
keyboardType: keyboardType,
readOnly: readOnly,
initialValue: initialValue,
style: TextStyle(
color: textColor ?? Raisin_Black,
),
decoration: InputDecoration(
labelText: floatingLabel,
hintText: placeholder,
border: InputBorder.none,
labelStyle: TextStyle(
color: labelColor,
),
filled: true,
fillColor: Colors.transparent,
prefixIcon: prefixIcon,
suffixIcon: suffixIcon,
contentPadding: contentPadding ??
EdgeInsets.symmetric(
horizontal: 16,
vertical: floatingLabel == null ? 0 : 8,
),
),
),
),
if (trailing != null) trailing!,
],
),
),
],
);
}
}
class TextInBox extends StatelessWidget {
final String text;
final Color color;
final List<BoxShadow> shadow;
final Color textColor;
TextInBox(
{required this.text,
required this.color,
required this.shadow,
required this.textColor});
@override
Widget build(BuildContext context) {
return Container(
height: 51,
width: 51,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: color,
boxShadow: shadow,
),
child: Center(
child: Text(
text,
style: TextStyle(
color: textColor, fontSize: 26, fontWeight: FontWeight.w400),
),
),
);
}
}
class VehicleAccessories extends StatefulWidget {
final String title;
final String text;
VehicleAccessories({required this.title, required this.text});
@override
_VehicleAccessoriesState createState() => _VehicleAccessoriesState();
}
class _VehicleAccessoriesState extends State<VehicleAccessories> {
bool isSelected = false;
@override
Widget build(BuildContext context) {
return Row(
children: [
Expanded(
flex: 4,
child: Row(
children: [
IconTextBorderButton(
text: widget.title,
buttonColor: isSelected ? Blue : Colors.white,
onPress: () {
setState(() {
isSelected = !isSelected;
});
},
color: isSelected ? Colors.white : Unseleted,
icon: Icons.check,
padding: EdgeInsets.symmetric(vertical: 8, horizontal: 15),
),
],
),
),
Expanded(
flex: 3,
child: CustomTextInput(
disabled: !isSelected,
label: widget.text,
TextColor: Raisin_Black,
labelColor: Grey,
),
),
],
);
}
}
class InfoBox extends StatelessWidget {
const InfoBox({required this.text, required this.height});
final String text;
final double height;
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
boxShadow: Medium_Shadow,
color: Colors.white),
height: height,
width: MediaQuery.of(context).size.width,
child: Row(
children: [
SizedBox(width: 18),
Icon(Icons.info_outline, color: Colors.red),
SizedBox(width: 15),
Flexible(child: Text(text)),
SizedBox(width: 18),
],
),
);
}
}
class ViewOffersItem extends StatelessWidget {
final String title;
final String subtitle;
final String installment;
final String subinstallment;
final String insurance;
final void Function() onButtonTap;
final void Function(bool) onChange;
final bool switchvalue;
final Color bordercolor;
final bool headerVisible;
final bool isBorder;
final List<BoxShadow> shadow;
ViewOffersItem({
required this.title,
required this.subtitle,
required this.installment,
required this.subinstallment,
required this.insurance,
required this.onButtonTap,
required this.onChange,
required this.switchvalue,
required this.bordercolor,
this.headerVisible = false,
this.isBorder = false,
required this.shadow,
});
@override
Widget build(BuildContext context) {
return Stack(
children: [
Container(
padding: EdgeInsets.only(left: 12, right: 12, top: 20, bottom: 10),
margin: EdgeInsets.only(top: 17),
decoration: BoxDecoration(
boxShadow: shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(15),
border: Border.all(
color: isBorder ? Colors.white : Blue,
width: isBorder ? 0 : 2,
),
),
child: Column(
children: [
SizedBox(height: 17),
Row(
children: [
Image.asset(
'lib/presentation/Assets/Assets_Common/logo.png',
width: 115,
height: 57,
),
SizedBox(width: 12),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: V16Sb,
),
SizedBox(height: 6),
Text(
subtitle,
style: V14R,
),
SizedBox(height: 6),
Text(
insurance,
style: T12R,
),
],
),
],
),
SizedBox(height: 15),
Row(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
installment,
style: Q16R,
),
SizedBox(height: 8),
Text(
subinstallment,
style: V16Sb,
),
],
),
Spacer(),
Expanded(
flex: 3,
child: SolidButton(
text: 'SATIN AL',
onPress: onButtonTap,
shadow: Green_High_Shadow,
gradient: Green_Gradient,
),
)
],
),
SizedBox(height: 15),
Divider(),
SizedBox(height: 8),
Row(
children: [
Text(
'Poliçe Detayı',
style: V16L,
),
Icon(
Icons.keyboard_arrow_down,
color: Violet,
),
Spacer(),
Text(
'Karşılaştır',
style: V12Sb,
),
SizedBox(width: 6),
CupertinoSwitch(value: switchvalue, onChanged: onChange),
],
)
],
),
),
if (headerVisible)
Positioned(
top: 0,
left: 16,
height: 34,
child: Container(
decoration: BoxDecoration(
color: Blue,
borderRadius: BorderRadius.circular(13),
),
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 18),
decoration: BoxDecoration(
color: Blue,
borderRadius: BorderRadius.circular(13),
),
child: const Center(
child: Text(
'EN DÜŞÜK FİYAT',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w700,
fontSize: 12,
),
),
),
),
),
),
],
);
}
}
class InnerShadowDropdown extends StatelessWidget {
const InnerShadowDropdown({required this.title});
final String title;
@override
Widget build(BuildContext context) {
return Neumorphic(
style: NeumorphicStyle(
intensity: 0.70,
shape: NeumorphicShape.flat,
boxShape: NeumorphicBoxShape.roundRect(BorderRadius.circular(25)),
depth: -10,
lightSource: LightSource.top,
color: Colors.grey),
child: Container(
height: 60,
color: Colors.white,
child: Row(
children: [
SizedBox(width: 20),
Text(title),
Spacer(),
Icon(Icons.keyboard_arrow_down),
SizedBox(width: 20),
],
),
),
);
}
}
class ThreeStep extends StatelessWidget {
const ThreeStep(
{required this.step1, required this.step2, required this.step3});
final bool step1;
final bool step2;
final bool step3;
@override
Widget build(BuildContext context) {
return Stack(
alignment: Alignment.center,
children: [
Divider(),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
TextInBox(
text: '01',
textColor: step1 ? Violet : Violet.withOpacity(.5),
color: Colors.white,
shadow: Red_Low_Shadow),
TextInBox(
text: '02',
textColor: step2 ? Violet : Violet.withOpacity(.5),
color: Colors.white,
shadow: Red_Low_Shadow),
TextInBox(
text: '03',
textColor: step3 ? Violet : Violet.withOpacity(.5),
color: Colors.white,
shadow: Red_Low_Shadow),
],
)
],
);
}
}
class InsuranceInformation extends StatelessWidget {
const InsuranceInformation({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 10),
Container(
decoration: BoxDecoration(
boxShadow: Low_Shadow,
color: Colors.white,
borderRadius: BorderRadius.circular(15),
),
child: Stack(
alignment: Alignment.bottomLeft,
children: [
Positioned(
bottom: 0,
right: 0,
child: SizedBox(
height: 140,
width: 140,
child: Image(
image:
AssetImage('lib/presentation/Assets/Assets_Common/backgroundUp.png'),
),
),
),
Container(
padding: EdgeInsets.all(25),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Sigorta Bilgileriniz',
style: Q18Sb,
),
SizedBox(height: 20),
DualTextColumn(
text1: 'Adınız Soyadınız', text2: 'Sinan Soylu'),
SizedBox(height: 25),
DualTextColumn(text1: 'Plaka', text2: '34 DRR 364'),
SizedBox(height: 25),
DualTextColumn(
text1: 'Araç',
text2:
'2020 / Peugeot / 308\nAllure Sport 1.2 Puretech.'),
SizedBox(height: 12),
GestureDetector(
onTap: () {},
child: Row(
children: [
IconButtonRoundedRactangle(
buttonColor: Colors.white,
onPress: () {},
shadow: Low_Shadow,
image: AssetImage(
'lib/presentation/Assets/Assets_Common/edit_icon.png'),
),
SizedBox(
width: 15,
),
Text('Düzenle', style: B18Sb),
],
),
),
],
),
),
],
),
),
],
);
}
}
class InsuranceQuotes extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
height: 290,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: Blue_Low_Shadow,
borderRadius: BorderRadius.circular(16)),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 20),
child: Column(
children: [
Row(
children: [
CustumProgressIndicator(
shadow: Blue_High_Shadow, color: Blue, value: 75),
SizedBox(width: 44),
Flexible(
child: Text('Size en uygun kasko sigortası teklifleri',
style: V22R))
],
),
Spacer(),
Text(
'Sizin için bulduğumuz tüm teklifler hazır. En pahalı ve en ucuz teklif arasında %0 fiyat avantajı bulunuyor',
style: V14Sb),
Spacer(),
DualTextRow(
text1: 'Teklif Sayısı:',
text2: '13',
style1: DG14L,
style2: Q14B),
Spacer(),
DualTextRow(
text1: 'En Düşük:',
text2: '1.331,25 TL',
style1: DG14L,
style2: Q14B),
Spacer(),
DualTextRow(
text1: 'Fiyat Avantajı:',
text2: '%23',
style1: DG14L,
style2: Q14B),
],
),
),
);
}
}
class BigRightTick extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
width: 132,
height: 132,
decoration: BoxDecoration(
color: Colors.white,
shape: BoxShape.circle,
boxShadow: Green_High_Shadow),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 33, vertical: 42),
child: Image(
image: AssetImage('lib/presentation/Assets/Assets_Common/check.png'),
),
),
);
}
}
class MyPoliciesListView extends StatelessWidget {
final String text1;
final String text2;
final String text3;
final String text4;
final void Function() onTap;
const MyPoliciesListView(
{required this.text1,
required this.text2,
required this.text3,
required this.text4,
required this.onTap});
@override
Widget build(BuildContext context) {
return Material(
child: InkWell(
onTap: onTap,
child: Container(
padding: EdgeInsets.only(right: 15, left: 15, top: 18),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
gradient: Grey_Gradient,
),
width: MediaQuery.of(context).size.width,
height: 70,
child: Column(
children: [
DualTextRow(
text1: text1, text2: text2, style1: B14R, style2: DG14L),
SizedBox(height: 6),
DualTextRow(
text1: text3, text2: text4, style1: DG14R, style2: DG14L),
],
),
),
),
);
}
}
| 0
|
mirrored_repositories/Acente/lib/presentation
|
mirrored_repositories/Acente/lib/presentation/utils/constants.dart
|
import 'package:flutter/material.dart';
//-------Colors-----------
///242, 18, 11
const Color Primary = Color(0xffF2120B);
///168, 14, 11
const Color Secondary = Color(0xffA80E0B);
///228, 35, 31
const Color Quaternary = Color(0xffe4231f);
///rgb 209 22 51
const Color Ternary = Color(0xffd11633);
///rgb 68 53 91
const Color Violet = Color(0xff44355B);
///rgb 49 38 62
const Color Dark_Purple = Color(0xff00263e);
///rgb 34 30 34
const Color Raisin_Black = Color(0xff221E22);
///79,79,79
const Color Davys_Grey = Color(0xff4F4F4F);
///132, 132, 132
const Color Grey = Color(0xff848484);
///239, 255, 255
const Color Azure = Color(0xffEFFFFF);
///243, 247, 254
const Color Alice_Blue = Color(0xffF3F7FE);
///240, 243, 244
const Color Cultured = Color(0xffF0F3F4);
///226, 229, 228
const Color Platinum = Color(0xffE2E5E4);
///105, 185, 255
const Color Dodger_Blue = Color(0xff69B9FF);
///41, 229, 113
const Color Melachite = Color(0xff29E571);
///rgb 0 136 255
const Color Blue = Color(0xFF0088ff);
///rgb 57 138 247
const Color Light_Blue = Color(0xFF398af7);
///240, 243, 244
const Color Unprogressed = Color(0xFFf0f3f4);
///226, 229, 228
const Color Unseleted = Color(0xFFe2e5e4);
/// 90, 113, 132
const Color Gray = Color(0xFF5a6F84);
///132, 132, 132
//-------Gradient-----------
const LinearGradient Red_Gradient_Rev = LinearGradient(
colors: [
Color(0xFFD11633),
Color(0xFFEF3531),
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
);
const LinearGradient Red_Gradient = LinearGradient(
colors: [
Color(0xFFD11633),
Color(0xFFEF3531),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Blue_Gradient_3 = LinearGradient(
colors: [
Color(0xFF0088FF),
Color(0xFF69B9FF),
Color(0xFFf3f7fe),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Blue_Gradient_2 = LinearGradient(
colors: [
Color(0xFF0088FF),
Color(0xFF69b9ff),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Green_Blue_Gradient = LinearGradient(
colors: [
Color(0xFF2AE571),
Color(0xFF0088FF),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Red_Blue_Gradient = LinearGradient(
colors: [
Color(0xFFE4231F),
Color(0xFF0088FF),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Green_Gradient = LinearGradient(
colors: [
Color(0xFF2AE571),
Color(0xFF65FFA0),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Grey_Gradient = LinearGradient(
colors: [
Color(0xFFFFFFFF),
Color(0xFFf1f3f4),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
const LinearGradient Grey_Gradient_Rev = LinearGradient(
colors: [
Color(0xFFf1f3f4),
Color(0xFFFFFFFF),
],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
);
//-------Shadow-----------
const List<BoxShadow> Blue_Low_Shadow = [
BoxShadow(
color: Color(0x540088FF),
blurRadius: 6,
offset: Offset(0, 3),
),
];
const List<BoxShadow> Blue_High_Shadow = [
BoxShadow(
color: Color(0x3D0088FF),
blurRadius: 15,
offset: Offset(0, 9),
),
];
const List<BoxShadow> Green_Low_Shadow = [
BoxShadow(
color: Color(0x542ae571),
blurRadius: 6,
offset: Offset(0, 3),
),
];
const List<BoxShadow> Green_High_Shadow = [
BoxShadow(
color: Color(0x3D2ae571),
blurRadius: 15,
offset: Offset(0, 9),
),
];
const List<BoxShadow> Green_High_Shadow_Rev = [
BoxShadow(
color: Color(0x3D2ae571),
blurRadius: 15,
offset: Offset(0, -9),
),
];
const List<BoxShadow> Red_Low_Shadow = [
BoxShadow(
color: Color(0x54e4231f),
blurRadius: 6,
offset: Offset(0, 3),
),
];
const List<BoxShadow> Red_High_Shadow = [
BoxShadow(
color: Color(0x3De4231f),
blurRadius: 15,
offset: Offset(0, 9),
),
];
const List<BoxShadow> Red_High_Shadow_Rev = [
BoxShadow(
color: Color(0x3De4231f),
blurRadius: 15,
offset: Offset(0, -9),
),
];
const List<BoxShadow> Low_Shadow = [
BoxShadow(
color: Color(0x29000000),
blurRadius: 6,
offset: Offset(0, 3),
),
];
const List<BoxShadow> Medium_Shadow = [
BoxShadow(
color: Color(0x63221e22),
blurRadius: 6,
offset: Offset(0, 3),
),
];
const List<BoxShadow> Medium_Shadow_inner = [
BoxShadow(
color: Unseleted,
blurRadius: 12,
spreadRadius: -12,
),
];
const List<BoxShadow> High_Shadow = [
BoxShadow(
color: Color(0x3D44355b),
blurRadius: 15,
offset: Offset(0, 9),
),
];
final List<BoxShadow> Violet_Low_Shadow = [
BoxShadow(
color: Violet.withOpacity(0.24),
blurRadius: 15,
offset: Offset(0, 4),
),
];
const TextStyle W16Sb = TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w600,
);
const TextStyle W16R = TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w400,
);
const TextStyle V34L = TextStyle(
color: Violet,
fontSize: 34,
fontWeight: FontWeight.w300,
);
const TextStyle V34R = TextStyle(
color: Violet,
fontSize: 34,
fontWeight: FontWeight.w400,
);
const TextStyle V34Sb = TextStyle(
color: Violet,
fontSize: 34,
fontWeight: FontWeight.w600,
);
const TextStyle W28Sb = TextStyle(
color: Colors.white,
fontSize: 28,
fontWeight: FontWeight.w600,
);
const TextStyle V16L = TextStyle(
color: Violet,
fontSize: 16,
fontWeight: FontWeight.w300,
);
const TextStyle V40Sb = TextStyle(
color: Violet,
fontSize: 40,
fontWeight: FontWeight.w600,
);
const TextStyle V12R = TextStyle(
color: Violet,
fontSize: 12,
fontWeight: FontWeight.w400,
);
const TextStyle V28R = TextStyle(
color: Violet,
fontSize: 27,
fontWeight: FontWeight.w400,
);
const TextStyle V40R = TextStyle(
color: Violet,
fontSize: 40,
fontWeight: FontWeight.w400,
);
const TextStyle LB16R = TextStyle(
color: Light_Blue,
fontSize: 16,
fontWeight: FontWeight.w400,
);
const TextStyle V16R = TextStyle(
color: Violet,
fontSize: 16,
fontWeight: FontWeight.w400,
);
const TextStyle V12L = TextStyle(
color: Violet,
fontSize: 12,
fontWeight: FontWeight.w300,
);
const TextStyle V22R = TextStyle(
color: Violet,
fontSize: 22,
fontWeight: FontWeight.w400,
);
const TextStyle B16Sb = TextStyle(
color: Blue,
fontSize: 16,
fontWeight: FontWeight.w600,
);
const TextStyle B23R = TextStyle(
color: Blue,
fontSize: 23,
fontWeight: FontWeight.w400,
);
const TextStyle V14R = TextStyle(
color: Violet,
fontSize: 14,
fontWeight: FontWeight.w400,
);
const TextStyle V16B = TextStyle(
color: Violet,
fontSize: 16,
fontWeight: FontWeight.bold,
);
const TextStyle V14L = TextStyle(
color: Violet,
fontSize: 14,
fontWeight: FontWeight.w300,
);
const TextStyle V16Sb = TextStyle(
color: Violet,
fontSize: 16,
fontWeight: FontWeight.w600,
);
const TextStyle V50L = TextStyle(
color: Violet,
fontSize: 50,
fontWeight: FontWeight.w300,
);
const TextStyle R14L = TextStyle(
color: Primary,
fontSize: 14,
fontWeight: FontWeight.w300,
);
const TextStyle W12L = TextStyle(
color: Colors.white,
fontSize: 12,
fontWeight: FontWeight.w300,
);
const TextStyle W18R = TextStyle(
color: Colors.white,
fontSize: 18,
fontWeight: FontWeight.w400,
);
const TextStyle W12R = TextStyle(
color: Colors.white,
fontSize: 12,
fontWeight: FontWeight.w400,
);
const TextStyle V60Sb = TextStyle(
color: Violet,
fontSize: 60,
fontWeight: FontWeight.w600,
);
const TextStyle G14L = TextStyle(
color: Gray,
fontSize: 14,
fontWeight: FontWeight.w300,
);
const TextStyle V20R = TextStyle(
color: Violet,
fontSize: 20,
fontWeight: FontWeight.w400,
);
const TextStyle B34Sb = TextStyle(
color: Blue,
fontSize: 34,
fontWeight: FontWeight.w600,
);
const TextStyle B16R = TextStyle(
color: Blue,
fontSize: 16,
fontWeight: FontWeight.w400,
);
const TextStyle B20Sb = TextStyle(
color: Blue,
fontSize: 20,
fontWeight: FontWeight.w600,
);
const TextStyle V26R = TextStyle(
color: Violet,
fontSize: 26,
fontWeight: FontWeight.w400,
);
const TextStyle B18R = TextStyle(
color: Blue,
fontSize: 18,
fontWeight: FontWeight.w400,
);
const TextStyle V20Sb = TextStyle(
color: Violet,
fontSize: 20,
fontWeight: FontWeight.w600,
);
const TextStyle V18Sb = TextStyle(
color: Violet,
fontSize: 18,
fontWeight: FontWeight.w600,
);
const TextStyle B18Sb = TextStyle(
color: Blue,
fontSize: 18,
fontWeight: FontWeight.w600,
);
const TextStyle DG14L = TextStyle(
color: Davys_Grey,
fontSize: 14,
fontWeight: FontWeight.w300,
);
const TextStyle Q14B = TextStyle(
color: Quaternary,
fontSize: 14,
fontWeight: FontWeight.bold,
);
const TextStyle V14Sb = TextStyle(
color: Violet,
fontSize: 14,
fontWeight: FontWeight.w600,
);
const TextStyle T12R = TextStyle(
color: Ternary,
fontSize: 12,
fontWeight: FontWeight.w400,
);
const TextStyle Q16R = TextStyle(
color: Quaternary,
fontSize: 16,
fontWeight: FontWeight.w400,
);
const TextStyle Q18Sb = TextStyle(
color: Quaternary,
fontSize: 18,
fontWeight: FontWeight.w600,
);
const TextStyle Q16B = TextStyle(
color: Quaternary,
fontSize: 16,
fontWeight: FontWeight.bold,
);
const TextStyle Q18B = TextStyle(
color: Quaternary,
fontSize: 18,
fontWeight: FontWeight.w600,
);
const TextStyle V12Sb = TextStyle(
color: Violet,
fontSize: 12,
fontWeight: FontWeight.w600,
);
const TextStyle RB16R = TextStyle(
color: Raisin_Black,
fontSize: 16,
fontWeight: FontWeight.w400,
);
const TextStyle B14R = TextStyle(
color: Blue,
fontSize: 14,
fontWeight: FontWeight.w400,
);
const TextStyle DG14R = TextStyle(
color: Davys_Grey,
fontSize: 14,
fontWeight: FontWeight.w400,
);
const TextStyle G10R = TextStyle(
color: Grey,
fontSize: 10,
fontWeight: FontWeight.w400,
);
const TextStyle B28R = TextStyle(
color: Blue,
fontSize: 28,
fontWeight: FontWeight.w400,
);
| 0
|
mirrored_repositories/Acente
|
mirrored_repositories/Acente/test/widget_test.dart
|
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:acente/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
| 0
|
mirrored_repositories/flutter_guild_demo
|
mirrored_repositories/flutter_guild_demo/lib/constants.dart
|
import 'package:flutter/material.dart';
class Constants {
Constants._();
static const size = Size(720, 120);
static final knobDimension = size.height;
static final knobSize = Size.square(knobDimension);
static final knobRadius = knobDimension / 2;
static final knobToTrackPadding = knobDimension * .15;
static final knobTrackSize = Size(size.width - knobToTrackPadding * 2, size.height - knobToTrackPadding * 2);
static const knobBackgroundColor = Colors.white;
static const knobElevation = 8.0;
static const knobShadowColor = Colors.black87;
static final borderRadius = BorderRadius.circular(size.height / 2);
static const gradientColors = [Colors.blueAccent, Colors.purpleAccent];
static const gradient = LinearGradient(colors: gradientColors);
}
| 0
|
mirrored_repositories/flutter_guild_demo
|
mirrored_repositories/flutter_guild_demo/lib/utils.dart
|
import 'package:flutter/widgets.dart';
extension RenderBoxRectExtension<T extends State> on GlobalKey<T> {
Rect get rect {
final renderBox = currentContext!.findRenderObject() as RenderBox;
return renderBox.localToGlobal(Offset.zero) & renderBox.size;
}
}
extension ShiftExtension on Offset {
Offset shift(double delta) => translate(delta, delta);
}
// https://stackoverflow.com/a/55088673/8236404
double Function(double input) interpolate({
double inputMin = 0,
double inputMax = 1,
double outputMin = 0,
double outputMax = 1,
}) {
assert(inputMin != inputMax || outputMin != outputMax);
final diff = (outputMax - outputMin) / (inputMax - inputMin);
return (input) => ((input - inputMin) * diff) + outputMin;
}
extension MixGradientColor on List<Color> {
Color mix(double min, double max, double value) =>
Color.lerp(first, last, interpolate(inputMin: min, inputMax: max)(value))!;
}
| 0
|
mirrored_repositories/flutter_guild_demo
|
mirrored_repositories/flutter_guild_demo/lib/main.dart
|
import 'package:flutter/material.dart';
import 'demos/custom_painter.dart';
import 'demos/multi_child_layout.dart';
import 'demos/render_object.dart';
import 'demos/widget.dart';
void main() => runApp(
const App(
demo: Demo.renderObject,
),
);
class App extends StatelessWidget {
const App({super.key, required this.demo});
final Demo demo;
@override
Widget build(BuildContext context) => MaterialApp(onGenerateRoute: (_) => demo.route);
}
enum Demo {
widget(WidgetDemoPage()),
multiChildLayout(MultiChildLayoutDemoPage()),
customPainter(CustomPaintDemoPage()),
renderObject(RenderObjectDemoPage());
const Demo(this._page);
final Widget _page;
PageRoute<void> get route => MaterialPageRoute(builder: (_) => _page);
}
| 0
|
mirrored_repositories/flutter_guild_demo/lib
|
mirrored_repositories/flutter_guild_demo/lib/demos/multi_child_layout.dart
|
import 'package:flutter/material.dart';
import 'package:guild_demo/constants.dart';
import 'package:guild_demo/utils.dart';
class MultiChildLayoutDemoPage extends StatelessWidget {
const MultiChildLayoutDemoPage({super.key});
@override
Widget build(BuildContext context) => const Scaffold(body: Center(child: SliderWidget()));
}
class SliderWidget extends StatefulWidget {
const SliderWidget({super.key});
@override
State<SliderWidget> createState() => _SliderWidgetState();
}
class _SliderWidgetState extends State<SliderWidget> {
final GlobalKey _sliderKey = GlobalKey();
final GlobalKey _knobKey = GlobalKey();
final GlobalKey _knobTrackKey = GlobalKey();
double _knobLeftPosition = 0.0;
Color _knobColor = Constants.gradientColors.first;
@override
Widget build(BuildContext context) {
return SizedBox.fromSize(
key: _sliderKey,
size: Constants.size,
child: CustomMultiChildLayout(
delegate: SliderLayoutDelegate(
knobLeftPosition: _knobLeftPosition,
),
children: [
LayoutId(
id: SliderChildSlot.knobTrack,
child: DecoratedBox(
key: _knobTrackKey,
decoration: BoxDecoration(
gradient: Constants.gradient,
borderRadius: Constants.borderRadius,
),
),
),
LayoutId(
id: SliderChildSlot.knob,
child: GestureDetector(
key: _knobKey,
onHorizontalDragStart: (_) => _onDragStart(),
onHorizontalDragUpdate: (details) => _onDragUpdate(details.primaryDelta!),
child: Material(
shape: CircleBorder(
side: BorderSide(
color: Constants.knobBackgroundColor,
width: Constants.knobToTrackPadding,
),
),
shadowColor: Constants.knobShadowColor,
color: _knobColor,
elevation: Constants.knobElevation,
),
),
),
],
),
);
}
double _dragLeftPosition = 0.0;
void _onDragStart() {
_dragLeftPosition = _knobKey.rect.left;
}
void _onDragUpdate(double delta) {
final sliderRect = _sliderKey.rect;
final knobTrackRect = _knobTrackKey.rect;
final lowerLimit = knobTrackRect.left - Constants.knobRadius;
final upperLimit = knobTrackRect.right - Constants.knobRadius;
final dragLeftPosition = (_dragLeftPosition + delta).clamp(
lowerLimit,
upperLimit,
);
if (_dragLeftPosition == dragLeftPosition) {
return;
}
setState(() {
_dragLeftPosition = dragLeftPosition;
_knobLeftPosition = _dragLeftPosition - sliderRect.left;
_knobColor = Constants.gradientColors.mix(lowerLimit, upperLimit, _dragLeftPosition);
});
}
}
enum SliderChildSlot {
knob,
knobTrack,
}
class SliderLayoutDelegate extends MultiChildLayoutDelegate {
SliderLayoutDelegate({required this.knobLeftPosition});
final double knobLeftPosition;
@override
void performLayout(Size size) {
layoutChild(
SliderChildSlot.knobTrack,
BoxConstraints.tight(Constants.knobTrackSize),
);
positionChild(
SliderChildSlot.knobTrack,
Offset.zero.shift(Constants.knobToTrackPadding),
);
layoutChild(
SliderChildSlot.knob,
BoxConstraints.tight(Constants.knobSize),
);
positionChild(
SliderChildSlot.knob,
Offset(knobLeftPosition, 0),
);
}
@override
bool shouldRelayout(SliderLayoutDelegate oldDelegate) => knobLeftPosition != oldDelegate.knobLeftPosition;
}
| 0
|
mirrored_repositories/flutter_guild_demo/lib
|
mirrored_repositories/flutter_guild_demo/lib/demos/widget.dart
|
import 'package:flutter/material.dart';
import 'package:guild_demo/constants.dart';
import 'package:guild_demo/utils.dart';
class WidgetDemoPage extends StatelessWidget {
const WidgetDemoPage({super.key});
@override
Widget build(BuildContext context) => const Scaffold(body: Center(child: SliderWidget()));
}
class SliderWidget extends StatefulWidget {
const SliderWidget({super.key});
@override
State<SliderWidget> createState() => _SliderWidgetState();
}
class _SliderWidgetState extends State<SliderWidget> {
final GlobalKey _sliderKey = GlobalKey();
final GlobalKey _knobKey = GlobalKey();
final GlobalKey _knobTrackKey = GlobalKey();
double _knobLeftPosition = 0.0;
Color _knobColor = Constants.gradientColors.first;
@override
Widget build(BuildContext context) {
return SizedBox.fromSize(
key: _sliderKey,
size: Constants.size,
child: Stack(
clipBehavior: Clip.none,
alignment: Alignment.center,
children: [
Positioned(
width: Constants.knobTrackSize.width,
height: Constants.knobTrackSize.height,
child: DecoratedBox(
key: _knobTrackKey,
decoration: BoxDecoration(
gradient: Constants.gradient,
borderRadius: Constants.borderRadius,
),
),
),
Positioned(
top: 0,
bottom: 0,
left: _knobLeftPosition,
width: Constants.knobDimension,
child: GestureDetector(
key: _knobKey,
onHorizontalDragStart: (_) => _onDragStart(),
onHorizontalDragUpdate: (details) => _onDragUpdate(details.primaryDelta!),
child: Material(
shape: CircleBorder(
side: BorderSide(
color: Constants.knobBackgroundColor,
width: Constants.knobToTrackPadding,
),
),
shadowColor: Constants.knobShadowColor,
color: _knobColor,
elevation: Constants.knobElevation,
),
),
)
],
),
);
}
double _dragLeftPosition = 0.0;
void _onDragStart() {
_dragLeftPosition = _knobKey.rect.left;
}
void _onDragUpdate(double delta) {
final sliderRect = _sliderKey.rect;
final knobTrackRect = _knobTrackKey.rect;
final lowerLimit = knobTrackRect.left - Constants.knobRadius;
final upperLimit = knobTrackRect.right - Constants.knobRadius;
final dragLeftPosition = (_dragLeftPosition + delta).clamp(
lowerLimit,
upperLimit,
);
if (_dragLeftPosition == dragLeftPosition) {
return;
}
setState(() {
_dragLeftPosition = dragLeftPosition;
_knobLeftPosition = _dragLeftPosition - sliderRect.left;
_knobColor = Constants.gradientColors.mix(lowerLimit, upperLimit, _dragLeftPosition);
});
}
}
| 0
|
mirrored_repositories/flutter_guild_demo/lib
|
mirrored_repositories/flutter_guild_demo/lib/demos/render_object.dart
|
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:guild_demo/constants.dart';
import 'package:guild_demo/utils.dart';
class RenderObjectDemoPage extends StatelessWidget {
const RenderObjectDemoPage({super.key});
@override
Widget build(BuildContext context) => const Scaffold(body: Center(child: SliderWidget()));
}
class SliderWidget extends LeafRenderObjectWidget {
const SliderWidget({super.key});
@override
RenderObject createRenderObject(BuildContext context) => SliderRenderObject();
}
class SliderRenderObject extends RenderBox {
late final drag = HorizontalDragGestureRecognizer()
..onStart = _onDragStart
..onUpdate = _onDragUpdate;
late Rect knobRect;
double dragPosition = 0.0;
bool canDragKnob = false;
@override
void performLayout() {
size = Constants.size;
}
@override
bool get isRepaintBoundary => true;
@override
bool hitTestSelf(Offset position) => true;
@override
void handleEvent(PointerEvent event, BoxHitTestEntry entry) {
if (event is PointerDownEvent) {
drag.addPointer(event);
}
}
@override
void paint(PaintingContext context, Offset offset) {
final canvas = context.canvas;
final knobTrackRect = offset.shift(Constants.knobToTrackPadding) & Constants.knobTrackSize;
canvas.drawRRect(
Constants.borderRadius.toRRect(knobTrackRect),
Paint()..shader = Constants.gradient.createShader(knobTrackRect),
);
final lowerLimit = knobTrackRect.left;
final upperLimit = knobTrackRect.right;
final knobLeftPosition = dragPosition.clamp(lowerLimit, upperLimit);
final knobColor = Constants.gradientColors.mix(lowerLimit, upperLimit, knobLeftPosition);
final knobCenter = Offset(knobLeftPosition, offset.dy + size.height / 2);
knobRect = Rect.fromCircle(center: knobCenter, radius: Constants.knobRadius);
canvas
..drawShadow(
Path()..addOval(Rect.fromCircle(center: knobCenter, radius: Constants.knobRadius)),
Constants.knobShadowColor,
Constants.knobElevation,
true,
)
..drawCircle(
knobCenter,
Constants.knobRadius,
Paint()..color = Constants.knobBackgroundColor,
)
..drawCircle(
knobCenter,
Constants.knobRadius - Constants.knobToTrackPadding,
Paint()..color = knobColor,
);
}
void _onDragStart(DragStartDetails details) {
canDragKnob = knobRect.contains(details.localPosition);
}
void _onDragUpdate(DragUpdateDetails details) {
if (!canDragKnob) {
return;
}
dragPosition += details.primaryDelta!;
markNeedsPaint();
}
}
| 0
|
mirrored_repositories/flutter_guild_demo/lib
|
mirrored_repositories/flutter_guild_demo/lib/demos/custom_painter.dart
|
import 'package:flutter/material.dart';
import 'package:guild_demo/constants.dart';
import 'package:guild_demo/utils.dart';
class CustomPaintDemoPage extends StatelessWidget {
const CustomPaintDemoPage({super.key});
@override
Widget build(BuildContext context) => const Scaffold(body: Center(child: SliderWidget()));
}
class SliderWidget extends StatefulWidget {
const SliderWidget({super.key});
@override
State<SliderWidget> createState() => _SliderWidgetState();
}
class _SliderWidgetState extends State<SliderWidget> {
@override
Widget build(BuildContext context) {
return SizedBox.fromSize(
size: Constants.size,
child: GestureDetector(
onHorizontalDragStart: (details) => _onDragStart(details.localPosition),
onHorizontalDragUpdate: (details) => _onDragUpdate(details.localPosition),
child: CustomPaint(
painter: SliderPainter(
dragPosition: _dragPosition,
),
),
),
);
}
double _dragPosition = 0.0;
bool _canDragKnob = false;
void _onDragStart(Offset position) {
final knobRect = Offset(_dragPosition, 0) & Constants.knobSize;
final knobLeftPosition = position.dx + Constants.knobRadius;
_canDragKnob = knobLeftPosition >= knobRect.left && knobLeftPosition < knobRect.right;
}
void _onDragUpdate(Offset position) {
if (!_canDragKnob) {
return;
}
setState(() {
_dragPosition = position.dx.clamp(0.0, Constants.size.width);
});
}
}
class SliderPainter extends CustomPainter {
SliderPainter({required this.dragPosition});
final double dragPosition;
@override
void paint(Canvas canvas, Size size) {
final knobTrackRect = Offset.zero.shift(Constants.knobToTrackPadding) & Constants.knobTrackSize;
canvas.drawRRect(
Constants.borderRadius.toRRect(knobTrackRect),
Paint()..shader = Constants.gradient.createShader(knobTrackRect),
);
final lowerLimit = knobTrackRect.left;
final upperLimit = knobTrackRect.right;
final knobLeftPosition = dragPosition.clamp(lowerLimit, upperLimit);
final knobColor = Constants.gradientColors.mix(lowerLimit, upperLimit, knobLeftPosition);
final knobCenter = Offset(knobLeftPosition, size.height / 2);
canvas
..drawShadow(
Path()..addOval(Rect.fromCircle(center: knobCenter, radius: Constants.knobRadius)),
Constants.knobShadowColor,
Constants.knobElevation,
true,
)
..drawCircle(
knobCenter,
Constants.knobRadius,
Paint()..color = Constants.knobBackgroundColor,
)
..drawCircle(
knobCenter,
Constants.knobRadius - Constants.knobToTrackPadding,
Paint()..color = knobColor,
);
}
@override
bool shouldRepaint(SliderPainter oldDelegate) => dragPosition != oldDelegate.dragPosition;
}
| 0
|
mirrored_repositories/RunFlutterRun
|
mirrored_repositories/RunFlutterRun/lib/main.dart
|
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:stack_trace/stack_trace.dart' as stack_trace;
import 'core/utils/storage_utils.dart';
import 'l10n/support_locale.dart';
import 'presentation/common/core/services/text_to_speech_service.dart';
import 'presentation/common/core/utils/color_utils.dart';
import 'presentation/common/core/utils/ui_utils.dart';
import 'presentation/home/screens/home_screen.dart';
import 'presentation/login/screens/login_screen.dart';
import 'presentation/my_activities/screens/activity_list_screen.dart';
import 'presentation/new_activity/screens/sum_up_screen.dart';
import 'presentation/registration/screens/registration_screen.dart';
/// Global navigator key to access the navigator from anywhere in the app.
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
]);
runApp(
const ProviderScope(child: MyApp()),
);
FlutterError.demangleStackTrace = (StackTrace stack) {
if (stack is stack_trace.Trace) return stack.vmTrace;
if (stack is stack_trace.Chain) return stack.toTrace().vmTrace;
return stack;
};
}
/// Provider for the MyAppViewModel.
final myAppProvider = Provider((ref) {
return MyAppViewModel(ref);
});
/// ViewModel for the main app.
class MyAppViewModel {
final Ref ref;
MyAppViewModel(this.ref);
/// Initializes the app, e.g., initializes services.
void init() {
ref.read(textToSpeechService).init();
}
/// Retrieves the JWT token from storage.
Future<String?> getJwt() async {
return StorageUtils.getJwt();
}
/// Retrieves the localized configuration based on the current locale.
Future<AppLocalizations> getLocalizedConf() async {
final lang = ui.window.locale.languageCode;
final country = ui.window.locale.countryCode;
return await AppLocalizations.delegate.load(Locale(lang, country));
}
}
/// The main app widget.
class MyApp extends HookConsumerWidget {
const MyApp({super.key});
/// Builds the MaterialApp with the provided home widget.
MaterialApp buildMaterialApp(Widget home) {
return MaterialApp(
initialRoute: '/',
routes: {
'/register': (context) => RegistrationScreen(),
'/login': (context) => LoginScreen(),
'/sumup': (context) => const SumUpScreen(),
'/activity_list': (context) => ActivityListScreen()
},
navigatorKey: navigatorKey,
title: 'Run Flutter Run',
debugShowCheckedModeBanner: false,
theme: ThemeData(
textSelectionTheme: TextSelectionThemeData(
cursorColor: ColorUtils.main,
selectionColor: ColorUtils.main,
selectionHandleColor: ColorUtils.main,
),
primaryColor: ColorUtils.main,
splashColor: ColorUtils.blueGreyDarker,
bottomSheetTheme:
BottomSheetThemeData(backgroundColor: ColorUtils.transparent),
),
localizationsDelegates: const [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: L10n.support,
home: home,
);
}
@override
Widget build(BuildContext context, WidgetRef ref) {
final provider = ref.read(myAppProvider);
provider.init();
return FutureBuilder<String?>(
future: provider.getJwt(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return buildMaterialApp(Center(child: UIUtils.loader));
} else if (snapshot.hasData && snapshot.data != null) {
return buildMaterialApp(const HomeScreen());
} else {
return buildMaterialApp(LoginScreen());
}
},
);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/activity_comment_response.dart
|
import 'package:equatable/equatable.dart';
import '../../../domain/entities/activity_comment.dart';
import 'user_response.dart';
/// Represents a response object for an activity comment.
class ActivityCommentResponse extends Equatable {
/// The ID of the comment.
final String id;
/// The datetime of the comment
final DateTime createdAt;
/// The user
final UserResponse user;
/// The comment content
final String content;
/// Constructs an ActivityCommentResponse object with the given parameters.
const ActivityCommentResponse(
{required this.id,
required this.createdAt,
required this.user,
required this.content});
@override
List<Object?> get props => [id, createdAt, user, content];
/// Creates a ActivityCommentResponse object from a JSON map.
factory ActivityCommentResponse.fromMap(Map<String, dynamic> map) {
return ActivityCommentResponse(
id: map['id'].toString(),
createdAt: DateTime.parse(map['createdAt']),
user: UserResponse.fromMap(map['user']),
content: map['content'].toString());
}
/// Converts the ActivityCommentResponse object to a ActivityComment entity.
ActivityComment toEntity() {
return ActivityComment(
id: id,
createdAt: createdAt,
user: user.toEntity(),
content: content,
);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/user_response.dart
|
import 'package:equatable/equatable.dart';
import '../../../domain/entities/user.dart';
/// Represents a response object for a user.
class UserResponse extends Equatable {
/// The ID of the user.
final String id;
/// The firstname of the user
final String? firstname;
/// The lastname of the user
final String? lastname;
/// The username of the user
final String username;
/// Constructs an UserResponse object with the given parameters.
const UserResponse(
{required this.id,
required this.username,
required this.firstname,
required this.lastname});
@override
List<Object?> get props => [id, username];
/// Creates an UserResponse object from a JSON map.
factory UserResponse.fromMap(Map<String, dynamic> map) {
return UserResponse(
id: map['id'].toString(),
username: map['username'],
firstname: map['firstname'],
lastname: map['lastname']);
}
/// Converts the UserResponse object to a User entity.
User toEntity() {
return User(
id: id, username: username, firstname: firstname, lastname: lastname);
}
Map<String, dynamic> toJson() {
return {
'id': id,
'username': username,
'firstname': firstname,
'lastname': lastname,
};
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/login_response.dart
|
import 'user_response.dart';
/// Represents a response object for a login request.
class LoginResponse {
/// The refresh token received in the login response.
final String refreshToken;
/// The access token (JWT token) received in the login response.
final String token;
/// The user received in the login response.
final UserResponse user;
/// A message associated with the login response.
final String message;
/// Constructs a LoginResponse object with the given parameters.
const LoginResponse({
required this.refreshToken,
required this.token,
required this.user,
required this.message,
});
/// Creates a LoginResponse object from a JSON map.
factory LoginResponse.fromMap(Map<String, dynamic> map) {
return LoginResponse(
refreshToken: map['refreshToken']?.toString() ?? '',
token: map['token']?.toString() ?? '',
user: UserResponse.fromMap(map['user']),
message: map['message']?.toString() ?? '',
);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/page_response.dart
|
class PageResponse<T> {
final List<T> list;
final int total;
const PageResponse({
required this.list,
required this.total,
});
factory PageResponse.fromMap(Map<String, dynamic> map) {
return PageResponse(list: map['content'], total: map['totalElements']);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/location_response.dart
|
import 'package:equatable/equatable.dart';
import '../../../domain/entities/location.dart';
/// Represents a response object for a location.
class LocationResponse extends Equatable {
/// The ID of the location.
final String id;
/// The datetime of the location.
final DateTime datetime;
/// The latitude of the location.
final double latitude;
/// The longitude of the location.
final double longitude;
/// Constructs a LocationResponse object with the given parameters.
const LocationResponse({
required this.id,
required this.datetime,
required this.latitude,
required this.longitude,
});
@override
List<Object?> get props => [
id,
datetime,
latitude,
longitude,
];
/// Creates a LocationResponse object from a JSON map.
factory LocationResponse.fromMap(Map<String, dynamic> map) {
return LocationResponse(
id: map['id'].toString(),
datetime: DateTime.parse(map['datetime']),
latitude: (map['latitude'] as num?)?.toDouble() ?? 0.0,
longitude: (map['longitude'] as num?)?.toDouble() ?? 0.0,
);
}
/// Converts the LocationResponse object to a Location entity.
Location toEntity() {
return Location(
id: id,
datetime: datetime,
latitude: latitude,
longitude: longitude,
);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/activity_response.dart
|
import 'package:equatable/equatable.dart';
import '../../../domain/entities/activity.dart';
import '../../../domain/entities/activity_comment.dart';
import '../../../domain/entities/enum/activity_type.dart';
import '../../../domain/entities/location.dart';
import '../../../domain/entities/user.dart';
import 'activity_comment_response.dart';
import 'location_response.dart';
import 'user_response.dart';
/// Represents a response object for an activity.
class ActivityResponse extends Equatable {
/// The ID of the activity.
final String id;
/// The type of the activity.
final ActivityType type;
/// The start datetime of the activity.
final DateTime startDatetime;
/// The end datetime of the activity.
final DateTime endDatetime;
/// The distance covered in the activity.
final double distance;
/// The average speed in the activity.
final double speed;
/// The total time of the activity.
final double time;
/// The list of locations associated with the activity.
final Iterable<LocationResponse> locations;
/// The user concerned by the activity
final UserResponse user;
/// The count of likes on the activity
final double likesCount;
/// has current user liked ?
final bool hasCurrentUserLiked;
/// The list of comments
final Iterable<ActivityCommentResponse> comments;
/// Constructs an ActivityResponse object with the given parameters.
const ActivityResponse(
{required this.id,
required this.type,
required this.startDatetime,
required this.endDatetime,
required this.distance,
required this.speed,
required this.time,
required this.locations,
required this.user,
required this.likesCount,
required this.hasCurrentUserLiked,
required this.comments});
@override
List<Object?> get props => [
id,
type,
startDatetime,
endDatetime,
distance,
speed,
time,
...locations,
user,
likesCount,
hasCurrentUserLiked,
...comments
];
/// Creates an ActivityResponse object from a JSON map.
factory ActivityResponse.fromMap(Map<String, dynamic> map) {
final activityTypeString = map['type']?.toString().toLowerCase();
final activityType = ActivityType.values.firstWhere(
(type) => type.name.toLowerCase() == activityTypeString,
orElse: () => ActivityType.running,
);
return ActivityResponse(
id: map['id'].toString(),
type: activityType,
startDatetime: DateTime.parse(map['startDatetime']),
endDatetime: DateTime.parse(map['endDatetime']),
distance: map['distance'].toDouble(),
speed: map['speed'] is String
? double.parse(map['speed'])
: map['speed'].toDouble(),
time: map['time'].toDouble(),
likesCount: map['likesCount'].toDouble(),
hasCurrentUserLiked: map['hasCurrentUserLiked'],
locations: (map['locations'] as List<dynamic>)
.map<LocationResponse>((item) => LocationResponse.fromMap(item))
.toList(),
user: UserResponse.fromMap(
map['user'],
),
comments: (map['comments'] as List<dynamic>)
.map<ActivityCommentResponse>(
(item) => ActivityCommentResponse.fromMap(item))
.toList(),
);
}
/// Converts the ActivityResponse object to an Activity entity.
Activity toEntity() {
final activityLocations = locations.map<Location>((location) {
return Location(
id: location.id,
datetime: location.datetime,
latitude: location.latitude,
longitude: location.longitude,
);
}).toList()
..sort((a, b) => a.datetime.compareTo(b.datetime));
final activityComments = comments.map<ActivityComment>((comment) {
return ActivityComment(
id: comment.id,
createdAt: comment.createdAt,
user: comment.user.toEntity(),
content: comment.content,
);
}).toList()
..sort((a, b) => a.createdAt.compareTo(b.createdAt));
return Activity(
id: id,
type: type,
startDatetime: startDatetime,
endDatetime: endDatetime,
distance: distance,
speed: speed,
time: time,
locations: activityLocations,
likesCount: likesCount,
hasCurrentUserLiked: hasCurrentUserLiked,
user: User(
id: user.id,
username: user.username,
firstname: user.firstname,
lastname: user.lastname),
comments: activityComments);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/response/friend_request_response.dart
|
import 'package:equatable/equatable.dart';
import '../../../domain/entities/enum/friend_request_status.dart';
import '../../../domain/entities/friend_request.dart';
/// Represents a response object for a friend request.
class FriendRequestResponse extends Equatable {
/// The username of the user
final FriendRequestStatus? status;
/// Constructs an FriendRequestResponse object with the given parameters.
const FriendRequestResponse({required this.status});
@override
List<Object?> get props => [status];
/// Creates an FriendRequestResponse object from a JSON map.
factory FriendRequestResponse.fromMap(Map<String, dynamic> map) {
final status = FriendRequestStatus.values
.firstWhere((type) => type.name.toUpperCase() == map['status']);
return FriendRequestResponse(status: status);
}
/// Converts the FriendRequestResponse object to a FriendRequest entity.
FriendRequest toEntity() {
return FriendRequest(status: status);
}
}
| 0
|
mirrored_repositories/RunFlutterRun/lib/data/model
|
mirrored_repositories/RunFlutterRun/lib/data/model/request/location_request.dart
|
import 'package:equatable/equatable.dart';
/// Represents a request object for a location.
class LocationRequest extends Equatable {
/// The id of the location.
final String? id;
/// The datetime of the location.
final DateTime datetime;
/// The latitude of the location.
final double latitude;
/// The longitude of the location.
final double longitude;
/// Constructs a LocationRequest object with the given parameters.
const LocationRequest({
this.id,
required this.datetime,
required this.latitude,
required this.longitude,
});
@override
List<Object?> get props => [datetime, latitude, longitude];
/// Converts the LocationRequest object to a JSON map.
Map<String, dynamic> toMap() {
return {
'id': id,
'datetime': datetime.toIso8601String(),
'latitude': latitude,
'longitude': longitude,
};
}
@override
bool get stringify => true;
}
| 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.