buildElevatedButton method
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),
),
);
}