In this study, a novel 6-(allylamino)-2-(2-(dimethylamino)ethyl)-1H-benzo[de]isoquinoline-1,3(2H)-dione (NI3) was synthesized and characterized. Its copolymer with styrene was also obtained. The photophysical characteristics of NI3 were investigated in organic solvents and the results were compared with those of its structural analogue, 2-allyl-6-((2-(dimethylamino)ethyl)amino)-1H-benzo[de]isoquinoline-1,3(2H)-dione (NI4). The influences of the pH in the medium and different metal ions on the fluorescent intensity of monomers and polymers were also investigated. Computational tools (DFT and TDDFT calculations) were employed when studying the structure and properties of the 1,8-naphthalimide-based chromophores. Although the position of the N,N-dimethylaminoethylamine receptor fragment did not significantly impact proton detection, it was still important for detecting metal ion sensor ability, especially for monomeric 1,8-naphthalimide structures and their copolymers with styrene.