Existing studies of gait recognition mainly use binary silhouette, human parsing, or skeleton to encode the shape and dynamics of the human body during walking. Although they have achieved certain success, they still face significant bottlenecks in temporal modeling, especially in in-the-wild scenarios where irregular walking patterns challenge the extraction of stable temporal features. In contrast, optical flow, as a rising gait modality with strong temporal characteristics, is inherently better at capturing motion dynamics. To unleash the power of optical flow in gait recognition in the wild, this paper proposes a novel optical flow-driven multimodal integration gait recognition framework, named FlowGait. The FlowGait consists of the Global Attention Module (GAM), the Part-aware Attention Module (PAM), and the Cross-granularity Alignment Module (CAM). To obtain complementary spatial-temporal information, the GAM and PAM are elaborately designed to integrate temporal features with global and local spatial features, respectively. Then, the CAM achieves fine-grained alignment of spatial-temporal features at the high level, thereby enhancing the generalization ability of the model. Moreover, to make up for the shortage of data, we build a large-scale optical flow-based dataset for gait recognition in the wild, named Gait3D-Flow. Extensive experiments on the Gait3D, CCPG, and SUSTech1K datasets demonstrate the superiority of our FlowGait, with the Rank-1 accuracy of 87.3%, 95.8%, and 88.2%, respectively. The code and dataset will be released for research purposes.