45 lines
1.3 KiB
Dart
45 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
|
import 'package:pharmacy_mobile/widgets/title_widget.dart';
|
|
|
|
class AddMedicinePage extends StatefulWidget {
|
|
const AddMedicinePage({super.key});
|
|
|
|
@override
|
|
AddMedicinePageState createState() => AddMedicinePageState();
|
|
}
|
|
|
|
class AddMedicinePageState extends State<AddMedicinePage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Container(
|
|
alignment: Alignment.center,
|
|
height: MediaQuery.of(context).size.height,
|
|
decoration: const BoxDecoration(
|
|
gradient: LinearGradient(
|
|
colors: [
|
|
Color.fromRGBO(34, 51, 69, 1),
|
|
Color.fromRGBO(22, 32, 44, 1),
|
|
],
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
),
|
|
),
|
|
child: Center(
|
|
child: Column(
|
|
children: [
|
|
const Gap(120),
|
|
const TitleWidget(firstTextSize: 16, secondTextSize: 32),
|
|
const Gap(32),
|
|
const TextWidget(text: 'Add Medicine'),
|
|
const Gap(16),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|