0% found this document useful (0 votes)
14 views3 pages

Sal

azerty

Uploaded by

Nour Zgeud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Sal

azerty

Uploaded by

Nour Zgeud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

import 'package:flutter/material.

dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {


@override
_MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {


bool sablageValue = false;
bool metallisationValue = false;
bool peintureValue = false;

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Ajouter salarier'),
),
body: SingleChildScrollView(
padding: EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Card(
child: Padding(
padding: EdgeInsets.all(10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Description',
style: TextStyle(fontSize: 18, fontWeight:
FontWeight.bold),
),
SizedBox(height: 10),
Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText: 'Nom'),
),
),
),
SizedBox(height: 10),
Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText: 'N_cin'),
),
),
),
SizedBox(height: 10),
Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText: 'Num_tell'),
),
),
),
SizedBox(height: 10),
Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText: 'Adresse'),
),
),
),
SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
flex: 1,
child: Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText:
'Date_recrutement'),
),
),
),
),
SizedBox(width: 10),
Expanded(
flex: 1,
child: Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText:
'Cnss_Cnrps'),
),
),
),
),
],
),
SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
flex: 1,
child: Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText:
'Qualification'),
),
),
),
),
SizedBox(width: 10),
Expanded(
flex: 1,
child: Card(
child: Padding(
padding: EdgeInsets.all(10),
child: TextFormField(
decoration: InputDecoration(labelText: 'PW'),
),
),
),
),
],
),
],
),
),
),
SizedBox(height: 20),
ElevatedButton(
onPressed: () {
// Code pour sauvegarder les données
},
child: Text('Sauvegarder'),
),
],
),
),
),
);
}
}

You might also like