Avalanche dynamics in driven materials