buildElevatedButton method

Widget buildElevatedButton({
  1. required String title,
  2. required int index,
})

Implementation

Widget buildElevatedButton({required String title, required int index}) {
  bool enable = CustomFileSystemEntity().hasSelectedFiles();
  return Container(
    alignment: (index == 2) ? Alignment.centerRight : Alignment.centerLeft,
    child: ElevatedButton(
      onPressed: () => enable ? onClick(index) : debugPrint("---disable---"),
      style: shape(enable),
      child: Text(title),
    ),
  );
}