Spin Engineering In Flexible And Functional Two-Dimensional Quantum Material Devices