fix design issues on first step form create episode
parent
25d0a08105
commit
7e57882349
@ -0,0 +1,49 @@
|
||||
import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hexcolor/hexcolor.dart';
|
||||
|
||||
class BottomSheetDialogButton extends StatelessWidget {
|
||||
final Function onTap;
|
||||
final String label;
|
||||
|
||||
const BottomSheetDialogButton({Key key, this.onTap, this.label})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(0.0),
|
||||
),
|
||||
border: Border.all(color: HexColor('#EFEFEF'), width: 1),
|
||||
),
|
||||
height: MediaQuery.of(context).size.height * 0.1,
|
||||
width: double.infinity,
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
Container(
|
||||
child: FractionallySizedBox(
|
||||
widthFactor: .80,
|
||||
child: Center(
|
||||
child: AppButton(
|
||||
title: label,
|
||||
padding: 10,
|
||||
color: Color(0xFF359846),
|
||||
onPressed: onTap,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 5,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
|
||||
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:hexcolor/hexcolor.dart';
|
||||
|
||||
class RemoveButton extends StatelessWidget {
|
||||
final Function onTap;
|
||||
final String label;
|
||||
|
||||
const RemoveButton({Key key, this.onTap, this.label}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
child: AppText(
|
||||
label??TranslationBase.of(context).remove,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: HexColor("#D02127"),
|
||||
letterSpacing:-0.48,
|
||||
),
|
||||
),
|
||||
Icon(
|
||||
FontAwesomeIcons.times,
|
||||
color: HexColor("#D02127"),
|
||||
size: 16,
|
||||
),
|
||||
],
|
||||
),
|
||||
onTap: onTap,
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue