With their development, machine learning models can be used instead of computational fluid dynamics simulations to predict flow fields in aerodynamic optimization. However, it is difficult to construct a prediction model for swept wings with various planform geometries because too many samples are required to cover the parameter space. In the present paper, a new model framework is proposed to predict wing surface pressure and friction distributions with fewer samples. The distributed geometry parameters along spanwise are used as model inputs instead of the global planform parameters, and processors are designed to help the model better learn the local effect of geometric variation. The model is trained and tested on simple swept wings with single segment and linear twist distribution, where it outperforms the global input model by 57.6% in terms of lift coefficient prediction errors on small dataset sizes. The distributed input also enables the model to be transferred from single wings to more engineering-practical yet complex kink wings. After fine-tuning with a few samples, model accuracy for kink wings can be similar to that of simple wings, which proves the model for wings with complex planform geometries can be efficiently built with the proposed method.