Flow of a thixotropic or antithixotropic fluid in a slowly varying channel: the weakly advective regime