add length picker
This commit is contained in:
40
lib/pages/widgets/local_title.dart
Normal file
40
lib/pages/widgets/local_title.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LocalTitle extends StatelessWidget {
|
||||
final String textKey;
|
||||
final Widget trailing;
|
||||
|
||||
const LocalTitle({Key key, this.textKey, this.trailing}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 18),
|
||||
child: Row(
|
||||
children: [
|
||||
LocalText(
|
||||
context,
|
||||
textKey,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: primaryColor,
|
||||
),
|
||||
trailing != null ? Spacer() : Container(),
|
||||
trailing != null ? trailing : Container()
|
||||
],
|
||||
),
|
||||
),
|
||||
Divider(
|
||||
thickness: 2,
|
||||
color: primaryColor,
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user