Skip to content

Commit

Permalink
ListOfServiceProofs: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexqwesa committed Aug 5, 2023
1 parent 2fbdcf7 commit f0fa4fc
Showing 1 changed file with 38 additions and 29 deletions.
67 changes: 38 additions & 29 deletions lib/src/ui/ui_services/ui_proofs/list_of_service_proofs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,13 @@ class ListOfServiceProofs extends ConsumerWidget {
//
// > header
//
Center(
child: Column(
children: [
const Padding(
padding: EdgeInsets.all(8),
child: Divider(),
),
Text(
tr().optional,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headlineMedium,
),
Text(
tr().proofOfService,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headlineSmall,
),
Padding(
padding: const EdgeInsets.all(8),
child: Text(
tr().makeProofOfService,
textAlign: TextAlign.center,
),
),
],
),
),
const _ProofsHeaderText(),
//
// > Display list of proofs in columns
// > display list of proofs in columns
//
const ProofsBuilder(),
//
// > add new record(proof row) button
// > button to add new proof (new row)
//
FloatingActionButton(
onPressed: proofController.addProof,
Expand All @@ -77,6 +51,41 @@ class ListOfServiceProofs extends ConsumerWidget {
}
}

class _ProofsHeaderText extends StatelessWidget {
const _ProofsHeaderText();

@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
const Padding(
padding: EdgeInsets.all(8),
child: Divider(),
),
Text(
tr().optional,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headlineMedium,
),
Text(
tr().proofOfService,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headlineSmall,
),
Padding(
padding: const EdgeInsets.all(8),
child: Text(
tr().makeProofOfService,
textAlign: TextAlign.center,
),
),
],
),
);
}
}

/// Display list of proofs in two columns.
///
/// If there is missing image - display add button [AddProofButton].
Expand Down

0 comments on commit f0fa4fc

Please sign in to comment.